Improved members empty state#28454
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (6)
WalkthroughThis PR refactors the Members page to introduce conditional visibility of header controls and action menus. It adds optional Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/posts/src/views/members/components/members-help-cards.tsx (1)
13-18: 💤 Low valueConsider indicating external link behavior for accessibility.
The cards open in a new tab but lack visual or semantic indication. While the security attributes are correct, adding an aria-label or visual indicator (e.g., external link icon) would improve accessibility and set clear user expectations.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/posts/src/views/members/components/members-help-cards.tsx` around lines 13 - 18, The anchor in members-help-cards.tsx (the <a> with className "group/card ..." and attributes href, target="_blank", rel="noopener noreferrer") opens a new tab but lacks accessibility cues; update this element to include an accessible label and/or indicator by adding an aria-label (e.g., append "opens in a new tab" to the visible title or use aria-label on the <a>), and add a visible indicator (an external-link icon or visually-hidden text) inside the link so screen readers and sighted users know it opens externally; ensure any added icon is non-focusable and the aria-label matches the visible cue.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@apps/posts/src/views/members/components/members-help-cards.tsx`:
- Around line 13-18: The anchor in members-help-cards.tsx (the <a> with
className "group/card ..." and attributes href, target="_blank", rel="noopener
noreferrer") opens a new tab but lacks accessibility cues; update this element
to include an accessible label and/or indicator by adding an aria-label (e.g.,
append "opens in a new tab" to the visible title or use aria-label on the <a>),
and add a visible indicator (an external-link icon or visually-hidden text)
inside the link so screen readers and sighted users know it opens externally;
ensure any added icon is non-focusable and the aria-label matches the visible
cue.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 58eb996c-21e7-4846-a6cd-4a06560034f9
📒 Files selected for processing (7)
apps/posts/src/views/members/components/members-actions.tsxapps/posts/src/views/members/components/members-empty-state.tsxapps/posts/src/views/members/components/members-help-cards.tsxapps/posts/src/views/members/members.tsxapps/posts/test/unit/views/members/members-actions.test.tsxe2e/helpers/pages/admin/members/members-list-page.tse2e/tests/admin/members/import.test.ts
🚧 Files skipped from review as they are similar to previous changes (4)
- apps/posts/test/unit/views/members/members-actions.test.tsx
- e2e/helpers/pages/admin/members/members-list-page.ts
- apps/posts/src/views/members/members.tsx
- apps/posts/src/views/members/components/members-actions.tsx
Closes https://linear.app/ghost/issue/DES-1406/members-empty-screen-looks-pretty-bad Our empty state for members didn't look great after the port from Ember. This cleans it up.
da7e859 to
dff7bf3
Compare
Closes https://linear.app/ghost/issue/DES-1406/members-empty-screen-looks-pretty-bad
Our empty state for members didn't look great after the port from Ember. This cleans it up.