diff --git a/CHANGELOG.md b/CHANGELOG.md index c1c81a1fa4..f5bde2c148 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +- [#13404](https://github.com/inventree/InvenTree/pull/13404) Removes the `ENABLE_PLUGINS_NAVIGATION` setting, which had no effect since the legacy user interface was removed. The `NavigationMixin` is retained for compatibility, but its navigation links are not displayed - plugins should use the `get_ui_navigation_items` method of the `UserInterfaceMixin` instead. - [#13369](https://github.com/inventree/InvenTree/pull/13369) Removes settings which have had no effect since the legacy user interface was removed (or were never implemented): `STOCK_SHOW_INSTALLED_ITEMS`, `PART_SHOW_RELATED`, `BARCODE_INPUT_DELAY` and `PLUGIN_UPDATE_CHECK` (global), and `REPORT_INLINE` and `LABEL_INLINE` (user). ## 1.7.0 - 2026-11.03 diff --git a/docs/docs/plugins/mixins/navigation.md b/docs/docs/plugins/mixins/navigation.md index e7dc8924bc..e36e0e11fb 100644 --- a/docs/docs/plugins/mixins/navigation.md +++ b/docs/docs/plugins/mixins/navigation.md @@ -4,6 +4,9 @@ title: Navigation Mixin ## NavigationMixin +!!! warning "Legacy Mixin" + The navigation links provided by this mixin are not displayed in the current user interface, and the `ENABLE_PLUGINS_NAVIGATION` setting has been removed. To add custom navigation items to the user interface, use the [UserInterfaceMixin](./ui.md) and implement the `get_ui_navigation_items` method. + Use the class constant `NAVIGATION` for a array of links that should be added to InvenTrees navigation header. The array must contain at least one dict that at least define a name and a link for each element. The link must be formatted for a URL pattern name lookup - links to external sites are not possible directly. The optional icon must be a class reference to an icon. diff --git a/docs/docs/settings/global.md b/docs/docs/settings/global.md index 375fe4db87..4854a839c5 100644 --- a/docs/docs/settings/global.md +++ b/docs/docs/settings/global.md @@ -254,7 +254,6 @@ Refer to the [transfer order settings](../stock/transfer_order.md#transfer-order | ---- | ----------- | ------- | ----- | {{ globalsetting("PLUGIN_ON_STARTUP") }} {{ globalsetting("ENABLE_PLUGINS_URL") }} -{{ globalsetting("ENABLE_PLUGINS_NAVIGATION") }} {{ globalsetting("ENABLE_PLUGINS_APP") }} {{ globalsetting("ENABLE_PLUGINS_SCHEDULE") }} {{ globalsetting("ENABLE_PLUGINS_EVENTS") }} diff --git a/src/backend/InvenTree/InvenTree/helpers.py b/src/backend/InvenTree/InvenTree/helpers.py index 27f07682cf..f0e7b4123e 100644 --- a/src/backend/InvenTree/InvenTree/helpers.py +++ b/src/backend/InvenTree/InvenTree/helpers.py @@ -1255,7 +1255,6 @@ def plugins_disabled_mixins() -> list[dict]: PluginMixinEnum.APP: 'ENABLE_PLUGINS_APP', PluginMixinEnum.EVENTS: 'ENABLE_PLUGINS_EVENTS', PluginMixinEnum.MAIL: 'ENABLE_PLUGINS_MAILS', - PluginMixinEnum.NAVIGATION: 'ENABLE_PLUGINS_NAVIGATION', PluginMixinEnum.SCHEDULE: 'ENABLE_PLUGINS_SCHEDULE', PluginMixinEnum.URLS: 'ENABLE_PLUGINS_URL', PluginMixinEnum.USER_INTERFACE: 'ENABLE_PLUGINS_INTERFACE', diff --git a/src/backend/InvenTree/common/setting/system.py b/src/backend/InvenTree/common/setting/system.py index e9bf4bb364..66eaa62f7c 100644 --- a/src/backend/InvenTree/common/setting/system.py +++ b/src/backend/InvenTree/common/setting/system.py @@ -552,14 +552,6 @@ SYSTEM_SETTINGS: dict[str, InvenTreeSettingsKeyType] = { 'after_save': reload_plugin_registry, 'flags': [SettingFlag.TOGGLE], }, - 'ENABLE_PLUGINS_NAVIGATION': { - 'name': _('Enable navigation integration'), - 'description': _('Enable plugins to integrate into navigation'), - 'default': False, - 'validator': bool, - 'after_save': reload_plugin_registry, - 'flags': [SettingFlag.TOGGLE], - }, 'ENABLE_PLUGINS_APP': { 'name': _('Enable app integration'), 'description': _('Enable plugins to add apps'), diff --git a/src/backend/InvenTree/common/test_api.py b/src/backend/InvenTree/common/test_api.py index d8a705502a..3a83a9984a 100644 --- a/src/backend/InvenTree/common/test_api.py +++ b/src/backend/InvenTree/common/test_api.py @@ -3772,11 +3772,7 @@ class AdminMessageAPITests(InvenTreeAPITestCase): # The 'sample' plugin makes use of the (gated) URL integration registry.set_plugin_state('sample', True) - for key in [ - 'ENABLE_PLUGINS_APP', - 'ENABLE_PLUGINS_NAVIGATION', - 'ENABLE_PLUGINS_URL', - ]: + for key in ['ENABLE_PLUGINS_APP', 'ENABLE_PLUGINS_URL']: set_global_setting(key, True, None) self.assertNotIn('SampleIntegrationPlugin', message()['message']) @@ -3853,7 +3849,6 @@ class AdminMessageAPITests(InvenTreeAPITestCase): 'ENABLE_PLUGINS_APP', 'ENABLE_PLUGINS_EVENTS', 'ENABLE_PLUGINS_MAILS', - 'ENABLE_PLUGINS_NAVIGATION', 'ENABLE_PLUGINS_SCHEDULE', 'ENABLE_PLUGINS_URL', 'ENABLE_PLUGINS_INTERFACE', diff --git a/src/backend/InvenTree/plugin/_internal/registry.py b/src/backend/InvenTree/plugin/_internal/registry.py index c019a72d9e..63d4bfe531 100644 --- a/src/backend/InvenTree/plugin/_internal/registry.py +++ b/src/backend/InvenTree/plugin/_internal/registry.py @@ -1250,7 +1250,6 @@ class PluginsRegistry: 'ENABLE_PLUGINS_APP', 'ENABLE_PLUGINS_EVENTS', 'ENABLE_PLUGINS_INTERFACE', - 'ENABLE_PLUGINS_NAVIGATION', 'ENABLE_PLUGINS_SCHEDULE', 'ENABLE_PLUGINS_URL', 'ENABLE_PLUGINS_MAILS', diff --git a/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx b/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx index 5555e4e6b7..47d5a9543b 100644 --- a/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx +++ b/src/frontend/src/pages/Index/Settings/AdminCenter/PluginManagementPanel.tsx @@ -24,7 +24,6 @@ export const PLUGIN_SETTINGS_KEYS = [ 'ENABLE_PLUGINS_EVENTS', 'ENABLE_PLUGINS_INTERFACE', 'ENABLE_PLUGINS_URL', - 'ENABLE_PLUGINS_NAVIGATION', 'ENABLE_PLUGINS_APP', 'ENABLE_PLUGINS_MAILS', 'PLUGIN_ON_STARTUP'