Skip to content

refactor(admin-settings): show avatars and space images in the name column - #3516

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/admin-settings-avatar-in-name-column
Oct 1, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/admin-settings-avatar-in-name-column

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Description

We want the tables across the apps to look and behave alike. In the files app, the icon or image of a resource is part of the name column (image, a small gap, then the name). The admin settings rendered user avatars, group avatars and space images in an extra column without a header instead. This PR moves them into the name column, so the admin settings tables match the files app.

List Before After
Users separate avatar column avatar in the "User name" column, which stays visible on small screens
Groups separate avatar column avatar in the "Group name" column, before the name and the read-only lock icon
Spaces separate icon column space image in the "Name" column, same markup as the spaces table of the files app

The extra columns and their hidden "Avatar"/"Icon" headers are removed.

SpaceImage no longer needs max-w-none: it was only needed while the image sat alone in a shrink column, where the global img { max-width: 100% } collapsed the column and the images to 0×24 as soon as every row showed an image. Inside the name column the images keep their size.

Screenshots

Before After
Users
Users before
Users
Users after
Groups
Groups before
Groups
Groups after
Spaces
Spaces before
Spaces
Spaces after

For comparison, the spaces table of the files app:

Spaces table of the files app

Related Issue

  • No related issue

How Has This Been Tested?

  • test environment: local pnpm vite dev server against the docker-compose backend, Playwright, unit tests with Vitest
  • test case 1: users, groups and spaces lists in the admin settings: the name column directly follows the checkbox column, the avatar or image is shown in front of the name
  • test case 2: the admin spaces list matches the spaces table of the files app (24×24 image, 8px gap, header aligned with the image)
  • test case 3: without max-w-none, all space images keep 24×24 in the admin spaces list and the files app's spaces table, at 1280px and 375px viewport width, also when every listed space has an image
  • test case 4: unit tests of web-app-admin-settings, web-pkg (space components) and the files app's spaces views, pnpm check:types, lint and format pass

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit a98a320 into main Oct 1, 2026
32 checks passed
@AlexAndBear
AlexAndBear deleted the fix/admin-settings-avatar-in-name-column branch October 1, 2026 12:12
@openclouders openclouders mentioned this pull request Oct 1, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants