Skip to content
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

General style and component refactor #96

Merged
merged 11 commits into from
Feb 4, 2025
Merged

Conversation

raylrui
Copy link
Contributor

@raylrui raylrui commented Dec 19, 2024

general style upgrade

  1. add general dark mode support for current page
  2. add theme context for switch theme (can be extended for more appearance control)
image
  1. refactor dialog and some page structure
  2. add filter header for sequence run
  3. fix security warning by update the package deps

also close: #103, #78

preview at DEV: https://orcaui.dev.umccr.org/

@raylrui raylrui self-assigned this Dec 19, 2024
@raylrui raylrui added refactor feature New feature or request labels Dec 19, 2024
Copy link
Member

@williamputraintan williamputraintan left a comment

Choose a reason for hiding this comment

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

Like the new icon

src/api/types/file.d.ts Outdated Show resolved Hide resolved
'text-white bg-yellow-500 hover:bg-yellow-600 focus:ring-yellow-500 dark:bg-yellow-400 dark:hover:bg-yellow-500' +
' shadow-md hover:shadow-lg',
gray:
'text-gray-700 bg-gray-100 hover:bg-gray-200 focus:ring-gray-500 dark:bg-gray-700 dark:text-gray-100' +
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove the bg-gray here? I think leaving it blank does look cleaner?

Screenshot 2025-01-30 at 16 41 48

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I add "bg-transparent" here, but other 'gray' button, I keep it as it should be "gray" theme. Or we can use 'light' button instead. new look like this
image

<button
type='button'
onClick={() => setIsOpen(false)}
className='rounded-lg bg-gray-50 p-1.5 text-gray-400 ring-1 ring-gray-200 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-500/50 focus:ring-offset-2 dark:bg-gray-700 dark:ring-gray-600 dark:hover:bg-gray-600 dark:hover:text-gray-300'
Copy link
Member

Choose a reason for hiding this comment

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

Thinking of always showing instead only "on hover" so this doesn't go unoticable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, remove "group on-hover"...

@@ -26,60 +29,109 @@ const ModuleNavbar: FC<ModuleNavbarProps> = ({ navigation, footer }) => {
return (
<div
className={classNames(
'relative flex grow-0 flex-col gap-y-5 overflow-y-auto',
isOpen ? 'bg-magpie-light-25 min-w-40' : 'bg-gray-50 min-w-14'
'group relative flex h-full flex-col border-r border-gray-200 bg-white transition-all duration-300 dark:border-gray-700 dark:bg-gray-800',
Copy link
Member

Choose a reason for hiding this comment

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

I am wondering if we should make this a non-white background so it distinct between the navBar and the main page itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, add 'bg-gray-50' light gray for this now
image

@williamputraintan
Copy link
Member

Like the theme change and some new icons on the navbar!

@williamputraintan
Copy link
Member

Also, I am thinking of having the big copy button back here. Most probably people would not want to read the token anyway.

Screenshot 2025-01-31 at 17 01 21

Minor title layout/centre icon in the dialog.

@raylrui
Copy link
Contributor Author

raylrui commented Feb 4, 2025

Also, I am thinking of having the big copy button back here. Most probably people would not want to read the token anyway.

Screenshot 2025-01-31 at 17 01 21

Minor title layout/centre icon in the dialog.

sure, style upgrade in dev
image

@raylrui
Copy link
Contributor Author

raylrui commented Feb 4, 2025

Like the theme change and some new icons on the navbar!

for the new close navbar
image

@williamputraintan
Copy link
Member

Updates look good!

Like the theme change and some new icons on the navbar!

for the new close navbar image

I suppose we could try this. At a glance, it feels like random letters are thrown on the navbar but perhaps this is more useful than a repetitive workflow icon.

@raylrui raylrui merged commit 374ea05 into main Feb 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: add filters to sequence run view
2 participants