Skip to content

feat: Add facility to completely hide parts of the interface - #12842

Merged
SchrodingersGat merged 23 commits into
inventree:masterfrom
matmair:matmair/issue6023
Sep 15, 2026
Merged

SchrodingersGat merged 23 commits into
inventree:masterfrom
matmair:matmair/issue6023

Conversation

@matmair

@matmair matmair commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Provides options to hide various parts of InvenTree core functions in the UI - these are just primitive toggles to turn off parts of the UI. Admins can additionally now disable:

  • Sales Order
  • Purchase Order
  • Build Order

It also lays the groundwork for a few related things:

  • settings flags that can be used to more clearly communicate the effect of a setting
  • warning texts on settings that will influence the security of an instance
  • information texts on settings that will change available (frontend) functions

mostly unrelated:

  • fixes a few small typing warnings
  • moves the settings for Transfer Orders under stock; same as Return Order
  • fixes hiding of return orders
  • adds warning before group cleanup can be changed

In a follow up we could consider also turning of the related APIs. I honestly would prefer to move code paths that should be disable-able into optional built-in plugins.

Fixes #6023

@matmair matmair added this to the 1.6.0 milestone Sep 11, 2026
@matmair matmair self-assigned this Sep 11, 2026
@matmair matmair added enhancement This is an suggested enhancement or new feature api Relates to the API setup Relates to the InvenTree setup / installation process User Interface Related to the frontend / User Interface labels Sep 11, 2026
@netlify

netlify Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 7d3864f
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6aa860726ddc3100071a1985

@matmair

matmair commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

In experimenting I have decided to not make the following UI functions not disable-able as them missing makes the system basically un-usable:

  • Parts
  • Stock

If this in an issue we will have to add those in a follow up

@codecov

codecov Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.64516% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.22%. Comparing base (66de7b7) to head (7d3864f).
⚠️ Report is 2 commits behind head on master.

❌ Your patch check has failed because the patch coverage (87.50%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12842      +/-   ##
==========================================
+ Coverage   86.39%   87.22%   +0.82%     
==========================================
  Files        1425     1500      +75     
  Lines       95256   101818    +6562     
  Branches     9966    11596    +1630     
==========================================
+ Hits        82295    88808    +6513     
- Misses      12917    12947      +30     
- Partials       44       63      +19     
Flag Coverage Δ
backend 91.85% <89.28%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.50% <80.32%> (+<0.01%) ⬆️
Backend General 94.72% <87.50%> (+0.09%) ⬆️
Frontend 79.75% <ø> (+3.74%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair

matmair commented Sep 12, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat this is ready to review; turned out simpler than thought. Would this need to be implemented in the app too before we release?

@matmair
matmair marked this pull request as ready for review September 12, 2026 01:01
@matmair
matmair marked this pull request as draft September 13, 2026 20:19
@matmair

matmair commented Sep 13, 2026

Copy link
Copy Markdown
Member Author

This now also fixes an issue with #12839 that caused issues with the frontend CI

@matmair
matmair marked this pull request as ready for review September 13, 2026 21:24
@matmair

matmair commented Sep 13, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat ready for review and merge

@matmair

This comment has been minimized.

@runningcodeio

This comment has been minimized.

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair nice work, this is a clean implementation. Thanks for tackling this one.

@SchrodingersGat
SchrodingersGat merged commit 63a434c into inventree:master Sep 15, 2026
82 of 88 checks passed
@SchrodingersGat
SchrodingersGat deleted the matmair/issue6023 branch September 15, 2026 11:14
@matmair

This comment has been minimized.

@runningcodeio

This comment has been minimized.

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 setup Relates to the InvenTree setup / installation process User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add facility to completely hide parts of the interface

3 participants