feat(enclave): remove landing menu; sidebar + create-chat, invite-search to settings #352
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/lc-336-remove-enclave-landing-menu"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Removes the enclave landing menu (
GET /enclave/{id}) and splits its features across the sidebar, settings, and the empty-state pane. The landing menu only ever appeared when an enclave had no openable rooms, was a separate surface from settings, and dead-ended once the user entered a chat.+create-chat. The "ROOMS" header now renders a+popover whenever in an enclave context. It holds the full create-room form (name + text/voice + public/private) and posts to the unchangedPOST /enclave/{id}/rooms. Gated on the existing per-enclave manage check (can_manage_sidebar_categories, which isenclave_can_manage(...)for the current enclave). In an enclave the header renders even with zero rooms, so the first chat is creatable from the sidebar.get_invite_search->#enclave-invite-results,post_invite).Cleanup
The landing-only live regions
#lc-enclave-rooms/#lc-enclave-members(LC-170) are gone with the menu: their OOB fragment templates, view structs, and render helper are removed, and theEnclaveRoomAdded/RemovedWS arm now refreshes only the enclave-keyed sidebar nav.render_enclave_membersnow renders only the settings members fragment (#lc-enclave-settings-members, unchanged).EnclavePageis trimmed to the placeholder fields andget_landingdrops the now-unused member/room queries. Dead i18n keys removed from both en and es; new keys added to both.Test
./dev/cargo check,just check(clippy standalone + saas + desktop, fmt) clean.just testandjust test-saasboth green.POST /enclave/{id}/rooms,/invite,/invite/searchhandlers.Closes LC-336.
The enclave landing menu (GET /enclave/{id}) only ever showed when an enclave had no openable rooms, was distinct from settings, and dead-ended once the user entered a chat. Remove it and split its features: create-chat moves to a new + popover beside the sidebar ROOMS label (gated on the existing enclave-manage check, full name/kind/visibility form posting to the unchanged POST /enclave/{id}/rooms), the invite-by-search typeahead moves into the settings members section, and the no-room fallback renders a small placeholder pane instead of the two-column menu. Settings stays reachable via the switcher-rail gear (LC-143). Remove the now-dead landing live-render path: the #lc-enclave-rooms / #lc-enclave-members OOB fragments (LC-170), their view structs and render helper, and the EnclaveRoomAdded/Removed arm's landing render (it now refreshes only the enclave-keyed sidebar nav). The settings members live region (#lc-enclave-settings-members) is unchanged. Trim EnclavePage to the placeholder fields and drop the unused member/room queries in get_landing. #LC-336 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>