Repository navigation
feat(org): Phase 2 in-host Announcements (org-ui + Dashboard + export skeleton) - #57
Merged
Merged
Conversation
Add host CRUD at /api/org-module/announcements persisted under FREEOS_HOME/org, a shell-agnostic AnnouncementPage, Dashboard route /organization/announcements, and a freeos org export-standalone scaffold. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Avoid FastAPI response_model unions, keep mypy happy on the store, and target the modal submit button in the shared AnnouncementPage test. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
XYAIStudio
marked this pull request as ready for review
September 19, 2026 02:50
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 2 vertical slice for Organization UI: Announcements as an in-host Organization sub-UI. Organization module / host is the source of truth. No iframe, no second port, no sidecar required.
/api/org-module/announcements*(list / create / update / delete / pin / mark-read / unread). Envelope matches openXYOS{ success, data }so later export is easier. Persists to{FREEOS_HOME}/org/announcements.sqlite. Auth is existing FreeOS JWT (current_user); publish/edit/delete require admin.dashboard/src/org-ui(AnnouncementPage+createOrgApiClient+ IdentityBridge types). Dashboard adapter at/organization/announcementswith workbench path tabs and an entry card. Sidebar still highlights Organization.freeos org export-standalone --out …writes a snapshot that lists Announcements and imports the sameAnnouncementPage. Full Vite + Node packaging is left as a Phase 5 TODO.Acceptance (org-merge-plan Phase 2)
/organization/.../organization/announcementsdashboard/src/org-ui+ CLI scaffold imports itDeferred to Phase 3+
export-standaloneVite + Node packaging (Phase 5)App.tsxroutespackages/org-ui(only if the Dashboard Vite graph must be left behind)Verification
make lint+make typecheckgreenuv run pytest tests/unit/test_org_announcements.py tests/unit/cli/test_org_export_standalone.py tests/unit/i18n tests/unit/test_org_module.pygreencd dashboard && npx tsc --noEmitgreensrc/org-ui, Organization page, controlAdminPath, sidebarNav green