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: Allow customizing Nav URLs #1696

Merged
merged 1 commit into from
Aug 16, 2024
Merged

feat: Allow customizing Nav URLs #1696

merged 1 commit into from
Aug 16, 2024

Conversation

zusorio
Copy link
Member

@zusorio zusorio commented Aug 8, 2024

Allow changing the order and text of the existing nav bar links, as well as add completely custom ones. This can be set in the admin interface by editing the configuration.

chrome_mEZDHqdKC4.mp4

@zusorio zusorio requested a review from MoritzWeber0 as a code owner August 8, 2024 14:04
Copy link

github-actions bot commented Aug 8, 2024

A Storybook preview is available for commit 3361717.
View Storybook
View Chromatic build

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.70%. Comparing base (d514394) to head (dc9d416).
Report is 325 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1696      +/-   ##
==========================================
- Coverage   83.97%   83.70%   -0.27%     
==========================================
  Files         184      186       +2     
  Lines        6085     6371     +286     
  Branches      673      729      +56     
==========================================
+ Hits         5110     5333     +223     
- Misses        827      877      +50     
- Partials      148      161      +13     

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

Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

Works very well, thanks for the implementation! I just have some minor comments regarding the code style that we should fix before I can merge it.

backend/capellacollab/settings/configuration/models.py Outdated Show resolved Hide resolved
backend/capellacollab/navbar/routes.py Show resolved Hide resolved
backend/capellacollab/settings/configuration/models.py Outdated Show resolved Hide resolved
backend/capellacollab/settings/configuration/models.py Outdated Show resolved Hide resolved
backend/capellacollab/settings/configuration/models.py Outdated Show resolved Hide resolved
frontend/src/app/general/nav-bar/nav-bar.service.ts Outdated Show resolved Hide resolved
frontend/src/app/general/nav-bar/nav-bar.service.ts Outdated Show resolved Hide resolved
frontend/src/app/general/nav-bar/nav-bar.service.ts Outdated Show resolved Hide resolved
@zusorio zusorio requested a review from MoritzWeber0 August 15, 2024 09:13
@zusorio zusorio force-pushed the custom-nav-links branch 3 times, most recently from 9fa91a9 to 042b476 Compare August 15, 2024 10:56
Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

Only one small change - everything else looks good.

backend/capellacollab/settings/configuration/models.py Outdated Show resolved Hide resolved
@MoritzWeber0
Copy link
Member

The Storybook stories have changed since it doesn't recognize external links anymore (since they are defined in the backend). Can we mock it accordingly to preserve the current stories?

https://www.chromatic.com/build?appId=6605ea865df51dc81afca5e8&number=359

Allow changing the order and text of the existing nav bar links, as well as add completely
custom ones. This can be set in the admin interface by editing the configuration.

Closes #1668
Copy link

@MoritzWeber0 MoritzWeber0 merged commit 964ae6a into main Aug 16, 2024
30 checks passed
@MoritzWeber0 MoritzWeber0 deleted the custom-nav-links branch August 16, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants