Skip to content

fix(dashboard): drop the ring and give the teams row more room - #445

Merged
harshtandiya merged 5 commits into
developfrom
fix/431-avatar-group
Sep 8, 2026
Merged

fix(dashboard): drop the ring and give the teams row more room#445
harshtandiya merged 5 commits into
developfrom
fix/431-avatar-group

Conversation

@harshtandiya

@harshtandiya harshtandiya commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator
  • UserGroup's ring-2 ring-surface-white never compiled — frappe-ui's Tailwind plugin extends ringColor with only outline/outline-alpha (tailwind/plugin.js:281) and its palette has no surface-* keys, so the class emitted nothing.
  • Removed it rather than recolouring it: the -space-x-1.5 overlap reads fine with no edge, and the stack now carries no surface colour to mismatch TeamsPanel.vue's hover:bg-surface-gray-1 row or dark surfaces.
  • Member count drops to text-sm, the members column widens to minmax(0,1.4fr), and pl-3 on the shared COLUMNS grid indents header and rows together so the team logo isn't flush to the panel edge.
  • Props, max-slicing, the "N members" label and aria-hidden are unchanged; yarn lint, typecheck and fmt:check pass.

Closes #431

image

claude and others added 2 commits September 7, 2026 21:44
The avatar stack in UserGroup drew a `ring-2 ring-surface-white` on each
Avatar to fake separation across the negative overlap. The colour is
hardcoded, so it read as an odd border on the hover-tinted team rows and
on dark surfaces. Replace the overlap and ring with a plain gap so the
avatars use frappe-ui's own colours only.

frappe-ui 1.0.0-beta.55 ships no AvatarGroup component, so the stack
stays hand-rolled.

Closes #431

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016kQ1Dp7xRj9mVNuYGeVYB2
`UserGroup` drew `ring-2 ring-surface-white` on each `Avatar` to separate the
overlapping stack, but that utility never compiled: the frappe-ui Tailwind
plugin extends `ringColor` with only `outline` and `outline-alpha`, and its
colour palette has no `surface-*` keys. The avatars overlapped with no gap at
all.

Keep the overlap and point the ring at the CSS variables instead, tracking the
row's hover tint so the separation holds on both the resting and hovered row.
@harshtandiya harshtandiya changed the title fix(dashboard): drop the hardcoded ring from the member avatar stack fix(dashboard): make the member avatar ring a real colour Sep 8, 2026
The ring only existed to separate the overlapping avatars, and the overlap
only existed because the ring supplied the edge. Drop both and space the
avatars with a plain `gap-1`, so the stack carries no surface colour of its
own and no longer depends on what the row behind it is tinted.
@harshtandiya harshtandiya changed the title fix(dashboard): make the member avatar ring a real colour fix(dashboard): drop the ring from the member avatar stack Sep 8, 2026
The ring drawn on each stacked avatar never rendered: the frappe-ui Tailwind
plugin extends `ringColor` with only `outline` and `outline-alpha`, and its
colour palette has no `surface-*` keys, so `ring-surface-white` compiled to
nothing. Remove it rather than pick a new colour — the overlap reads fine
without an edge, and the stack then carries no surface colour to mismatch the
row's hover tint.

Shrink the member count to `text-sm`, widen the members column and indent the
grid so the team logo no longer sits flush against the panel edge.
@harshtandiya harshtandiya changed the title fix(dashboard): drop the ring from the member avatar stack fix(dashboard): drop the ring and give the teams row more room Sep 8, 2026
@harshtandiya
harshtandiya marked this pull request as ready for review September 8, 2026 10:01
@greptile-apps

greptile-apps Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR refines the teams dashboard layout by removing ineffective avatar ring classes, reducing the member-count text size, widening the members column, and consistently indenting the shared header-and-row grid.

  • Preserves existing UserGroup data slicing, labels, and accessibility behavior.
  • Keeps team headers and rows aligned through their shared grid definition.
  • No new correctness, security, or repository-rule issues were identified.

Confidence Score: 5/5

The PR appears safe to merge because the styling changes preserve layout alignment and introduce no established functional or security regressions.

No blocking or actionable issues remain; the flexible grid tracks can shrink safely, headers and rows share the same alignment classes, and removing ring utilities that never compiled does not alter existing rendered behavior.

Important Files Changed

Filename Overview
dashboard/src/components/common/UserGroup.vue Removes non-compiling avatar ring utilities and adjusts the member-count label to secondary text sizing without changing behavior.
dashboard/src/components/dashboard/teams/TeamsPanel.vue Widens the members track and applies matching left padding to the shared header and team-row grid.

Reviews (2): Last reviewed commit: "Merge branch 'develop' into fix/431-avat..." | Re-trigger Greptile

@harshtandiya
harshtandiya merged commit 968225d into develop Sep 8, 2026
9 checks passed
@harshtandiya
harshtandiya deleted the fix/431-avatar-group branch September 8, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove odd border from avatar, stick to frappe ui avatar group and colors

2 participants