Repository navigation
feat(admin-settings): use the web-pkg spaces store, add the customize menu and space images - #3501
Merged
Merged
Conversation
… menu sections with the files app
JammingBen
reviewed
Oct 1, 2026
JammingBen
left a comment
Member
There was a problem hiding this comment.
Noticed 2 small bugs:
- Open a space in the files app, then go to the admin settings and select the same space -> endless loading spinner in the batch actions.
- A SSE "member removed" event removes a space from the list in the admin-settings. It then re-appears after page reload.
…eir permissions again
Member
Author
thanks, should be fixed |
JammingBen
approved these changes
Oct 1, 2026
2 of 7 tasks
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.
Description
The admin settings spaces list now uses the spaces store of web-pkg instead of its own copy of the spaces. With that, the space actions of the files app update the admin list on their own, the admin space context menu gets the same Customize submenu as the files app, and the spaces list shows (and updates) the space images.
Why: the old design
The admin settings kept its own spaces store, so every space action of the files app had to know about the admin settings route and patch the admin copy of the space by hand, e.g. in
useSpaceActionsEditDescription:The same pattern existed for rename, disable and restore; delete and quota changes published admin-only events (
app.admin-settings.list.load,app.admin-settings.spaces.space.quota.updated) and the admin view mirrored spaces created via the FAB with a$onActionhook. Actions that didn't do this (set image/icon, delete image, the permission loading needed by the Customize actions) simply never reached the admin list.Spaces store (web-pkg)
allProjectSpacescollection withsetAllProjectSpaces(),undefinedunless the admin settings loaded itspacesstays "the spaces of the current user", which the files app and the runtime rely on (Projects view, trash overview, drive resolution, SSE, …)upsertSpaceandupdateSpaceFieldapply to both collections,removeSpacetoo unless called with{ deleted: false }spacesbut stays inallProjectSpaces, it still existsallProjectSpacesholds its own space objects, separate fromspacesloadGraphPermissionsworks on both collections (a copy without permissions is loaded even if the other copy has them already), treats a 404 (user isn't a member) as "no permissions" and always clears its loading statespacesonly, so the batch actions of the admin settings kept spinning. A failed request previously stayed "loading" forever and was awaited again on every callAdmin settings
spacesStore.allProjectSpaces, the adminspaceSettingsStoreonly keeps the selectionapp.admin-settings.list.loadand quota eventsroot($expand=permissions)via a$onActionhook onupsertSpace; only the response of the latest request per space is appliedcreateDrive/getDrive/updateDrivedon't contain the members, so the manager/members columns showed "-" or outdated members until a reloadDrives.List.all, so withoutDrives.ReadWriteEnabled.alldisable, enable and delete depend on the user's permissions in the spaceusePagination)app.admin-settings.list.loadhandler, which also read the page size with a wrong default ('1') and thus hardly ever corrected the pagefitprocessor, for the spaces on the current page, again onapp.files.spaces.uploaded-imageAligned with the files app
ResourceStatusIndicatorsinstead ofoc-status-indicatorswith own indicator loadingSpaceInfoas side bar headerno-selection,details-space,details-space-multiple,space-share), members panel hidden for disabled spacesspace-share)app.admin-settings.list.clicked.meta/.shiftinstead ofapp.resources.list.clicked.*(spaces, users, groups)app.files.list.clicked.*events that web-pkg publishesAppTemplatetertiaryactions were shown, so e.g. "Duplicate" (secondary) was missingh1) in the app barprimary…quaternaryfitprocessoravatarHeaderslot, the write-only "last selected index" of the admin keyboard composables, the unusedapp.files.shiftAnchor.resetpublish, the unusedsupportedLogoMimeTypesconstantFiles app / web-pkg
route.name === 'admin-settings-spaces'special cases from rename, edit subtitle, disable, restore and delete, and the admin event from the quota modalSpaceImagecomponent in web-pkg, used by the files app's spaces table and the admin spaces list; the image keeps its 24×24 size viamax-w-noneshrink, so with an image in every row the globalimg { max-width: 100% }collapsed the column and the images to 0×24 (only rows with the fixed-size fallback icon kept it open)mainvia the context menu)Related Issue
How Has This Been Tested?
pnpm test:unit(web-pkg, web-app-files, web-app-admin-settings, web-runtime),pnpm check:types,pnpm lint,pnpm format:check; every commit passes the unit tests and the type check on its ownallProjectSpaces, separate space objects, keeping spaces the user lost access to, permissions of non-member spaces and of spaces whose other copy has them already, retry after a failed permission request), the SSE "member removed" handler,SpaceImage, the image loading of the admin spaces list and the admin Spaces view (reload of spaces without members incl. outdated responses, reload after losing access, permission loading, selection cleanup)processor=fit64×64 like the files app's spaces tablealan):Types of changes