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

Move switch and diff buttons #139

Closed

Conversation

ghengeveld
Copy link
Member

@ghengeveld ghengeveld commented Nov 1, 2023

Telescoping on #138

📦 Published PR as canary version: 0.0.117--canary.139.93bc623.0

✨ Test out this PR locally via:

npm install @chromaui/addon-visual-tests@0.0.117--canary.139.93bc623.0
# or 
yarn add @chromaui/addon-visual-tests@0.0.117--canary.139.93bc623.0

@weeksling
Copy link
Contributor

weeksling commented Nov 3, 2023

Not specifically PR feedback in need of change, but just some general design feedback.

I find this orientation quite disorienting. I think I like the toggle on the bottom, but it feels like there is a lot of content on the top bar now.
Screen Shot 2023-11-03 at 5 33 59 PM

That was without changes. With changes, it shifts around a bit because of the line break. Though I am really glad that it linebreaks because we can see the entire branch name. I wonder if the snapshot toggle could live on the bottom of the screen, above the browser and mode selectors, and then keep the top line for controls. @MichaelArestad @ghengeveld
After using it to review this pr, having the baseline toggle, diff control, and accept button the same line was super fast. So maybe ignore this feedback.
Screen Shot 2023-11-03 at 5 38 36 PM

Copy link
Contributor

@weeksling weeksling left a comment

Choose a reason for hiding this comment

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

I noticed a bug. I don't know if it's specific to this or the base pr, but if you toggle the diff image off, it switches back after a short pause. I don't know for certain, but I imagine this could be caused by polling since it always happens after a short delay, multiple times even.

Update: confirmed, it happens any time the polling refreshes

Screen.Recording.2023-11-03.at.5.36.57.PM.mov

@ghengeveld
Copy link
Member Author

@weeksling Thanks for the thoroughness. I fixed the diff toggle bug in the upstream PR.

As for the design, I'm working on some improvements in another ticket. The switch button is going to move to the right next to the diff toggle. The accept buttons are moving up above those diff controls.

I'm truncating (with ellipsis) the branch name. That's on just a single line though. Should we allow wrapping to a second line @MichaelArestad? That would be a bit more complicated (it's not a native CSS feature) but seems like a good idea.

@MichaelArestad
Copy link
Contributor

Should we allow wrapping to a second line

No. Let's keep it to a single line for now for simplicity in both design and implementation.

@ghengeveld ghengeveld changed the base branch from refactor-state-management to main November 13, 2023 12:36
@ghengeveld
Copy link
Member Author

Closing in favor of #148

@ghengeveld ghengeveld closed this Nov 16, 2023
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