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

Feature/sidebar refactor #75

Merged
merged 33 commits into from
Jan 30, 2024
Merged

Feature/sidebar refactor #75

merged 33 commits into from
Jan 30, 2024

Conversation

timothyrusso
Copy link
Contributor

@timothyrusso timothyrusso commented Jan 4, 2024

Description

Refactor some UI problems related to the Sidebar after removing Daisy UI.

  • Performance improvements
  • Add the component to Storybook (Important: the component do not have any props, so there are no docs in storybook, only the user interaction to open and close the Sidebar)
  • Fix some layout problems

Important:
Buttons must be fixed, I will wait for the merge of the PR that refactor the Button component so I will use it to fix the buttons in the Sidebar.

Issue link

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Jan 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
chingu-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:52am

@Dan-Y-Ko
Copy link
Contributor

Dan-Y-Ko commented Jan 9, 2024

The button refactor pr has been merged so you can update this pr as needed now.

Copy link
Contributor

@Dan-Y-Ko Dan-Y-Ko left a comment

Choose a reason for hiding this comment

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

There's some changes needed for the buttons. Right now the button component isn't really being used and just ton of classes being added to it. I think we need a separate button component for those, like icon button in the figma, but it doesn't seem like it's in a completed state so I need to talk to Eury about this.

Copy link
Contributor

@Dan-Y-Ko Dan-Y-Ko left a comment

Choose a reason for hiding this comment

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

Almost there!

Just some minor changes.

  1. Can you remove the cursor pointer on the myvoyage hover effect if the user is not part of active voyage or logged in. So basically when the lock appears.
  2. in the button component, in the neutral variant, change the focus to active.
  3. The tooltip became weird in your updated branch. EDIT: you can just move the tooltip to wrap around the button and not the element.icon. That fixes it.

@timothyrusso
Copy link
Contributor Author

Almost there!

Just some minor changes.

  1. Can you remove the cursor pointer on the myvoyage hover effect if the user is not part of active voyage or logged in. So basically when the lock appears.
  2. in the button component, in the neutral variant, change the focus to active.
  3. The tooltip became weird in your updated branch. EDIT: you can just move the tooltip to wrap around the button and not the element.icon. That fixes it.

@Dan-Y-Ko Done!

Copy link
Contributor

@Dan-Y-Ko Dan-Y-Ko left a comment

Choose a reason for hiding this comment

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

The logic to check for current voyage needs to change (again). Can just check for existence of an active status in the voyage status.

I tested with some method, you can use something else if it's better.

@timothyrusso timothyrusso requested a review from Dan-Y-Ko January 30, 2024 06:07
Copy link
Contributor

@Dan-Y-Ko Dan-Y-Ko left a comment

Choose a reason for hiding this comment

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

lgtm :)

@Dan-Y-Ko Dan-Y-Ko merged commit c23ddc5 into dev Jan 30, 2024
3 checks passed
@Dan-Y-Ko Dan-Y-Ko deleted the feature/sidebar-refactor branch January 30, 2024 21:30
Dan-Y-Ko added a commit that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants