Skip to content

Conversation

@zhuje
Copy link
Contributor

@zhuje zhuje commented Dec 4, 2025

JIRA

https://issues.redhat.com/browse/OU-1004

Screenshot 2025-12-03 at 9 00 33 PM
ou1004-list-perses-dashboards.mov

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 4, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 4, 2025

@zhuje: This pull request references OU-1004 which is a valid jira issue.

In response to this:

JIRA

https://issues.redhat.com/browse/OU-1004

Screenshot 2025-12-03 at 9 00 33 PM
ou1004-list-perses-dashboards.mov

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zhuje

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

The pull request process is described here

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 4, 2025
@zhuje zhuje force-pushed the ou1004-list-dashboards-pr branch 2 times, most recently from 36881db to be8bd6c Compare December 5, 2025 23:31
Comment on lines 23 to 24
const url = `${getDashboardsListUrl(perspective)}?${params.toString()}`;
navigate(url);
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be the same in both cases, it can be extracted out of the if block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, included in the latest push.

);
};

export default MonitoringDashboardListPage;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export default MonitoringDashboardListPage;
export default DashboardListPage;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, included in latest push.

},
});

const MonitoringDashboardListPage: FC = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const MonitoringDashboardListPage: FC = () => {
const DashboardListPage: FC = () => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, included in latest push.

}

const DASHBOARD_COLUMNS = [
{ label: 'Dashboard', key: 'name' as keyof DashboardRow, index: 0 },
Copy link
Contributor

Choose a reason for hiding this comment

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

All these values need translations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, included in latest push.

[filteredData, sortBy, direction],
);

const pageRows: DataViewTr[] = useMemo(
Copy link
Contributor

Choose a reason for hiding this comment

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

Something to add into a new Jira ticket. But this pages results should be done in the backend, if a cluster has thousands of dashboards we don't want to fetch them all and slice them in the frontend, if the Perses API does not support yet pagination we should add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OU-1125 [perses] Create endpoint to support pagination

I created it as a child of OU-437 the EPIC for customizable dashboards. Let me know if I need to change this in JIRA:
image

pagination={<PaginationTool />}
filters={
<DataViewFilters onChange={(_e, values) => onSetFilters(values)} values={filters}>
<DataViewTextFilter filterId="name" title="Name" placeholder="Filter by name" />
Copy link
Contributor

Choose a reason for hiding this comment

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

translations are missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, included in the latest push.

@zhuje zhuje force-pushed the ou1004-list-dashboards-pr branch from 27f7498 to 2648502 Compare December 8, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants