Skip to content

fix(dashboard): show pending invites as a badge in the members table - #444

Merged
harshtandiya merged 3 commits into
developfrom
fix/435-invited-badge
Sep 8, 2026
Merged

fix(dashboard): show pending invites as a badge in the members table#444
harshtandiya merged 3 commits into
developfrom
fix/435-invited-badge

Conversation

@harshtandiya

@harshtandiya harshtandiya commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator
  • Pending invites showed (Invited) crammed next to the role, with an empty email cell beside it.
  • Badge (theme="amber" variant="subtle") now fills that empty middle column; role cell shows just the role.
  • Grid template, row merging, dropdown actions and transitions untouched. Closes "Invited" does not look good #435.
  • yarn lint, yarn typecheck, yarn fmt:check pass; no e2e spec references "Invited".
image

claude and others added 2 commits September 7, 2026 21:43
The invited marker sat as parenthesised text next to the role while the
email column stayed empty for those rows, leaving a hole in the table and
a crowded role cell. Move the marker into the empty middle column and
render it with frappe-ui's Badge.

Closes #435

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016kQ1Dp7xRj9mVNuYGeVYB2
Amber matches the pending state already used for scheduled communications.
@harshtandiya
harshtandiya marked this pull request as ready for review September 8, 2026 06:58
@greptile-apps

greptile-apps Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR moves the pending-invitation indicator from the role column into the otherwise-empty email column and renders it as a frappe-ui Badge.

  • Keeps invitation email addresses visible in the name column.
  • Leaves member emails and role values unchanged.
  • The selected Badge variant differs from the gray, subtle treatment described for the change.

Confidence Score: 4/5

The change appears safe to merge, with a non-blocking visual mismatch between the implemented invitation badge and the treatment described by the PR.

Member and invitation row behavior remains intact, but pending invitations render with an outline Badge rather than the intended subtle style.

Files Needing Attention: dashboard/src/components/dashboard/teams/TeamMembersTable.vue

Important Files Changed

Filename Overview
dashboard/src/components/dashboard/teams/TeamMembersTable.vue Repositions the invitation status into a Badge in the email column, but uses an outline treatment instead of the described subtle badge.

Fix all with Greploop Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
### Issue 1
dashboard/src/components/dashboard/teams/TeamMembersTable.vue:177
**Invitation badge style mismatch**

The PR specifies a gray, subtle invitation badge, but this uses the outline variant and omits the explicit gray theme. Pending-invite rows therefore render with a bordered treatment instead of the intended subtle badge.

```suggestion
					<Badge v-else size="sm" theme="gray" variant="subtle" :label="__('Invited')" />
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "Merge branch 'develop' into fix/435-invi..." | Re-trigger Greptile

carries its pending state instead. -->
<span class="flex min-w-0 items-center">
<span v-if="row.member" class="truncate text-base text-ink-gray-6">{{ row.email }}</span>
<Badge v-else size="sm" variant="outline" :label="__('Invited')" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Invitation badge style mismatch

The PR specifies a gray, subtle invitation badge, but this uses the outline variant and omits the explicit gray theme. Pending-invite rows therefore render with a bordered treatment instead of the intended subtle badge.

Suggested change
<Badge v-else size="sm" variant="outline" :label="__('Invited')" />
<Badge v-else size="sm" theme="gray" variant="subtle" :label="__('Invited')" />
Prompt To Fix With AI
This is a comment left during a code review.
Path: dashboard/src/components/dashboard/teams/TeamMembersTable.vue
Line: 177

Comment:
**Invitation badge style mismatch**

The PR specifies a gray, subtle invitation badge, but this uses the outline variant and omits the explicit gray theme. Pending-invite rows therefore render with a bordered treatment instead of the intended subtle badge.

```suggestion
					<Badge v-else size="sm" theme="gray" variant="subtle" :label="__('Invited')" />
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Codex

@harshtandiya
harshtandiya merged commit 66575b8 into develop Sep 8, 2026
11 of 13 checks passed
@harshtandiya
harshtandiya deleted the fix/435-invited-badge branch September 8, 2026 10:02
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.

"Invited" does not look good

2 participants