-
-
Notifications
You must be signed in to change notification settings - Fork 713
Support solo buttons in table row #1840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
WalkthroughThis change updates various UI components across the webapp. In the Table component, the import for ReactNode is modified to a type import, CSS classes in the TableCellMenu have been adjusted, and the logic for rendering hidden buttons has been simplified by removing an unnecessary popover. In the TaskRunsTable component, the wrapper for hidden buttons is replaced with a React fragment. Additionally, the LinkButton in the schedules route now includes a LeadingIcon (BookOpenIcon) and updated text for better clarity. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TableCellMenu
participant ButtonRenderer
User->>TableCellMenu: Initiates interaction
TableCellMenu->>ButtonRenderer: Checks for hidden buttons and popover content
alt Hidden buttons present
ButtonRenderer-->>TableCellMenu: Render hidden buttons wrapped in flex layout with conditional classes
else No hidden buttons
TableCellMenu-->>User: Render component without popover
end
sequenceDiagram
participant User
participant InfoPanel
participant LinkButton
User->>InfoPanel: Navigates to schedule page
InfoPanel->>LinkButton: Renders LinkButton with props: to, variant, LeadingIcon=BookOpenIcon, text="Schedules docs"
LinkButton-->>User: Displays enhanced link button
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Adds a new option for displaying a single button that shows on hover in a table cell.
Also removes an old fallback condition for making sure v2 tables still worked
Before:

After:

Summary by CodeRabbit
New Features
Style