Skip to content

feat: NavTabList component#1698

Merged
mattrunyon merged 9 commits intodeephaven:mainfrom
mattrunyon:dashboard-nav
Jan 4, 2024
Merged

feat: NavTabList component#1698
mattrunyon merged 9 commits intodeephaven:mainfrom
mattrunyon:dashboard-nav

Conversation

@mattrunyon
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread packages/components/src/navigation/NavTab.tsx Outdated
Comment thread packages/components/src/navigation/NavTabList.tsx
Comment thread packages/components/src/navigation/NavTabList.tsx Outdated
@mattrunyon mattrunyon requested a review from mofojed December 22, 2023 18:05
mofojed
mofojed previously approved these changes Jan 2, 2024
Copy link
Copy Markdown
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.

Comment thread packages/components/src/navigation/NavTabList.scss Outdated
Comment thread packages/components/src/navigation/NavTabList.scss Outdated
@mattrunyon mattrunyon merged commit 96641fb into deephaven:main Jan 4, 2024
@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