Skip to content

feat: limit badges to 2 with hover/click popover in UserListTable - #8

Open
tomerqodo wants to merge 2 commits into
codex_full_base_feat_limit_badges_to_2_with_hover_click_popover_in_userlisttable_pr8from
codex_full_head_feat_limit_badges_to_2_with_hover_click_popover_in_userlisttable_pr8
Open

feat: limit badges to 2 with hover/click popover in UserListTable#8
tomerqodo wants to merge 2 commits into
codex_full_base_feat_limit_badges_to_2_with_hover_click_popover_in_userlisttable_pr8from
codex_full_head_feat_limit_badges_to_2_with_hover_click_popover_in_userlisttable_pr8

Conversation

@tomerqodo

Copy link
Copy Markdown

Benchmark PR from agentic-review-benchmarks#8

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b8cbd51ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +92 to +96
{hiddenItems.map((item, index) => (
<span
key={item.label}
className="text-default cursor-pointer text-sm hover:text-emphasis">
{item.label}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire hidden badge clicks to item.onClick

Hidden items in LimitedBadges are rendered as plain <span> elements without using item.onClick, even though BadgeItem supports it. In UserListTable, each team badge supplies an onClick to filter by that team; when a user belongs to more than two teams, the extra teams move into the popover and become non-clickable. This is a functional regression for any caller expecting click behavior on hidden items. Consider invoking item.onClick (and using a button/Badge) for hidden entries so filtering still works when there are more than maxVisible items.

Useful? React with 👍 / 👎.

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.

1 participant