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] Make Category tree theme-aware #6523

Merged
merged 1 commit into from Feb 20, 2024

Conversation

LavissaWoW
Copy link
Contributor

Closes #5824

Copy link

netlify bot commented Feb 19, 2024

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

Name Link
🔨 Latest commit c87316e
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/65d3e71d95d29a000885b48c
😎 Deploy Preview https://deploy-preview-6523--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.

@matmair matmair added bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface labels Feb 19, 2024
@matmair matmair added this to the 0.14.0 milestone Feb 19, 2024
Copy link
Member

@matmair matmair left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@LavissaWoW LavissaWoW changed the title Make Category tree theme-aware [PUI] Make Category tree theme-aware Feb 20, 2024
@SchrodingersGat SchrodingersGat merged commit 41f09f7 into inventree:master Feb 20, 2024
24 checks passed
@SchrodingersGat
Copy link
Member

Great work @LavissaWoW :)

? mantineTheme.colorScheme
: mantineTheme.primaryColor;

const themes: ThemeSettings = {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would make sense to wrap this into a useMemo for performance reasons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What would the dependency be then? Output of useMantineTheme()?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, every variable that is used inside the useMemo

@LavissaWoW LavissaWoW deleted the cat-tree-theme branch February 21, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PUI] Tree side panel does not adhere to theme
4 participants