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

Add Panel component #6809

Merged
merged 35 commits into from
Feb 5, 2024
Merged

Conversation

ryaplots
Copy link
Contributor

@ryaplots ryaplots commented Jan 5, 2024

Summary

This PR adds new components to build the various panels.

Changes

  • Add panel component
  • Add toggle component
  • Add news item component for the news panel
  • Add shortcut item for the shortcuts panel
  • Add status label component
  • Update tab style
Screenshot 2024-01-23 at 13 42 47

Testing

Run storybook

Notes for Reviewers

  • The colors in this PR are just set through their hex, as the updated color variables are not yet part of the redesign

Checklist

  • Scope: The referenced issue is addressed, there are no unrelated changes.
  • Compatibility: The changes are backwards compatible with existing API, storage, configuration and CLI, according to the compatibility commitments in README.md for the chosen target branch.
  • Documentation: Relevant documentation is added or updated.
  • The steps/process to test this feature are clearly explained including testing for regressions.
  • Changelog: Significant features, behavior changes, deprecations and fixes are added to CHANGELOG.md.
  • Commits: Commit messages follow guidelines in CONTRIBUTING.md, there are no fixup commits left.

@github-actions github-actions bot added the ui/web This is related to a web interface label Jan 5, 2024
@ryaplots ryaplots self-assigned this Jan 8, 2024
Base automatically changed from feature/new-sidebar to feature/console-redesign January 12, 2024 05:48
@ryaplots ryaplots changed the title Feature/panel component Add Panel component Jan 17, 2024
@ryaplots ryaplots marked this pull request as ready for review January 17, 2024 15:29
@ryaplots ryaplots requested a review from a team as a code owner January 17, 2024 15:29
@ryaplots ryaplots requested review from kschiffer and removed request for a team January 17, 2024 15:29
pkg/webui/components/panel/panel.styl Outdated Show resolved Hide resolved
pkg/webui/components/panel/panel.styl Outdated Show resolved Hide resolved
pkg/webui/components/panel/toggle/index.js Outdated Show resolved Hide resolved
pkg/webui/components/status-label/index.js Outdated Show resolved Hide resolved
pkg/webui/components/status-label/index.js Outdated Show resolved Hide resolved
pkg/webui/components/news-panel/news-item/news-item.styl Outdated Show resolved Hide resolved
@pierrephz
Copy link
Contributor

Copy link
Member

@kschiffer kschiffer left a comment

Choose a reason for hiding this comment

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

Code LGTM but please rerequest review after addressing @pierrephz's comments.

pkg/webui/components/panel/panel.styl Outdated Show resolved Hide resolved
pkg/webui/components/plus-icon.js Outdated Show resolved Hide resolved
pkg/webui/components/star-icon.js Outdated Show resolved Hide resolved
@kschiffer
Copy link
Member

I've pushed a commit that refactors these replacement icons as part of the <Icon /> component.

Copy link
Member

@kschiffer kschiffer left a comment

Choose a reason for hiding this comment

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

Thank you! Please note the remaining comments. I've pushed the fixes so we can merge this now.


&-active
color: var(--c-text-neutral-min)
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05)
Copy link
Member

Choose a reason for hiding this comment

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

This shadow is virtually invisible (even with my design-sensitive eye). It maps to the button-shadow on Figma, which is equally invisible. Is this intentional @pierrephz ?

message={label}
value={value}
onClick={onToggleChange}
unstyled
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
unstyled

The unstyled prop has been removed and is now the default when no primary/secondary/naked/etc is set.

@kschiffer kschiffer merged commit bf45693 into feature/console-redesign Feb 5, 2024
4 of 6 checks passed
@kschiffer kschiffer deleted the feature/panel-component branch February 5, 2024 05:21
@kschiffer kschiffer restored the feature/panel-component branch February 6, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/web This is related to a web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants