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/ontology tab for metadatawidget #145

Merged
merged 15 commits into from
Oct 15, 2024

Conversation

Pooya-Oladazimi
Copy link
Collaborator

All implemented. However, I faced one issue that I could not find a workaround:
If you select a tab and then try to hide it via the boolean toggles in the storybook (when there is more than one tab), the EuiTabbedContent component raises an exception. As I looked, the reason is that the component uses react Ref to keep the currently selected tab. Since refs won't get updated during component re-rendered, it points to a non-existing tab (since you just hide it). I tried the official doc approach, but no luck: https://eui.elastic.co/#/navigation/tabs#controlled-tabbed-content

The point is, this most probably won't happen in the client app since the client app usually does not toggle hide and show and initiate the widget once. But creates issues in the storybook while playing around.

@Pooya-Oladazimi Pooya-Oladazimi linked an issue Oct 10, 2024 that may be closed by this pull request
@rombaum
Copy link
Collaborator

rombaum commented Oct 14, 2024

Looks good so far.

grafik
current version

I would suggest that we use the abbreviation of the terminology for the tab header. I added two examples here.

grafik
Only Abbreviation of terminology

grafik
Abbreviation + About or Info or whatever

@rombaum rombaum merged commit d95cb7a into main Oct 15, 2024
2 checks passed
@rombaum rombaum deleted the feat/ontology-tab-for-metadatawidget branch October 15, 2024 17:24
@jusa3
Copy link
Collaborator

jusa3 commented Oct 15, 2024

🎉 This PR is included in version 2.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jusa3 jusa3 added the released label Oct 15, 2024
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.

Ontology tab for MetadataWidget
3 participants