Skip to content

fix: replace hardcoded dashboard table search placeholder#278

Open
pggdev wants to merge 1 commit into
volcano-sh:mainfrom
pggdev:fix/searchbar-placeholder
Open

fix: replace hardcoded dashboard table search placeholder#278
pggdev wants to merge 1 commit into
volcano-sh:mainfrom
pggdev:fix/searchbar-placeholder

Conversation

@pggdev
Copy link
Copy Markdown

@pggdev pggdev commented May 24, 2026

Summary

#277

  • Added a searchPlaceholder prop to the shared dashboard DataTable component.
  • Replaced the hardcoded Filter jobs... placeholder with table-specific placeholder text.
  • Updated Jobs, Pods, and Queues tables so the search input matches the resource being filtered.

ScreenShots

Before

image image

After

image image

Testing

  • npm run build
  • npm run lint
  • npx tsc -p apps/web/tsconfig.json --noEmit

Signed-off-by: pggdev <princegupta.ns153@gmail.com>
@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign william-wang for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a customizable searchPlaceholder prop to the DataTable component, allowing for more specific filter text across different dashboard views. The Jobs, Pods, and Queues management components were updated to utilize this new prop. Feedback was provided to remove inconsistent spacing before the ellipses in the placeholder strings to ensure UI consistency with the default component styling.

data={jobs || []}
onRowClick={handleJobClick}
disablePagination={true}
searchPlaceholder="Filter Jobs ..."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The placeholder text contains an extra space before the ellipsis. For consistency with the default value defined in the DataTable component (Filter...) and standard UI typography, consider removing the space.

Suggested change
searchPlaceholder="Filter Jobs ..."
searchPlaceholder="Filter Jobs..."

data={pods || []}
onRowClick={handlePodClick}
disablePagination={true}
searchPlaceholder="Filter Pods ..."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The placeholder text has an extra space before the ellipsis. Removing this space will ensure the UI remains consistent with the default placeholder style used in the shared DataTable component.

Suggested change
searchPlaceholder="Filter Pods ..."
searchPlaceholder="Filter Pods..."

data={queues || []}
onRowClick={handleQueueClick}
disablePagination={true}
searchPlaceholder="Filter Queues ..."
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The placeholder text contains an extra space before the ellipsis. It is recommended to remove it to maintain a consistent look and feel across all dashboard tables.

Suggested change
searchPlaceholder="Filter Queues ..."
searchPlaceholder="Filter Queues..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants