Skip to content
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

Merged
merged 7 commits into from
Aug 29, 2024
Merged

feat: Introduce docs button #1743

merged 7 commits into from
Aug 29, 2024

Conversation

faouziH21
Copy link
Contributor

prev:
image
now:
image

Copy link

null

@faouziH21 faouziH21 changed the title Introduce docs button feat: Introduce docs button Aug 26, 2024
@faouziH21 faouziH21 requested a review from dnlkoch August 26, 2024 11:05
Copy link
Member

@marcjansen marcjansen left a 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')}
Copy link
Member

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.

>
</DocumentationButton>

</div>
Copy link
Member

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>?

Copy link
Contributor Author

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.

</div>
];
insertPlugins('right', items);
if (ClientConfiguration.documentationButtonVisible) {
Copy link
Member

@marcjansen marcjansen Aug 26, 2024

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;
}

Copy link
Contributor Author

@faouziH21 faouziH21 Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check c7a82c5

Copy link
Member

@dnlkoch dnlkoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @faouziH21!

@faouziH21 faouziH21 merged commit c292538 into main Aug 29, 2024
1 check passed
@dnlkoch dnlkoch deleted the introduce-docs-button branch August 29, 2024 15:43
github-actions bot pushed a commit that referenced this pull request Sep 11, 2024
## [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))
Copy link

🎉 This PR is included in version 8.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants