From 2d25e335158fbe4f54089f677c901afbfeaf9a17 Mon Sep 17 00:00:00 2001 From: Tyler Gillispie Date: Wed, 26 Aug 2026 10:37:57 -0700 Subject: [PATCH] wip(ui): preserve in-flight admin drawers and scripts extraction - Preserves extracted components: AppDrawer, InviteDrawer, RoleEditorDrawer - Preserves extracted SSR JSX scripts: AdminAppsScript, AdminInvitesScript, AdminRolesScript - Parks Phase 2 task spec in tasks/wip/ - Checkpoint preserved AS IS from session 3615485303186036917 --- patch_apps.sh | 2 + patch_apps2.sh | 2 + patch_apps_imports.sh | 1 + patch_roles.sh | 5 + ....arch.ui-decomposition-roadmap-2300.ph2.md | 0 ui/components/AdminAppsPage.tsx | 246 +---------- ui/components/AdminInvitesPage.tsx | 392 +----------------- ui/components/admin/AdminAppsScript.tsx | 123 ++++++ ui/components/admin/AdminInvitesScript.tsx | 211 ++++++++++ ui/components/admin/AdminRolesScript.tsx | 154 +++++++ ui/components/admin/drawers/AppDrawer.tsx | 128 ++++++ ui/components/admin/drawers/InviteDrawer.tsx | 187 +++++++++ .../admin/drawers/RoleEditorDrawer.tsx | 99 +++++ 13 files changed, 920 insertions(+), 630 deletions(-) create mode 100755 patch_apps.sh create mode 100755 patch_apps2.sh create mode 100755 patch_apps_imports.sh create mode 100755 patch_roles.sh rename tasks/{new => wip}/2026-0825.01.jul.story.arch.ui-decomposition-roadmap-2300.ph2.md (100%) create mode 100644 ui/components/admin/AdminAppsScript.tsx create mode 100644 ui/components/admin/AdminInvitesScript.tsx create mode 100644 ui/components/admin/AdminRolesScript.tsx create mode 100644 ui/components/admin/drawers/AppDrawer.tsx create mode 100644 ui/components/admin/drawers/InviteDrawer.tsx create mode 100644 ui/components/admin/drawers/RoleEditorDrawer.tsx diff --git a/patch_apps.sh b/patch_apps.sh new file mode 100755 index 0000000..671dcdd --- /dev/null +++ b/patch_apps.sh @@ -0,0 +1,2 @@ +sed -i '63,185c\ + ' ui/components/AdminAppsPage.tsx diff --git a/patch_apps2.sh b/patch_apps2.sh new file mode 100755 index 0000000..5c67fbd --- /dev/null +++ b/patch_apps2.sh @@ -0,0 +1,2 @@ +sed -i '206,323c\ + ' ui/components/AdminAppsPage.tsx diff --git a/patch_apps_imports.sh b/patch_apps_imports.sh new file mode 100755 index 0000000..364124c --- /dev/null +++ b/patch_apps_imports.sh @@ -0,0 +1 @@ +sed -i '1s/^/import { AppDrawer } from ".\/admin\/drawers\/AppDrawer.tsx";\nimport { AdminAppsScript } from ".\/admin\/AdminAppsScript.tsx";\n/' ui/components/AdminAppsPage.tsx diff --git a/patch_roles.sh b/patch_roles.sh new file mode 100755 index 0000000..242e193 --- /dev/null +++ b/patch_roles.sh @@ -0,0 +1,5 @@ +sed -i 's/import { AdminModal } from ".\/admin\/AdminModal.tsx";/import { AdminModal } from ".\/admin\/AdminModal.tsx";\nimport { RoleEditorDrawer } from ".\/admin\/drawers\/RoleEditorDrawer.tsx";\nimport { AdminRolesScript } from ".\/admin\/AdminRolesScript.tsx";/' ui/components/AdminRolesPage.tsx +sed -i '44,139c\ + ' ui/components/AdminRolesPage.tsx +sed -i '287,392c\ + ' ui/components/AdminRolesPage.tsx diff --git a/tasks/new/2026-0825.01.jul.story.arch.ui-decomposition-roadmap-2300.ph2.md b/tasks/wip/2026-0825.01.jul.story.arch.ui-decomposition-roadmap-2300.ph2.md similarity index 100% rename from tasks/new/2026-0825.01.jul.story.arch.ui-decomposition-roadmap-2300.ph2.md rename to tasks/wip/2026-0825.01.jul.story.arch.ui-decomposition-roadmap-2300.ph2.md diff --git a/ui/components/AdminAppsPage.tsx b/ui/components/AdminAppsPage.tsx index d6ae42f..07af9b0 100644 --- a/ui/components/AdminAppsPage.tsx +++ b/ui/components/AdminAppsPage.tsx @@ -1,6 +1,7 @@ +import { AppDrawer } from "./admin/drawers/AppDrawer.tsx"; +import { AdminAppsScript } from "./admin/AdminAppsScript.tsx"; import { AdminLayout } from "./AdminLayout.tsx"; import { AdminTable } from "./admin/AdminTable.tsx"; -import { AdminModal } from "./admin/AdminModal.tsx"; export const AdminAppsPage = ({ apps, @@ -60,129 +61,7 @@ export const AdminAppsPage = ({ - {/* Register / Edit App Modal */} - -

- Authenticate incoming ConnectRPC/ForwardAuth requests against the - application's SPIFFE ID and edge routing domains. -

- -
- - -
-
- - -
-
- - -
-
- -
- - -
- -
- - -
- -
- -
- -
-
- - -
-
- - -
-
- -
- - -
-
-
+ - + ); }; diff --git a/ui/components/AdminInvitesPage.tsx b/ui/components/AdminInvitesPage.tsx index 433532a..ffaee91 100644 --- a/ui/components/AdminInvitesPage.tsx +++ b/ui/components/AdminInvitesPage.tsx @@ -1,6 +1,8 @@ import { AdminLayout } from "./AdminLayout.tsx"; import { AdminTable } from "./admin/AdminTable.tsx"; import { AdminModal } from "./admin/AdminModal.tsx"; +import { InviteDrawer } from "./admin/drawers/InviteDrawer.tsx"; +import { AdminInvitesScript } from "./admin/AdminInvitesScript.tsx"; export const AdminInvitesPage = ({ invites, @@ -66,187 +68,7 @@ export const AdminInvitesPage = ({ - -

- Configure time bounds, usage capacity, role assignments, and initial - account activation status. -

- -
- {/* Row 1: Type & Target App */} -
-
- - -
- -
- - -
-
- - {/* Row 2: Usage Limits & Assigned Role */} -
-
- - -
- - - -
- - -
-
- - {/* Row 3: Expiration, Custom Code, Activation Toggle */} -
-
- - -
- -
- - -
- -
- -
-
- -
- - -
-
- - -
+ -