Rename all 1,169 components to path-based names with namespace support

Component names now reflect filesystem location using / as path separator
and : as namespace separator for shared components:
  ~sx-header → ~layouts/header
  ~layout-app-body → ~shared:layout/app-body
  ~blog-admin-dashboard → ~admin/dashboard

209 files, 4,941 replacements across all services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 22:00:12 +00:00
parent de80d921e9
commit b0920a1121
209 changed files with 4620 additions and 4620 deletions

View File

@@ -708,7 +708,7 @@ class TestParityDeps:
def test_scan_components_from_sx(self):
from shared.sx.deps import _scan_components_from_sx_fallback
from shared.sx.ref.sx_ref import scan_components_from_source as ref_sc
source = '(~card :title "hi" (~badge :label "new"))'
source = '(~card :title "hi" (~shared:misc/badge :label "new"))'
hw = _scan_components_from_sx_fallback(source)
ref = set(ref_sc(source))
assert hw == ref
@@ -718,13 +718,13 @@ class TestParityDeps:
from shared.sx.ref.sx_ref import compute_all_io_refs as ref_cio
io_names = {"highlight", "app-url", "config", "fetch-data"}
hw_env, ref_env = self._make_envs(
'(defcomp ~page (&key) (div (~nav) (fetch-data "x")))',
'(defcomp ~nav (&key) (nav (app-url "/")))',
'(defcomp ~page (&key) (div (~plans/environment-images/nav) (fetch-data "x")))',
'(defcomp ~plans/environment-images/nav (&key) (nav (app-url "/")))',
'(defcomp ~pure (&key) (div "hello"))',
)
_compute_all_io_refs_fallback(hw_env, io_names)
ref_cio(ref_env, list(io_names))
for key in ("~page", "~nav", "~pure"):
for key in ("~page", "~plans/environment-images/nav", "~pure"):
hw_refs = hw_env[key].io_refs or set()
ref_refs = ref_env[key].io_refs
assert set(hw_refs) == set(ref_refs), f"IO refs mismatch for {key}"