Skip to content

PUI general improvements - #5947

Merged
SchrodingersGat merged 24 commits into
inventree:masterfrom
wolflu05:pui-improvements
Nov 20, 2023
Merged

SchrodingersGat merged 24 commits into
inventree:masterfrom
wolflu05:pui-improvements

Conversation

@wolflu05

@wolflu05 wolflu05 commented Nov 20, 2023 •

Copy link
Copy Markdown
Member

This PR adds a few things I initially implemented in #4824, but want to push upstream before so that the diff is not that huge and not so much merge conflicts may exist:

  • adds pathParams to apiUrl, forms, settings (I need them there because the machine settings url has path parameters)
  • Show all setting keys if keys is not defined (required for machine-/plugin- settings)
  • Make setting item list alternating shaded for better UX
    image
  • Add type safety to tables using typescript generics
  • Add key prop when rendering a list of components
  • Fix zustand/persist deprecation warning for getStorage

Includes #5897

@netlify

netlify Bot commented Nov 20, 2023 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 0d8b989
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/655b5c80a3cd05000815ed68
😎 Deploy Preview https://deploy-preview-5947--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: 92 (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.

@wolflu05 wolflu05 changed the title Pui improvements PUI general improvements Nov 20, 2023
@wolflu05 wolflu05 added enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface labels Nov 20, 2023
Comment thread src/frontend/src/functions/forms.tsx Resolved
@SchrodingersGat

Copy link
Copy Markdown
Member

@wolflu05 some great improvements here :)

In particular the implementation of "nested" or "grouped" forms within the modals works really well!

@wolflu05

wolflu05 commented Nov 20, 2023 •

Copy link
Copy Markdown
Member Author

@SchrodingersGat all of the form stuff is from #5897 as this includes this branch, so it would be better to review #5897 first. This PR only changes the mentioned things in the PR detail description.

@SchrodingersGat

Copy link
Copy Markdown
Member

LGTM, nice work again @wolflu05

@wolflu05

Copy link
Copy Markdown
Member Author

Thanks, this would be ready now too.

@SchrodingersGat
SchrodingersGat merged commit 264dc9d into inventree:master Nov 20, 2023
@SchrodingersGat

Copy link
Copy Markdown
Member

@wolflu05 thanks

@wolflu05
wolflu05 deleted the pui-improvements branch February 15, 2024 14:06
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants