Repository navigation
feat(org): Phase 3 in-host Org chart (org-ui + Dashboard + export list) - #58
Merged
Merged
Conversation
Add host org tree CRUD and a shared OrgChartPage mounted at /organization/org, following the Phase 2 Announcements dual-delivery seam. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
XYAIStudio
marked this pull request as ready for review
September 19, 2026 03:09
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 for Organization UI: Org chart as an in-host Organization sub-UI, same dual-delivery seam as Phase 2 Announcements (#57). Organization module / host is the source of truth. No iframe, no second port, no sidecar required.
/api/org-module/org(tree,departments,employees) matching the openXYOS/api/orgenvelope{ success, data }where practical. Persists to{FREEOS_HOME}/org/org_chart.sqlite. Auth is existing FreeOS JWT (current_user); create/update/delete require admin. Read is available to any signed-in user.dashboard/src/org-ui(OrgChartPage+createOrgApiClient().org). Dashboard adapter at/organization/orgwith a workbench path tab and entry card beside Announcements.freeos org export-standalone --out …now lists both Announcements and Org chart and imports the sameOrgChartPage. Full Vite + Node packaging remains a Phase 5 TODO.Acceptance (same A–E bar as Phase 2)
/organization/.../organization/orgdashboard/src/org-ui+ CLI scaffold importsOrgChartPageDeferred (not in this PR)
/employees); lifecycle / spawn already on the hosthtml-to-image/jsPDF)export-standaloneVite + Node packaging (Phase 5)App.tsxroutespackages/org-uiVerification
uv run pytest tests/unit/test_org_chart.py tests/unit/test_org_announcements.py tests/unit/cli/test_org_export_standalone.py tests/unit/i18n/test_catalog.pygreencd dashboard && npx tsc --noEmitgreensrc/org-ui, Organization page, controlAdminPath green