Skip to content

Conversation

jenny-s51
Copy link
Member

@jenny-s51 jenny-s51 commented Sep 29, 2025

Description

Fixed issue with sidebar on logout noted in opendatahub-io/mod-arch-library#33 (comment)

Also applies some changes needed for #1669 towards opendatahub-io/mod-arch-library#39.

Before:
sidebar

After:
Screenshot 2025-09-29 at 3 45 51 PM

Fixed height of grouped toolbar search input fields and elements for better consistency:

Before:
486112357-af831fde-601d-4ff8-b038-40f7ebc539d7

After:
Screenshot 2025-10-01 at 4 18 04 PM

Fixed label alignment and added autoResize to textArea fields to align with MUI styling for description fields:

Before:
Screenshot 2025-10-02 at 9 12 17 AM

After:
Screenshot 2025-10-02 at 1 21 54 PM

How Has This Been Tested?

To test:

This PR needs to be tested with the latest changes to MUI-theme.scss in opendatahub-io/mod-arch-library#39 for correct UI visuals. Pull down this PR first to get the correct state of the stylesheet.

Testing Instructions

Prerequisites: This PR requires the updated MUI-theme.scss from opendatahub-io/mod-arch-library#39. Pull that PR first.

Required Local Configuration Changes:

To prevent React type conflicts when referencing the local mod-arch libraries, you may need to make the following changes:

  1. clients/ui/frontend/config/webpack.dev.js - Comment out the ForkTsCheckerWebpackPlugin:

    plugins: [
    -  new ForkTsCheckerWebpackPlugin(),
    +  // new ForkTsCheckerWebpackPlugin(), // Disabled due to React types conflicts with shared libraries
       new ReactRefreshWebpackPlugin({ overlay: false }),
    ],
  2. clients/ui/frontend/config/webpack.common.js - Use ts-loader consistently:

    - env === 'development'
    -   ? { loader: 'swc-loader' }
    -   : {
    -       loader: 'ts-loader',
    -       options: {
    -         transpileOnly: true,
    -       },
    -     },
    + {
    +   loader: 'ts-loader',
    +   options: {
    +     transpileOnly: true,
    +   },
    + },

Setup:

  1. Update library paths in clients/ui/frontend/package.json:

    "mod-arch-core": "file:/<your-path>/mod-arch-library/mod-arch-core",
    "mod-arch-kubeflow": "file:/<your-path>/mod-arch-library/mod-arch-kubeflow",
    "mod-arch-shared": "file:/<your-path>/mod-arch-library/mod-arch-shared"
  2. Build the library:

    cd <your-path>/mod-arch-library
    npm run build
  3. Install and run:

    cd clients/ui/frontend
    npm install
    cd ..
    make dev-start
  4. Verify:

    • Build should complete without type errors
    • Open http://localhost:9000 and confirm the MUI theme is applied correctly across all pages

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

@jenny-s51 jenny-s51 marked this pull request as draft September 29, 2025 21:02
Copy link

[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 alexcreasy for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@github-actions github-actions bot added Area/UI and removed size/L labels Sep 29, 2025
@jenny-s51 jenny-s51 changed the title fix: UI issues identified in shared library upgrade [WIP] fix: UI issues identified in shared library upgrade Sep 29, 2025
@jenny-s51 jenny-s51 changed the title [WIP] fix: UI issues identified in shared library upgrade fix: UI issues identified in shared library upgrade Sep 30, 2025
@jenny-s51 jenny-s51 force-pushed the fixUI branch 2 times, most recently from d28e7d1 to 82239c8 Compare October 1, 2025 19:44
@jenny-s51 jenny-s51 marked this pull request as ready for review October 1, 2025 20:32
@jenny-s51 jenny-s51 force-pushed the fixUI branch 2 times, most recently from 7ac8986 to cef8d8b Compare October 8, 2025 17:56
@jenny-s51
Copy link
Member Author

Hi @lucferbux , can you please take a look at this one as well? Thank you 🙏

@lucferbux
Copy link
Contributor

@jenny-s51 I'm gonna trigger a new release with opendatahub-io/mod-arch-library#39 can you then update the library to point at that version in this PR?

Copy link
Member Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

@jenny-s51 I'm gonna trigger a new release with opendatahub-io/mod-arch-library#39 can you then update the library to point at that version in this PR?

Absolutely - thank you @lucferbux!

@lucferbux
Copy link
Contributor

lucferbux commented Oct 9, 2025

Ok, so you can update the libraries to the 1.1.3 release:

@jenny-s51 jenny-s51 force-pushed the fixUI branch 2 times, most recently from 6efd3e0 to 229ac63 Compare October 9, 2025 18:04
Copy link
Member Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

Thank you @lucferbux - I've updated the versions.

There was a bug introduced with https://github.com/opendatahub-io/mod-arch-library/pull/37/files (out of scope from the style changes) which is causing the test errors in the GH actions workflow below, so we'll have to resolve this issue first and then cut a new release of the shared library first so we don't break the tests in MR.

@jenny-s51
Copy link
Member Author

Opened the issue here: opendatahub-io/mod-arch-library#43

Signed-off-by: Jenny <[email protected]>

fix: bump to latest shared library versions with style fixes

fix tests

Signed-off-by: Jenny <[email protected]>

fix tests

revert test files to latest on main

Signed-off-by: Jenny <[email protected]>

fix: bump to 1.1.4 shared library version to fix Cypress tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants