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

fix: update the osd-plugin-generator template to reference the correct button #9014

Merged

Conversation

angle943
Copy link
Contributor

@angle943 angle943 commented Dec 5, 2024

Description

  • following the plugin generator guide, once you have created a plugin, navigate to your plugin on the dashboard, and you will see a blank page:
Screenshot 2024-12-05 at 3 41 31 PM
  • Inspecting the console will reveal the issue
Screenshot 2024-12-05 at 3 41 56 PM

Issues Resolved

fixes #8918

Testing the changes

  • After making this change, i have created a plugin again via node scripts/generate_plugin --name my_plugin_name -y, and upon navigating to my new plugin's page, the page correctly renders:
Screenshot 2024-12-05 at 3 44 16 PM

Changelog

  • skip

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link
Contributor

github-actions bot commented Dec 5, 2024

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "fix". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

Comment on lines 91 to 94
<EuiButton type="primary" size="s" onClick={onClickHandler}>
<EuiSmallButton type="primary" size="s" onClick={onClickHandler}>
<FormattedMessage id="<%= camelCase(name) %>.buttonText"
defaultMessage="<%= hasServer ? 'Get data' : 'Click me' %>" />
</EuiButton>
</EuiSmallButton>
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we fix the import by change EuiSmallButton to EuiButton, so the page style get unchanged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sure i will do that change

Signed-off-by: Justin Kim <[email protected]>
@github-actions github-actions bot added Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry and removed failed changeset labels Dec 6, 2024
@angle943 angle943 requested a review from Hailong-am December 6, 2024 02:34
Copy link
Collaborator

@Hailong-am Hailong-am left a comment

Choose a reason for hiding this comment

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

thanks

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.85%. Comparing base (af429b6) to head (93b7e33).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9014      +/-   ##
==========================================
- Coverage   60.87%   60.85%   -0.02%     
==========================================
  Files        3808     3808              
  Lines       91189    91189              
  Branches    14405    14405              
==========================================
- Hits        55510    55496      -14     
- Misses      32139    32152      +13     
- Partials     3540     3541       +1     
Flag Coverage Δ
Linux_1 29.02% <ø> (ø)
Linux_2 56.38% <ø> (ø)
Linux_3 37.91% <ø> (+<0.01%) ⬆️
Linux_4 29.02% <ø> (ø)
Windows_1 29.04% <ø> (-0.02%) ⬇️
Windows_2 56.34% <ø> (ø)
Windows_3 37.91% <ø> (ø)
Windows_4 29.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LDrago27 LDrago27 merged commit afb2605 into opensearch-project:main Dec 6, 2024
69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 6, 2024
…t button (#9014)

* fix: update the osd-plugin-generator template to reference the correct button

Signed-off-by: Justin Kim <[email protected]>

* remove the size prop

Signed-off-by: Justin Kim <[email protected]>

* change it to EuiButton

Signed-off-by: Justin Kim <[email protected]>

---------

Signed-off-by: Justin Kim <[email protected]>
(cherry picked from commit afb2605)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Hailong-am pushed a commit that referenced this pull request Dec 10, 2024
…t button (#9014) (#9018)

* fix: update the osd-plugin-generator template to reference the correct button



* remove the size prop



* change it to EuiButton



---------


(cherry picked from commit afb2605)

Signed-off-by: Justin Kim <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
silva-qa pushed a commit to silva-qa/OpenSearch-Dashboards that referenced this pull request Dec 12, 2024
…t button (opensearch-project#9014)

* fix: update the osd-plugin-generator template to reference the correct button

Signed-off-by: Justin Kim <[email protected]>

* remove the size prop

Signed-off-by: Justin Kim <[email protected]>

* change it to EuiButton

Signed-off-by: Justin Kim <[email protected]>

---------

Signed-off-by: Justin Kim <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
@angle943 angle943 deleted the fix-plugin-generator-template branch December 13, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x first-time-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Example plugin UI not loading
6 participants