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

Improvements to Left Side Menu #125

Merged
merged 3 commits into from
May 27, 2022
Merged

Improvements to Left Side Menu #125

merged 3 commits into from
May 27, 2022

Conversation

meisekimiu
Copy link
Member

This PR updates the left side menu to be more consistent with the mobile app's design. One thing that wasn't really specified in the zeplin designs was what this should look like in mobile view. The layout of the mobile view is kept intact, just including the new icon and color changes.

Resolves PER-8667.

@meisekimiu
Copy link
Member Author

Unit tests are randomly breaking? It works on my machine:
2022-05-25-123143
Going to try rerunning until they work I guess.

This commit updates the left side menu to be more consistent with the
mobile app's design. These changes are mainly in the CSS and HTML,
though there is one variable added to the component's state to manage
the new expandable Apps menu.

PER-8667: Improvements to left side menu
@meisekimiu meisekimiu force-pushed the left-menu-redesign branch from de5dc56 to 71c72da Compare May 26, 2022 19:32
Copy link
Contributor

@jasonaowen jasonaowen left a comment

Choose a reason for hiding this comment

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

This is looking good! Quick screenshot for posterity:

Screen Shot 2022-05-26 at 14 21 40

@jasonaowen
Copy link
Contributor

While reviewing this PR, I learned a bit more about how the old icons work, and opened #127 and #128!

This commit stores the state of the different left menu submenus in
SessionStorage so that they persist throughout page reloads and
refreshes. Especially with the redesign, it feels odd that they close
when moving between pages.

This also includes a quick change to not show the dropdown toggle if
there are no Apps subfolders.

PER-8667: Improvements to left side menu
Within the template HTML file, new changes made the lines a bit too
long. Within the Typescript file, there were a whole host of things my
IDE were complaining about so I went and fixed all of those while I was
cleaning up the HTML and implementing some of the other fixes.

PER-8667: Improvements to left side menu
@meisekimiu meisekimiu force-pushed the left-menu-redesign branch from 0072fd4 to ffef6fd Compare May 27, 2022 17:31
@meisekimiu
Copy link
Member Author

I've addressed the things you've brought up, @jasonaowen, including the line length concerns (though we really should be using Prettier because I did this manually and I'm not sure I did it the "right" way; I would love to not have to even think about this in the future). I also cleaned up some of the other things my IDE was yelling at in the TypeScript file.

Copy link
Contributor

@jasonaowen jasonaowen left a comment

Choose a reason for hiding this comment

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

This is fantastic, thanks @meisekimiu! The formatting looks good, although yeah not sure if Prettier will disagree - +1 to setting all that up ASAP.

I was able to run this locally in both desktop and mobile views, and it looks and feels great!

@meisekimiu meisekimiu merged commit 6a74762 into main May 27, 2022
@meisekimiu meisekimiu deleted the left-menu-redesign branch May 27, 2022 19:36
@meisekimiu meisekimiu mentioned this pull request May 27, 2022
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.

2 participants