@qontinui/navigation 0.1.1 → 0.1.3

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/dist/index.d.cts CHANGED
@@ -40,6 +40,16 @@ interface NavigationItem {
40
40
  shortcut?: string;
41
41
  /** Hide from navigation in production (visible in dev mode with a badge) */
42
42
  hiddenInProd?: boolean;
43
+ /**
44
+ * Hide from the default navigation as an "advanced" surface. Unlike
45
+ * `hiddenInProd` (which keys off dev/prod), `hidden` items stay out of the
46
+ * sidebar until the user opts in via the "Show advanced automation features"
47
+ * setting (wired through `setShowHiddenItems(true)`). The route/tab id is
48
+ * still registered, so deep-links and programmatic tab-activation continue
49
+ * to resolve. Used to demote the workflow-authoring surfaces (workflow
50
+ * builder, DAG editor, orchestration loop, step builders) now that the
51
+ * Terminal is the primary entry point. */
52
+ hidden?: boolean;
43
53
  /** Product mode visibility - "ai", "visual", or "both" (default: shown in all modes) */
44
54
  productMode?: "ai" | "visual" | "both";
45
55
  /** URL path for web routing (e.g., "/build/workflows") */
@@ -144,28 +154,52 @@ type NavigationAction = {
144
154
  * Shared navigation group definitions for Qontinui applications.
145
155
  * These define the structure and hierarchy of the sidebar navigation.
146
156
  *
147
- * Each item can have three orthogonal visibility dimensions:
157
+ * Each item can have four orthogonal visibility dimensions:
148
158
  * - platform: "runner" | "web" | both (default) — which app shows the item
149
159
  * - productMode: "ai" | "visual" | "both" | undefined (default=both) — which product mode
150
160
  * - hiddenInProd: true — dev-only items hidden in production
161
+ * - hidden: true — "advanced" surfaces (the workflow-authoring tools) kept
162
+ * out of the default sidebar until the user opts in via "Show advanced
163
+ * automation features" (setShowHiddenItems). Route/tab id stays registered,
164
+ * so deep-links (e.g. the Terminal "save as workflow" disclosure) resolve.
165
+ *
166
+ * ---------------------------------------------------------------------------
167
+ * Terminal-centric information architecture (2026-06).
168
+ * ---------------------------------------------------------------------------
169
+ * The Terminal page is now the primary surface — most users live there running
170
+ * Claude Code / shell sessions. The previous IA (RUN / OBSERVE / LEARN / BUILD /
171
+ * WRAPPERS / CONFIGURE / SCHEDULE) was organised around the older
172
+ * setup→verification→agentic→completion workflow-loop paradigm and surfaced
173
+ * ~25 items by default, burying the handful a session-driven user touches daily.
174
+ *
175
+ * The new IA applies progressive disclosure:
176
+ * - WORKSPACE / REVIEW / SYSTEM — the daily set, expanded by default.
177
+ * - SPEND / AUTOMATE / BUILD / INSIGHTS / CONFIGURE / DEV — collapsed; the
178
+ * legacy workflow-builder + monitoring + accumulated-intelligence long tail,
179
+ * all still one disclosure-click away (nothing is removed; every route and
180
+ * tab id is preserved so deep-links and tab-activation keep resolving).
181
+ *
182
+ * Both platforms share this structure; per-item `platforms`/`productMode`
183
+ * filters yield the right view for each (web has no Terminal; runner has no
184
+ * Dashboard/Runners, etc.).
151
185
  */
152
186
 
153
- declare const RUN_ITEMS: NavigationItem[];
154
- declare const RUN_GROUP: NavigationGroup;
187
+ declare const WORKSPACE_ITEMS: NavigationItem[];
188
+ declare const WORKSPACE_GROUP: NavigationGroup;
155
189
  declare const SESSION_ITEMS: NavigationItem[];
156
190
  declare const RUNS_ITEMS: NavigationItem[];
157
- declare const OBSERVE_ITEMS: NavigationItem[];
158
- declare const OBSERVE_GROUP: NavigationGroup;
159
- declare const LEARN_ITEMS: NavigationItem[];
160
- declare const LEARN_GROUP: NavigationGroup;
191
+ declare const REVIEW_ITEMS: NavigationItem[];
192
+ declare const REVIEW_GROUP: NavigationGroup;
193
+ declare const SPEND_ITEMS: NavigationItem[];
194
+ declare const SPEND_GROUP: NavigationGroup;
195
+ declare const AUTOMATE_ITEMS: NavigationItem[];
196
+ declare const AUTOMATE_GROUP: NavigationGroup;
161
197
  declare const BUILD_ITEMS: NavigationItem[];
162
198
  declare const BUILD_GROUP: NavigationGroup;
163
- declare const WRAPPERS_ITEMS: NavigationItem[];
164
- declare const WRAPPERS_GROUP: NavigationGroup;
199
+ declare const INSIGHTS_ITEMS: NavigationItem[];
200
+ declare const INSIGHTS_GROUP: NavigationGroup;
165
201
  declare const CONFIGURE_ITEMS: NavigationItem[];
166
202
  declare const CONFIGURE_GROUP: NavigationGroup;
167
- declare const SCHEDULE_ITEMS: NavigationItem[];
168
- declare const SCHEDULE_GROUP: NavigationGroup;
169
203
  declare const DEV_ITEMS: NavigationItem[];
170
204
  declare const DEV_GROUP: NavigationGroup;
171
205
  declare const SETTINGS_ITEMS: NavigationItem[];
@@ -173,6 +207,9 @@ declare const SYSTEM_ITEMS: NavigationItem[];
173
207
  declare const SYSTEM_GROUP: NavigationGroup;
174
208
  /**
175
209
  * All navigation groups in order.
210
+ *
211
+ * Order is deliberate: the expanded daily set (WORKSPACE, REVIEW) leads;
212
+ * the collapsed legacy/long-tail groups follow; SYSTEM anchors the bottom.
176
213
  */
177
214
  declare const NAVIGATION_GROUPS: NavigationGroup[];
178
215
  /**
@@ -236,6 +273,20 @@ declare function setProductMode(mode: ProductMode): void;
236
273
  * Get the current product mode filter.
237
274
  */
238
275
  declare function getProductMode(): ProductMode;
276
+ /**
277
+ * Set whether items flagged `hidden: true` should be shown.
278
+ *
279
+ * Defaults to false, so "advanced" surfaces (the workflow-authoring tools)
280
+ * are kept out of the default sidebar. Each app wires this to a persisted
281
+ * "Show advanced automation features" setting (Settings → General). Toggling
282
+ * it on restores the items without affecting their route/tab registration —
283
+ * deep-links resolve regardless of this flag.
284
+ */
285
+ declare function setShowHiddenItems(show: boolean): void;
286
+ /**
287
+ * Whether `hidden` items are currently shown.
288
+ */
289
+ declare function getShowHiddenItems(): boolean;
239
290
  /**
240
291
  * Filter a navigation item based on platform.
241
292
  * Returns true if the item should be shown on the given platform.
@@ -414,4 +465,4 @@ interface NavigationItemShellProps {
414
465
  */
415
466
  declare function NavigationItemShell({ item, onActivate, children, }: NavigationItemShellProps): React.ReactElement;
416
467
 
417
- export { BUILD_GROUP, BUILD_ITEMS, CHILDREN_MAP, CONFIGURE_GROUP, CONFIGURE_ITEMS, DEV_GROUP, DEV_ITEMS, ICON_NAMES, type IconName, LEARN_GROUP, LEARN_ITEMS, NAVIGATION_GROUPS, type NavigationAction, type NavigationBadge, type NavigationGroup, type NavigationItem, type NavigationItemLike, NavigationItemShell, type NavigationItemShellProps, type NavigationState, OBSERVE_GROUP, OBSERVE_ITEMS, type Platform, RUNS_ITEMS, RUN_GROUP, RUN_ITEMS, SCHEDULE_GROUP, SCHEDULE_ITEMS, SESSION_ITEMS, SETTINGS_ITEMS, STORAGE_KEYS, SYSTEM_GROUP, SYSTEM_ITEMS, type SecondarySidebarState, WRAPPERS_GROUP, WRAPPERS_ITEMS, createInitialState, deserializeState, filterGroupForPlatform, filterGroupsForPlatform, filterItemsForPlatform, findItemById, getAllItems, getChildrenForPlatform, getChildrenItems, getItemGroup, getNavigationGroups, getProductMode, getRunnerNavigation, getWebNavigation, isDevelopmentMode, isGroupExpanded, isItemActive, isItemAvailable, isItemExpanded, isSecondaryOpenFor, isValidIconName, navigationActions, navigationReducer, serializeState, setDevelopmentMode, setProductMode, useNavigationItem };
468
+ export { AUTOMATE_GROUP, AUTOMATE_ITEMS, BUILD_GROUP, BUILD_ITEMS, CHILDREN_MAP, CONFIGURE_GROUP, CONFIGURE_ITEMS, DEV_GROUP, DEV_ITEMS, ICON_NAMES, INSIGHTS_GROUP, INSIGHTS_ITEMS, type IconName, NAVIGATION_GROUPS, type NavigationAction, type NavigationBadge, type NavigationGroup, type NavigationItem, type NavigationItemLike, NavigationItemShell, type NavigationItemShellProps, type NavigationState, type Platform, REVIEW_GROUP, REVIEW_ITEMS, RUNS_ITEMS, SESSION_ITEMS, SETTINGS_ITEMS, SPEND_GROUP, SPEND_ITEMS, STORAGE_KEYS, SYSTEM_GROUP, SYSTEM_ITEMS, type SecondarySidebarState, WORKSPACE_GROUP, WORKSPACE_ITEMS, createInitialState, deserializeState, filterGroupForPlatform, filterGroupsForPlatform, filterItemsForPlatform, findItemById, getAllItems, getChildrenForPlatform, getChildrenItems, getItemGroup, getNavigationGroups, getProductMode, getRunnerNavigation, getShowHiddenItems, getWebNavigation, isDevelopmentMode, isGroupExpanded, isItemActive, isItemAvailable, isItemExpanded, isSecondaryOpenFor, isValidIconName, navigationActions, navigationReducer, serializeState, setDevelopmentMode, setProductMode, setShowHiddenItems, useNavigationItem };
package/dist/index.d.ts CHANGED
@@ -40,6 +40,16 @@ interface NavigationItem {
40
40
  shortcut?: string;
41
41
  /** Hide from navigation in production (visible in dev mode with a badge) */
42
42
  hiddenInProd?: boolean;
43
+ /**
44
+ * Hide from the default navigation as an "advanced" surface. Unlike
45
+ * `hiddenInProd` (which keys off dev/prod), `hidden` items stay out of the
46
+ * sidebar until the user opts in via the "Show advanced automation features"
47
+ * setting (wired through `setShowHiddenItems(true)`). The route/tab id is
48
+ * still registered, so deep-links and programmatic tab-activation continue
49
+ * to resolve. Used to demote the workflow-authoring surfaces (workflow
50
+ * builder, DAG editor, orchestration loop, step builders) now that the
51
+ * Terminal is the primary entry point. */
52
+ hidden?: boolean;
43
53
  /** Product mode visibility - "ai", "visual", or "both" (default: shown in all modes) */
44
54
  productMode?: "ai" | "visual" | "both";
45
55
  /** URL path for web routing (e.g., "/build/workflows") */
@@ -144,28 +154,52 @@ type NavigationAction = {
144
154
  * Shared navigation group definitions for Qontinui applications.
145
155
  * These define the structure and hierarchy of the sidebar navigation.
146
156
  *
147
- * Each item can have three orthogonal visibility dimensions:
157
+ * Each item can have four orthogonal visibility dimensions:
148
158
  * - platform: "runner" | "web" | both (default) — which app shows the item
149
159
  * - productMode: "ai" | "visual" | "both" | undefined (default=both) — which product mode
150
160
  * - hiddenInProd: true — dev-only items hidden in production
161
+ * - hidden: true — "advanced" surfaces (the workflow-authoring tools) kept
162
+ * out of the default sidebar until the user opts in via "Show advanced
163
+ * automation features" (setShowHiddenItems). Route/tab id stays registered,
164
+ * so deep-links (e.g. the Terminal "save as workflow" disclosure) resolve.
165
+ *
166
+ * ---------------------------------------------------------------------------
167
+ * Terminal-centric information architecture (2026-06).
168
+ * ---------------------------------------------------------------------------
169
+ * The Terminal page is now the primary surface — most users live there running
170
+ * Claude Code / shell sessions. The previous IA (RUN / OBSERVE / LEARN / BUILD /
171
+ * WRAPPERS / CONFIGURE / SCHEDULE) was organised around the older
172
+ * setup→verification→agentic→completion workflow-loop paradigm and surfaced
173
+ * ~25 items by default, burying the handful a session-driven user touches daily.
174
+ *
175
+ * The new IA applies progressive disclosure:
176
+ * - WORKSPACE / REVIEW / SYSTEM — the daily set, expanded by default.
177
+ * - SPEND / AUTOMATE / BUILD / INSIGHTS / CONFIGURE / DEV — collapsed; the
178
+ * legacy workflow-builder + monitoring + accumulated-intelligence long tail,
179
+ * all still one disclosure-click away (nothing is removed; every route and
180
+ * tab id is preserved so deep-links and tab-activation keep resolving).
181
+ *
182
+ * Both platforms share this structure; per-item `platforms`/`productMode`
183
+ * filters yield the right view for each (web has no Terminal; runner has no
184
+ * Dashboard/Runners, etc.).
151
185
  */
152
186
 
153
- declare const RUN_ITEMS: NavigationItem[];
154
- declare const RUN_GROUP: NavigationGroup;
187
+ declare const WORKSPACE_ITEMS: NavigationItem[];
188
+ declare const WORKSPACE_GROUP: NavigationGroup;
155
189
  declare const SESSION_ITEMS: NavigationItem[];
156
190
  declare const RUNS_ITEMS: NavigationItem[];
157
- declare const OBSERVE_ITEMS: NavigationItem[];
158
- declare const OBSERVE_GROUP: NavigationGroup;
159
- declare const LEARN_ITEMS: NavigationItem[];
160
- declare const LEARN_GROUP: NavigationGroup;
191
+ declare const REVIEW_ITEMS: NavigationItem[];
192
+ declare const REVIEW_GROUP: NavigationGroup;
193
+ declare const SPEND_ITEMS: NavigationItem[];
194
+ declare const SPEND_GROUP: NavigationGroup;
195
+ declare const AUTOMATE_ITEMS: NavigationItem[];
196
+ declare const AUTOMATE_GROUP: NavigationGroup;
161
197
  declare const BUILD_ITEMS: NavigationItem[];
162
198
  declare const BUILD_GROUP: NavigationGroup;
163
- declare const WRAPPERS_ITEMS: NavigationItem[];
164
- declare const WRAPPERS_GROUP: NavigationGroup;
199
+ declare const INSIGHTS_ITEMS: NavigationItem[];
200
+ declare const INSIGHTS_GROUP: NavigationGroup;
165
201
  declare const CONFIGURE_ITEMS: NavigationItem[];
166
202
  declare const CONFIGURE_GROUP: NavigationGroup;
167
- declare const SCHEDULE_ITEMS: NavigationItem[];
168
- declare const SCHEDULE_GROUP: NavigationGroup;
169
203
  declare const DEV_ITEMS: NavigationItem[];
170
204
  declare const DEV_GROUP: NavigationGroup;
171
205
  declare const SETTINGS_ITEMS: NavigationItem[];
@@ -173,6 +207,9 @@ declare const SYSTEM_ITEMS: NavigationItem[];
173
207
  declare const SYSTEM_GROUP: NavigationGroup;
174
208
  /**
175
209
  * All navigation groups in order.
210
+ *
211
+ * Order is deliberate: the expanded daily set (WORKSPACE, REVIEW) leads;
212
+ * the collapsed legacy/long-tail groups follow; SYSTEM anchors the bottom.
176
213
  */
177
214
  declare const NAVIGATION_GROUPS: NavigationGroup[];
178
215
  /**
@@ -236,6 +273,20 @@ declare function setProductMode(mode: ProductMode): void;
236
273
  * Get the current product mode filter.
237
274
  */
238
275
  declare function getProductMode(): ProductMode;
276
+ /**
277
+ * Set whether items flagged `hidden: true` should be shown.
278
+ *
279
+ * Defaults to false, so "advanced" surfaces (the workflow-authoring tools)
280
+ * are kept out of the default sidebar. Each app wires this to a persisted
281
+ * "Show advanced automation features" setting (Settings → General). Toggling
282
+ * it on restores the items without affecting their route/tab registration —
283
+ * deep-links resolve regardless of this flag.
284
+ */
285
+ declare function setShowHiddenItems(show: boolean): void;
286
+ /**
287
+ * Whether `hidden` items are currently shown.
288
+ */
289
+ declare function getShowHiddenItems(): boolean;
239
290
  /**
240
291
  * Filter a navigation item based on platform.
241
292
  * Returns true if the item should be shown on the given platform.
@@ -414,4 +465,4 @@ interface NavigationItemShellProps {
414
465
  */
415
466
  declare function NavigationItemShell({ item, onActivate, children, }: NavigationItemShellProps): React.ReactElement;
416
467
 
417
- export { BUILD_GROUP, BUILD_ITEMS, CHILDREN_MAP, CONFIGURE_GROUP, CONFIGURE_ITEMS, DEV_GROUP, DEV_ITEMS, ICON_NAMES, type IconName, LEARN_GROUP, LEARN_ITEMS, NAVIGATION_GROUPS, type NavigationAction, type NavigationBadge, type NavigationGroup, type NavigationItem, type NavigationItemLike, NavigationItemShell, type NavigationItemShellProps, type NavigationState, OBSERVE_GROUP, OBSERVE_ITEMS, type Platform, RUNS_ITEMS, RUN_GROUP, RUN_ITEMS, SCHEDULE_GROUP, SCHEDULE_ITEMS, SESSION_ITEMS, SETTINGS_ITEMS, STORAGE_KEYS, SYSTEM_GROUP, SYSTEM_ITEMS, type SecondarySidebarState, WRAPPERS_GROUP, WRAPPERS_ITEMS, createInitialState, deserializeState, filterGroupForPlatform, filterGroupsForPlatform, filterItemsForPlatform, findItemById, getAllItems, getChildrenForPlatform, getChildrenItems, getItemGroup, getNavigationGroups, getProductMode, getRunnerNavigation, getWebNavigation, isDevelopmentMode, isGroupExpanded, isItemActive, isItemAvailable, isItemExpanded, isSecondaryOpenFor, isValidIconName, navigationActions, navigationReducer, serializeState, setDevelopmentMode, setProductMode, useNavigationItem };
468
+ export { AUTOMATE_GROUP, AUTOMATE_ITEMS, BUILD_GROUP, BUILD_ITEMS, CHILDREN_MAP, CONFIGURE_GROUP, CONFIGURE_ITEMS, DEV_GROUP, DEV_ITEMS, ICON_NAMES, INSIGHTS_GROUP, INSIGHTS_ITEMS, type IconName, NAVIGATION_GROUPS, type NavigationAction, type NavigationBadge, type NavigationGroup, type NavigationItem, type NavigationItemLike, NavigationItemShell, type NavigationItemShellProps, type NavigationState, type Platform, REVIEW_GROUP, REVIEW_ITEMS, RUNS_ITEMS, SESSION_ITEMS, SETTINGS_ITEMS, SPEND_GROUP, SPEND_ITEMS, STORAGE_KEYS, SYSTEM_GROUP, SYSTEM_ITEMS, type SecondarySidebarState, WORKSPACE_GROUP, WORKSPACE_ITEMS, createInitialState, deserializeState, filterGroupForPlatform, filterGroupsForPlatform, filterItemsForPlatform, findItemById, getAllItems, getChildrenForPlatform, getChildrenItems, getItemGroup, getNavigationGroups, getProductMode, getRunnerNavigation, getShowHiddenItems, getWebNavigation, isDevelopmentMode, isGroupExpanded, isItemActive, isItemAvailable, isItemExpanded, isSecondaryOpenFor, isValidIconName, navigationActions, navigationReducer, serializeState, setDevelopmentMode, setProductMode, setShowHiddenItems, useNavigationItem };