Skip to content

feat: New / Refactor "Nav Mixin" - #9283

Merged
SchrodingersGat merged 18 commits into
inventree:masterfrom
matmair:matmair/issue5269
Apr 20, 2025
Merged

SchrodingersGat merged 18 commits into
inventree:masterfrom
matmair:matmair/issue5269

Conversation

@matmair

@matmair matmair commented Mar 11, 2025

Copy link
Copy Markdown
Member

This PR adds a navigation extension for PUI. This is mostly the same as the NavigationMixin with on crucial thing missing: there are no menus on the navigation right now. I did not want to touch that to keep the PR cleaner.

Fixes #5269
Fixes #9276

@matmair matmair added enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem api Relates to the API User Interface Related to the frontend / User Interface labels Mar 11, 2025
@matmair matmair added this to the 1.0.0 milestone Mar 11, 2025
@matmair matmair self-assigned this Mar 11, 2025
@netlify

netlify Bot commented Mar 11, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 327595b
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6803aa66bd73380009a805ad
😎 Deploy Preview https://deploy-preview-9283--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (🔴 down 4 from production)
Accessibility: 89 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@matmair

matmair commented Mar 11, 2025

Copy link
Copy Markdown
Member Author

This is the last thing tracked in #5212 so we might be able to close that after this is merged

@codecov

codecov Bot commented Mar 11, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.29%. Comparing base (9a49c9f) to head (327595b).
Report is 290 commits behind head on master.

Files with missing lines Patch % Lines
src/backend/InvenTree/plugin/base/ui/mixins.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9283   +/-   ##
=======================================
  Coverage   86.28%   86.29%           
=======================================
  Files        1229     1229           
  Lines       54057    54065    +8     
  Branches     2280     2279    -1     
=======================================
+ Hits        46644    46655   +11     
+ Misses       6836     6833    -3     
  Partials      577      577           
Flag Coverage Δ
backend 88.33% <90.90%> (+<0.01%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair

matmair commented Mar 12, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat do we want to support the old NavigationMixin or remove it?

@matmair
matmair marked this pull request as ready for review March 12, 2025 17:56
@matmair

matmair commented Mar 16, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat If we do not want to support the NavigationMixin this is ready for merge

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair which parts of the old nav mixin are we "not supporting" in this case?

@matmair

matmair commented Mar 17, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat Currently there is no support for the old Mixin. It is not considered by the new integration that completely uses the plugin UI feature

@SchrodingersGat

Copy link
Copy Markdown
Member

I must admin I'm a little confused.. So this PR adds items to the navigation bar, but they don't "go" anywher?

@matmair

matmair commented Mar 17, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat they go whereever the link leads; the sample leads nowhere because O did not want to make it more complex but I can add a url mixin if you want

@matmair

matmair commented Apr 15, 2025

Copy link
Copy Markdown
Member Author

Ready for review @inventree/triage

@SchrodingersGat
SchrodingersGat merged commit 6b0a082 into inventree:master Apr 20, 2025
@SchrodingersGat
SchrodingersGat deleted the matmair/issue5269 branch April 20, 2025 01:22
@SchrodingersGat

Copy link
Copy Markdown
Member

Thanks @matmair - getting pretty close to 1.0.0 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API endpoint to list nav panes [FR/P-UI] New / Refactor "Nav Mixin"

3 participants