Repository navigation
feat: space archive - #2659
Merged
Merged
feat: space archive#2659
Conversation
Philipinho
commented
Nov 7, 2026
Member
- add excludeArchived and keepArchivedSpaceId options to the user space id helpers - filter the space list by archive state and accept an archived flag - add ListSpacesDto for the space list endpoint
- mark OAuth requests as integration calls with a global interceptor - treat an archived space as missing in the space ability factory for integration calls - always filter archived spaces out of the user space id queries for integration calls - add SpaceRepo.isArchived
- SpaceMemberRepo and SpaceAbilityFactory inject ClsService, which the collab root did not provide - register it globally without middleware, so it stays inactive in the collab process
- page search skips archived spaces when no space is given - suggestions skip archived spaces but keep the current one - record the ee pointer for Typesense and attachment search
- recent pages, created-by and label pages skip archived spaces when no space is given - label counts and label suggestions skip archived spaces too - record the ee pointer for verified pages and the template gallery
- AI answers, AI chat semantic search and Slack ask skip archived spaces, even when scoped to one - record the ee pointer for the AI search change
- chat tools read an archived page only from the page the chat is open on and @mentioned pages - record the ee pointer for the AI chat change
- shares, share SEO, share search and transclusion lookup answer like a missing share while the space is archived - anonymous reads use the new isShareReadable; creating a share still uses isSharingAllowed - public docs, cross-space links, the /docs directory and the published spaces list skip archived spaces - nothing is deleted or changed, so unarchiving brings everything back - record the ee pointer for Typesense share search
- user favorites take an opt-in excludeArchived option; the app favorites list is unchanged - the Slack favorites command asks for it, and link unfurls and notification DMs skip archived spaces - record the ee pointer for the Slack change
- add archivedAt and archivedById to ISpace and an archived list param to QueryParams - add archive and unarchive service calls and mutations that merge the returned row into the cached space - add an Archive or Unarchive row to space settings, hidden for personal spaces - add audit labels and filter options for space.archived and space.unarchived
- add an archived notice to the space home and page view, with an Unarchive button for space admins - show an Archived badge after the space name in the sidebar switcher and on favorites - select archivedAt in the favorites space selections
- render the archived notice on base pages, in a non-shrinking wrapper above the base view - add the Archived badge after the name on the favorite spaces grid - hide the public globe in the space sidebar while the space is archived
- add an Active/Archived switch to the spaces page and the workspace space list - keep the archived space you are in named and preselected in the destination picker, space filter, template picker and search filter - carry the archived space id on label chip links so the label page keeps its space filter - key search suggestions by space id as well as query
- note that the public link is paused in the page share Publish tab - show a Public site paused notice on the space home and a paused note in the space publish settings - hide the Public chip in the page header while the space is archived - skip the AI answers request and show a note when an archived space is selected in the search spotlight
… archived - create_page proceeds to the normal checks outside the archived space the chat is open in - get_space returns a space that is not archived without any allowed spaces
- the full-page chat cannot suggest archived pages in its mention list
- run the interceptor, space abilities, page access and space list in a real request context - cover spaces/info, pages/info and scoped search for OAuth tokens, API keys and sessions - cover the archive and unarchive handlers for writers, viewers, non-members and OAuth tokens - cover MCP requests made with an API key
- use the calendar date instead of Today or Yesterday - announce the notice as a note instead of an alert
- invalidate unified-search and pages-created-by-user when a space is archived or unarchived
- add the template's own space to the scope options of the editor
- the status region repeats the archived note instead of No answer available
- push spaceArchiveUpdated to the space room on archive and unarchive - patch cached copies of the space and refresh its lists when the event arrives - share the cache update between the archive mutation and the socket handler
- replace the segmented control with a filter button and menu styled like the search filters - move the filter to its own row under the search input on both space lists - name the button for screen readers
- use a fixed table layout so the columns no longer shift between the active and archived lists - let long space names truncate instead of running into the members column
- use a default bordered button like the label page filter instead of the search modal chip - put the filter on the Create space row in Settings > Spaces, with the search below
- share search goes through the same readability gate as other anonymous reads - shared page and tree check the gate before loading anything - typesense hits follow each page's current space after a move
… check - archive and unarchive accept a slug and answer 404 for an unknown space - the archive websocket event uses the stored space id - the integration caller mark throws outside a CLS context - memoize the archived lookup per request for OAuth and MCP callers - correct the domain middleware comment in the share controller
- say what the host fallbacks actually cover
- allow a created page in the same request and in later turns - correct the archived page refusal text
…paces stay unreachable
…e empty hint only with archived spaces - leave unrelated cached spaces untouched and drop inactive cross-space lists - use getApiErrorMessage for space mutation error toasts - probe for archived spaces before showing the no active spaces hint
…mplate gallery - keep the current space in the search space filter after switching to all spaces - show the share indicators only while the share is live - list archived spaces in the template gallery filter - send currentSpaceId from the template picker for the all scope
…chived page refusal at the right chat - space mutation toasts use a translated fallback message - drop redundant comment in share seo controller - update ee submodule
- show only the archive date in the archived notice - give the archive and unarchive settings rows one-line descriptions - use the standard confirm wording for archiving
- shares, share search and published spaces no longer check the archive - drop the paused notes from the share dialog and public space screens - show the public globe next to the Archived badge - public space specs now expect archived spaces to stay served
- includeArchived on SearchDTO lets unscoped search cover archived spaces - Include archived switch under + Filter, with a removable chip - results from archived spaces show an Archived badge under the timestamp - withSpace can add archivedAt, used only by member search - filter row scrolls in a thin Mantine ScrollArea
- scroll + Filter back into view when the chip pushes it out of the row - move focus to + Filter when the chip is removed - pin that OAuth and MCP callers never get archived spaces from includeArchived
- archived notice says Archived by {name} on {date}
- space info, the archive response and the live update carry archivedBy
- unarchive reads Restore space in the banner, settings and toast
- Active spaces / Archived spaces select on the search row of both space lists - Create space goes back to its own row in settings, as on main
- hide the Spaces settings item from members, who use /spaces instead - the page renders nothing for members, like Billing and AI settings
- the This space is public banner gets print-hide, like the byline
- bold state, muted archived by line and Restore space on one row - light bordered background like the deleted page banner - dates read Nov 4, 2026 - stays out of printed pages
- Archive space row: Archive a stale space to keep it out of lists and search
- archive and unarchive share one lookup and Manage Settings check - the service takes the resolved space instead of reading it again - controller spec expects the user object the service receives
- member search reads each hit's current space and its name in one query instead of two
- archived spaces stay out of space lists and unscoped search unless asked for, and pages in them open by id or link - drop the per-request integration caller tag, its interceptor and the collab ClsModule - drop the favorites excludeArchived option only Slack used - update ee submodule
- useUnlistedSpaceQuery fetches a space only when the loaded list lacks it - the spotlight takes the archived flag from its filters instead of its own lookup
- the filter reads spaceId from the URL and the space menu writes it back - reload, shared links, back and forward and the header chip agree with the filter
- keep main's comment and issue links in the share SEO controller
- ee: restore the OAuth strategy and well-known controller comments
- Open space button in the settings modal header from Settings › Spaces and the spaces list
- /settings/spaces redirects non-admins to /spaces - read the role from the user query so a first visit never redirects an admin
- spaces.home_page_id and its partial index ship with the archive columns - migration renamed to 20261102T160858-space-archive-and-home-page
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.