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: NavTabList component #1698

Merged
merged 9 commits into from
Jan 4, 2024
Merged

Conversation

mattrunyon
Copy link
Collaborator

@mattrunyon mattrunyon commented Dec 19, 2023

This is ported from DHE and generalized a bit so it can be used in DHC and DHE. Also cleaned up some of the CSS, but could still use some improvements for theming.

Test in the styleguide Navigations section. The 1st tab in both lists is non-closable. Add custom context actions for the styleguide which selects the tab to the left/right of the tab you opened the context menu on.

@mattrunyon mattrunyon self-assigned this Dec 19, 2023
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 199 lines in your changes are missing coverage. Please review.

Comparison is base (a25095e) 46.68% compared to head (6a7e61f) 46.45%.

Files Patch % Lines
packages/components/src/navigation/NavTabList.tsx 0.00% 164 Missing and 1 partial ⚠️
packages/components/src/navigation/NavTab.tsx 0.00% 17 Missing and 1 partial ⚠️
...ackages/code-studio/src/styleguide/Navigations.tsx 46.66% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1698      +/-   ##
==========================================
- Coverage   46.68%   46.45%   -0.23%     
==========================================
  Files         609      611       +2     
  Lines       36985    37198     +213     
  Branches     9306     9357      +51     
==========================================
+ Hits        17265    17279      +14     
- Misses      19668    19865     +197     
- Partials       52       54       +2     
Flag Coverage Δ
unit 46.45% <6.57%> (-0.23%) ⬇️

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.

Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Functionality looks good, context menu should be generated on click though

packages/components/src/navigation/NavTab.tsx Outdated Show resolved Hide resolved
packages/components/src/navigation/NavTabList.tsx Outdated Show resolved Hide resolved
@mattrunyon mattrunyon requested a review from mofojed December 22, 2023 18:05
mofojed
mofojed previously approved these changes Jan 2, 2024
Copy link
Contributor

@dsmmcken dsmmcken left a comment

Choose a reason for hiding this comment

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

Yes, that's the correct dh-color variable.

packages/components/src/navigation/NavTabList.scss Outdated Show resolved Hide resolved
packages/components/src/navigation/NavTabList.scss Outdated Show resolved Hide resolved
@mattrunyon mattrunyon merged commit 96641fb into deephaven:main Jan 4, 2024
4 of 5 checks passed
@mattrunyon mattrunyon deleted the dashboard-nav branch January 4, 2024 16:58
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants