Skip to content

Conversation

@zhuje
Copy link
Contributor

@zhuje zhuje commented Jan 15, 2026

OU-1177 DashboardListPage] Create Button
OU-1173 [DashboardPage / DashboardListPage] Reduce Vertical spacing page title + description
OU-1179 [DashboardListPage] Remove BreadCrumb

Screen.Recording.2026-01-15.at.6.11.50.PM.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 Jan 15, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 15, 2026

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

Details

In response to this:

OU-1177 DashboardListPage] Create Button
OU-1173 [DashboardPage / DashboardListPage] Reduce Vertical spacing page title + description
OU-1179 [DashboardListPage] Remove BreadCrumb

Screen.Recording.2026-01-15.at.6.11.50.PM.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 Jan 15, 2026

[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

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2026
@zhuje
Copy link
Contributor Author

zhuje commented Jan 16, 2026

cc: @jgbernalp


if (!selectedProject || !dashboardName.trim()) {
const errors: { [key: string]: string } = {};
if (!selectedProject) errors.project = 'Project is required';
Copy link
Contributor

Choose a reason for hiding this comment

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

all static texts should always have 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.

Adding translations in the latest push.

value={dashboardName}
onChange={handleSetDashboardName}
/>
{formErrors.dashboardName && (
Copy link
Contributor

Choose a reason for hiding this comment

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

We should we use the standard Patternfly alerts or guidelines on how to display errors below fields

Copy link
Contributor Author

@zhuje zhuje Jan 19, 2026

Choose a reason for hiding this comment

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

Used Patternfly component "TextInput" validation function instead of custom alerts.

return (
<>
<DocumentTitle>{t('Metrics dashboards')}</DocumentTitle>
<PageSection
Copy link
Contributor

Choose a reason for hiding this comment

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

it seems we are customizing this PageSection above as well. Do we need this component? what does it bring if we are customizing all the padding.

Copy link
Contributor Author

@zhuje zhuje Jan 19, 2026

Choose a reason for hiding this comment

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

Removed "PageSection" and created dashboard-page-padding.tsx.

>
<ModalHeader title="Create Dashboard" />
<ModalBody>
{formErrors.general && (
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, maybe we should use a standard Patterfly component to display errors

Copy link
Contributor Author

@zhuje zhuje Jan 19, 2026

Choose a reason for hiding this comment

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

Used Patternfly component "Alert" instead of custom alerts.

…ustom, remove <PageSection /> because we are overriding padding
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