@campminder/components 0.5.1 → 0.6.0
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.
|
@@ -11,12 +11,14 @@ export declare function findCategoryByUrl(tree: MenuTree, url: string): string |
|
|
|
11
11
|
/**
|
|
12
12
|
* Whether a sub-category has anything for a user to reach.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* `Reporting > Custom Reports
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* One sub-category in the Campminder tree is **permanently empty by design** —
|
|
15
|
+
* `Reporting > Custom Reports`. Its contents are per-client database rows, and
|
|
16
|
+
* `NavigationBuilder.cs:104-111` assigns them with `=`, not `+=`, so the host replaces the
|
|
17
|
+
* section wholesale at request time. This shell has no database (ADR D5 and D7: the tree is
|
|
18
|
+
* committed configuration, filtering is pure), so there is nothing to put in it and a
|
|
19
|
+
* rendered header would lead nowhere. `Reporting > Phone Reservations` used to be the second
|
|
20
|
+
* case; it carries four static links since AB#28810 and is empty only when the entitlement
|
|
21
|
+
* hides it.
|
|
20
22
|
*
|
|
21
23
|
* Ruled 2026-09-02: **hide them**, and carry the gap to Phase 2, where the host that
|
|
22
24
|
* consumes the shell has the database anyway.
|
|
@@ -24,7 +26,7 @@ export declare function findCategoryByUrl(tree: MenuTree, url: string): string |
|
|
|
24
26
|
* `sub.href` matters because the tree format allows a sub-category to be a direct link
|
|
25
27
|
* with zero children — `findCategoryByUrl` above relies on that. Such a sub-category is
|
|
26
28
|
* reachable and must survive; only one with neither children nor a link of its own is
|
|
27
|
-
* dead weight. (
|
|
29
|
+
* dead weight. (Today's empty sub-category has no `href`.)
|
|
28
30
|
*
|
|
29
31
|
* This is a **render-time** rule, not a tree edit, deliberately: Floor 6's visibility
|
|
30
32
|
* filter will produce the same situation dynamically whenever every leaf in a section is
|