Repository navigation
feat(org): Phase 3 in-host Employees directory - #59
Merged
Merged
Conversation
Add EmployeesPage and EmployeeDetailPage to shared org-ui, mount them under /organization/employees, and expose list/detail/stats on the existing org-chart store so directory CRUD and the org tree share one SQLite file. Lifecycle colleagues stay on /api/org-module/employees. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
XYAIStudio
marked this pull request as ready for review
September 19, 2026 03:18
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 3 vertical slice: Employees directory as an in-host Organization sub-UI, using the same org-ui dual-delivery seam as Announcements (#57) and Org chart (#58).
dashboard/src/org-ui/pages/employees(EmployeesPage+EmployeeDetailPage)/organization/employees,/organization/employees/:idGET/POST /api/org-module/org/employees,GET /api/org-module/org/employees/stats,GET/PUT/DELETE /api/org-module/org/employees/{id}freeos org export-standalonenow listsemployeesand imports the same pagesData model (one store)
Directory employees reuse
{FREEOS_HOME}/org/org_chart.sqlitefrom the org-chart slice. OrgChartPage and EmployeesPage read/write the sameemployeesrows. This avoids a second SQLite file that would drift from the tree.org/org_chart.sqlite/api/org-module/org/employees*tenants/<id>/employees/registry.jsonGET /api/org-module/employees·/transition·/spawn(unchanged)openXYOS sidecar
/api/employeesis reference-only. Default path does not start or call:3780.Deferrals (out of this PR)
export-standaloneVite/Node packaging (Phase 5)Test plan
uv run pytest tests/unit/test_org_chart.py tests/unit/cli/test_org_export_standalone.py tests/unit/test_org_announcements.pyuv run mypy --stricton changed org_chart / export / contract modulescd dashboard && npx tsc --noEmitcd dashboard && npm test -- src/org-ui src/pages/Organization src/routes/controlAdminPath.test.ts(60 passed)make all(full ship bar; run in CI)Live browser walkthrough of
/organization/employeeswas not run here (no signed-in FreeOS host in this environment). Component tests cover list/create/detail/edit without iframe.