Skip to content

🎨 Palette: Add ARIA label to external link button in OAuth providers card - #212

Open
MillionthOdin16 wants to merge 1 commit into
mainfrom
palette-aria-label-oauth-14424625612830443826
Open

MillionthOdin16 wants to merge 1 commit into
mainfrom
palette-aria-label-oauth-14424625612830443826

Conversation

@MillionthOdin16

@MillionthOdin16 MillionthOdin16 commented Aug 3, 2026 •

Copy link
Copy Markdown
Owner

💡 What: Added an aria-label attribute to the external documentation link icon button inside the OAuthProvidersCard component.
🎯 Why: Icon-only buttons without accessible names cannot be interpreted by screen readers.
📸 Before/After: Before: <Button ghost size="icon"> After: <Button ghost size="icon" aria-label={\Open ${p.name} documentation`}>`
♿ Accessibility: Provides a clear, descriptive name for screen reader users when interacting with external documentation links.


PR created automatically by Jules for task 14424625612830443826 started by @MillionthOdin16

Summary by CodeRabbit

  • Accessibility Improvements
    • Added an accessible label to OAuth provider documentation buttons, clearly identifying which provider’s documentation will open.

Added an `aria-label` attribute to the external documentation link icon button inside the OAuthProvidersCard component to provide an accessible name for screen readers.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI review requested due to automatic review settings August 3, 2026 19:09
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The OAuth provider documentation button now includes a provider-specific aria-label.

Changes

OAuth accessibility

Layer / File(s) Summary
Provider documentation button label
web/src/components/OAuthProvidersCard.tsx
The documentation button now identifies the OAuth provider with an aria-label.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: copilot, austinpickett

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the added ARIA label for the external documentation button in the OAuth providers card.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette-aria-label-oauth-14424625612830443826

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@web/src/components/OAuthProvidersCard.tsx`:
- Line 225: Update the Button usage in OAuthProvidersCard so it uses asChild and
wraps the documentation anchor, moving the existing aria-label onto the <a>
element to name the navigation control and avoid rendering a separate
interactive button.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 22fa1394-c852-45f2-bc89-f381b7bbdfe3

📥 Commits

Reviewing files that changed from the base of the PR and between 87bc710 and e699a52.

📒 Files selected for processing (1)
  • web/src/components/OAuthProvidersCard.tsx

title={`Open ${p.name} docs`}
>
<Button ghost size="icon">
<Button ghost size="icon" aria-label={`Open ${p.name} documentation`}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Verify Button rendering and supported anchor composition APIs.
rg -n -C 6 'function Button|const Button|forwardRef|asChild' .

Repository: MillionthOdin16/hermes-agent

Length of output: 50385


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate the UI Button implementation and the modified component import/use site.
fd -a 'button\.(tsx|ts|jsx|js)$' . | sed 's#^\./##' | head -50
rg -n "from \"`@nous-research/ui`|`@nous-research/ui/ui`|import .*Button|ExternalLink" web/src/components/OAuthProvidersCard.tsx -C 8

Repository: MillionthOdin16/hermes-agent

Length of output: 2620


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Locate the `@nous-research/ui` Button package files and inspect the implementation/type definitions.
fd -a 'button\.(tsx|ts|jsx|js)$|button.*\.d\.ts$' . | rg '(`@nous`|packages|ui|dist|node_modules|lib)' | head -100
rg -n 'export .*Button|function Button|asChild|Slot|React\.forwardRef' . -g '!**node_modules/**' -g '!**dist/**' | head -120

Repository: MillionthOdin16/hermes-agent

Length of output: 10504


🌐 Web query:

nous-research/ui Button asChild Slot.Root documentation

💡 Result:

The @nous-research/ui package provides a design system used in Nous Research projects such as the Hermes Agent [1][2]. Documentation for these components is available via their Storybook-based design system documentation [3]. The asChild and Slot.Root patterns referenced in your query are not unique to @nous-research/ui; they are standard utility patterns derived from Radix UI Primitives [4][5]. In React UI development, these are used to create polymorphic components that can delegate their behavior and styles to a child element without creating unnecessary DOM nodes [4][6]. When a component like Button is implemented with an asChild prop, it typically uses Slot.Root from Radix UI to merge its props and behavior onto the user-provided child [4][7]: function Button({ asChild,...props }) { const Comp = asChild? Slot.Root: "button"; return <Comp {...props} />; } By setting asChild to true, the Button component renders the child element instead of the default button tag, allowing you to pass down functionality (like click handlers or styles) to custom elements like an anchor tag or a different component [4][5]. If you are looking for specific documentation regarding the API of the @nous-research/ui library, it is recommended to check their internal Storybook instance [3], as the library is primarily used to support internal projects like the Hermes Agent web interface [1][8].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the desktop UI Button implementation, since it exports the same package component shape.
cat -n apps/desktop/src/components/ui/button.tsx

Repository: MillionthOdin16/hermes-agent

Length of output: 5481


Move the link label onto the <a>.

At Line 225, Button does not use asChild, so it renders a separate interactive button and applies aria-label to the wrong control. Use <Button asChild ...> wrapping the anchor, and apply aria-label to the <a> so it names the navigation.

🤖 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 `@web/src/components/OAuthProvidersCard.tsx` at line 225, Update the Button
usage in OAuthProvidersCard so it uses asChild and wraps the documentation
anchor, moving the existing aria-label onto the <a> element to name the
navigation control and avoid rendering a separate interactive button.

This branch has not been deployed

No deployments
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.

2 participants