-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Introduce docs button #1743
Conversation
null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some comments, others should also weigh in
|
||
return ( | ||
<SimpleButton | ||
onClick={() => window.open('/gis-docs', '_blank')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL should be configurable, I guess.
src/components/Header/index.tsx
Outdated
> | ||
</DocumentationButton> | ||
|
||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a wrapping <div>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other components used a wrapping <div>
hence I chose to also wrap it in a div.
src/components/Header/index.tsx
Outdated
</div> | ||
]; | ||
insertPlugins('right', items); | ||
if (ClientConfiguration.documentationButtonVisible) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd move the check to the top of the function:
if (!ClientConfiguration.documentationButtonVisible) {
return;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check c7a82c5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @faouziH21!
## [8.9.0](v8.8.0...v8.9.0) (2024-09-11) ### Dependencies * **deps-dev:** bump @commitlint/cli from 19.3.0 to 19.4.0 ([46d98cc](46d98cc)) * **deps-dev:** bump @playwright/test from 1.45.3 to 1.46.0 ([6f3f6c9](6f3f6c9)) * **deps-dev:** bump @semantic-release/github from 10.1.3 to 10.1.5 ([b6286e0](b6286e0)) * **deps-dev:** bump @types/node from 22.0.2 to 22.3.0 ([5c20ba6](5c20ba6)) * **deps-dev:** bump typescript from 5.5.3 to 5.5.4 ([0d32143](0d32143)) * **deps:** bump i18next from 23.12.2 to 23.12.3 ([60b5ee6](60b5ee6)) * **deps:** bump i18next from 23.12.3 to 23.12.7 ([785e8e4](785e8e4)) * **deps:** bump react-i18next from 15.0.0 to 15.0.1 ([5537b2c](5537b2c)) ### Changes in configuration * disable dependabot ([3ccf9f1](3ccf9f1)) ### Features * adds a config for documentation button ([805b234](805b234)) * Introduce docs button ([#1743](#1743)) ([c292538](c292538)) * introduces dataType and valueMap to Displayfield ([411a1e7](411a1e7)) ### Bugfixes * escape github action conditions ([d5f8474](d5f8474))
🎉 This PR is included in version 8.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
prev:
now: