@campminder/components 0.5.0 → 0.5.2

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
- * Two sub-categories in the Campminder tree are **permanently empty by design** —
15
- * `Reporting > Custom Reports` and `Reporting > Phone Reservations`. Their contents are
16
- * per-client database rows, and `NavigationBuilder.cs:104-111` assigns them with `=`, not
17
- * `+=`, so the host replaces the section wholesale at request time. This shell has no
18
- * database (ADR D5 and D7: the tree is committed configuration, filtering is pure), so
19
- * there is nothing to put in them and a rendered header would lead nowhere.
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. (Neither of today's two empty sub-categories has an `href`.)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campminder/components",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"