@digital-realty/app-shell 16.0.4 → 16.0.5-IXUAT-11202.562402

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,2 +1,30 @@
1
1
  # global-portal-app-shell
2
2
  Global Portal app-shell
3
+
4
+ ## Inventory sub-navigation
5
+
6
+ Use the existing host-served `config.json`, loaded before app-shell bootstrap.
7
+ Add this optional boolean inside its `app-shell` section (keep the other settings):
8
+
9
+ ```json
10
+ {
11
+ "app-shell": {
12
+ "EnableInventorySubNavigation": true
13
+ }
14
+ }
15
+ ```
16
+
17
+ Only boolean `true` enables the nested Inventory menu and compact flyout.
18
+ Missing or `false` retains the legacy `/inventory` link in both rail modes.
19
+ Existing Inventory permissions and `IsInventoryManagementEnabled` still apply.
20
+ The navigation component snapshots this setting through the existing `getConfig()`
21
+ accessor when created; reload the page after changing the configuration file.
22
+ There is no live-toggle mechanism.
23
+
24
+ In the established ui-gpv2 deployment, `configs/app-shell.json` declares this key
25
+ with default `false`. Environment FileTransform substitutes its matching
26
+ `EnableInventorySubNavigation` key before `scripts/merge-configs.mjs` merges the
27
+ template into the `app-shell` section of the served `config.json`. For local use,
28
+ change that same source-file boolean to `true` and reload after the host serves
29
+ the updated configuration. No manual global-variable assignment is needed.
30
+ Adding the template default does not enable or deploy the switch in any environment.