Skip to content

[PUI] Quick commands pallet - #6987

Merged
SchrodingersGat merged 40 commits into
inventree:masterfrom
matmair:matmair/issue5888
Apr 11, 2024
Merged

SchrodingersGat merged 40 commits into
inventree:masterfrom
matmair:matmair/issue5888

Conversation

@matmair

@matmair matmair commented Apr 9, 2024 •

Copy link
Copy Markdown
Member

This adds a quick command palette with (at least now) simple actions to navigate to a few parts of the UI without the mouse.

out.mp4

Clsoes #5888

@matmair matmair added enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface labels Apr 9, 2024
@matmair matmair added this to the 0.15.0 milestone Apr 9, 2024
@matmair matmair self-assigned this Apr 9, 2024
@matmair
matmair requested a review from SchrodingersGat as a code owner April 9, 2024 19:06
@matmair
matmair marked this pull request as draft April 9, 2024 19:06
@netlify

netlify Bot commented Apr 9, 2024 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit abe1e1d
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6616ce53f3b5110008dca4c3
😎 Deploy Preview https://deploy-preview-6987--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: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 100 (no change from production)
SEO: 70 (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.

@codecov

codecov Bot commented Apr 9, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 91.66667% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 83.59%. Comparing base (1e0382c) to head (ab2fa20).

❗ Current head ab2fa20 differs from pull request most recent head abe1e1d. Consider uploading reports for the commit abe1e1d to get more accurate results

Files Patch % Lines
src/frontend/src/components/nav/Header.tsx 77.77% 1 Missing and 1 partial ⚠️
src/frontend/src/defaults/actions.tsx 91.66% 1 Missing ⚠️
src/frontend/src/pages/Index/Playground.tsx 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6987      +/-   ##
==========================================
- Coverage   84.24%   83.59%   -0.65%     
==========================================
  Files         875      905      +30     
  Lines       40863    41752     +889     
  Branches      284      481     +197     
==========================================
+ Hits        34426    34904     +478     
- Misses       6364     6735     +371     
- Partials       73      113      +40     
Flag Coverage Δ
pui 51.41% <91.66%> (+1.52%) ⬆️

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.

@matmair matmair mentioned this pull request Apr 10, 2024
@matmair

matmair commented Apr 10, 2024 •

Copy link
Copy Markdown
Member Author

This is now feature complete and ready for review @wolflu05 @SchrodingersGat

I still have to figure out why the keyboard-based tests keep failing but that is probably something with the testing framework

@matmair

matmair commented Apr 10, 2024

Copy link
Copy Markdown
Member Author

OK the tests are solved (stupid issue on my side, is documented by playwright very clearly) - I will try to get coverage of new lines to 100% and than it should be ready

@matmair
matmair marked this pull request as ready for review April 10, 2024 22:46
@matmair

matmair commented Apr 10, 2024

Copy link
Copy Markdown
Member Author

Coverage of new code is at 90%+, this is ready for review @SchrodingersGat

@SchrodingersGat

SchrodingersGat commented Apr 11, 2024 •

Copy link
Copy Markdown
Member

@matmair really happy with this, it looks great. In the future I would love to see some custom actions for various context (i.e. "create a new build order").

Additionally, should we update "search" panel to the same visual style (spotlight vs drawer)? Or keep them visually separate.

And, potentially we could expose this to the plugins interface too - allowing custom frontend actions?

In any case, happy to merge, nice work :)

@SchrodingersGat
SchrodingersGat merged commit cbbdb70 into inventree:master Apr 11, 2024
@SchrodingersGat
SchrodingersGat deleted the matmair/issue5888 branch April 11, 2024 22:20
@matmair

matmair commented Apr 12, 2024

Copy link
Copy Markdown
Member Author

I think search works fine as is, I would leave it till we have the minimal function set of CUI reached in PUI. Flashing out this while there is nearly no usage seems like a waste.

There could be integrated search in the command line, context actions, maybe plugins. At some point I would like this to become similar to command + shift + P in vs code or Command + K in Linear but we will probably have to shift libraries for that.

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

Labels

enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants