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

[PUI] Dashboard refactor #8278

Open
wants to merge 65 commits into
base: master
Choose a base branch
from

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Oct 12, 2024

This PR presents a major refactor of the "dashboard" feature in PUI, bringing it closer towards a release state.

We were already using react-grid-layout for the new dashboard - this PR moves the implementation forward, adding new features, refactoring, etc

Main Goals

  • Remove duplicate "home" / "dashboard" pages
  • Improve usability of dashboard
  • Add method of "adding" new widgets to the dashboard
  • Add method of "removing" widgets from the dashboard
  • Replicate all previous "home page" functions as "dashboard" items
  • Provide a library of "builtin" dashboard items
  • Save and restore separate layout "per user"
  • Allow plugins to register dashboard items
  • Cleanup global navigation menu (left-hand drawer)
  • Playwright tests
  • Consolidate UI plugin API settings
  • Single entrypoint for accessing UI features on backend
  • Update documentation

Screenshots

Description Image
Sample dashboard with builtin items, and items loaded via plugins image
Add new item image
Remove Items image
Adjust layout image

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature user interface User interface plugin Plugin ecosystem refactor feature Platform UI Related to the React based User Interface labels Oct 12, 2024
@SchrodingersGat SchrodingersGat added this to the 0.17.0 milestone Oct 12, 2024
Copy link

netlify bot commented Oct 12, 2024

Deploy Preview for inventree-web-pui-preview failed.

Name Link
🔨 Latest commit 00eabad
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/6713224965baf600083ceec9

Copy link

codecov bot commented Oct 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.36%. Comparing base (48dd3d3) to head (47182da).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8278      +/-   ##
==========================================
+ Coverage   84.28%   84.36%   +0.07%     
==========================================
  Files        1165     1164       -1     
  Lines       52770    52476     -294     
  Branches     1931     1895      -36     
==========================================
- Hits        44478    44269     -209     
+ Misses       7808     7730      -78     
+ Partials      484      477       -7     

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

- Otherwise they will change with translation locale
- Custom panels
- Custom dashboard items
- Improve error handling
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 feature Platform UI Related to the React based User Interface plugin Plugin ecosystem refactor user interface User interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants