Skip to content

[UI] Collapsed menu and mobile friendly #1197

@alexanmtz

Description

@alexanmtz

✏️ Summary

Make a collapse version of our main side menu and support for mobile

📋 Description

We have two important FE improvements in our main side menu for logged users.

We should have a collapsed version to improve usability and space for the user navigate through the platform.

This menu needs to adapt on mobile views for better navigation on Mobile.

For our user menu on the home page, we already have a mobile version implemented here:
https://github.com/worknenjoy/gitpay/blob/master/frontend/src/components/design-library/organisms/layouts/topbar/topbar.tsx

🔍 Steps to Reproduce

  1. Follow the steps to run the project locally on README: https://github.com/worknenjoy/gitpay?tab=readme-ov-file#readme
  2. Create a user
  3. Got to the dashboard and see the menu

You can see the menu on Story Book: http://localhost:6006/?path=/story/design-library-molecules-menus-sidemenu--default

To run Storybook, run npm run storybook in our frontend folder

✅ Expected Result

  • The side menu should be collapsible. Please take a look at the mockup.
  • The mobile menu should be as in the mockup.

🖼️ Screenshot / Mockup

Menu Mobile

Image Image

Use the same collapse trigger (arrow button) as here
Image

And here's the mockup of how the collapsed version will look like:
Image

This is only the mockup, the icons should follow the same one we have today, and you need just to collapse and remove the text on collapsed version

Except the logo on the top, which on collapse it will collapse for a reduced version of the logo, to this one here:

Image

This logo was extracted from our documentation: https://docs.gitpay.me/en/

🧰 UI Stack Used

React, Material-UI, Storybook

💰 Is there a bounty for this issue?

No

💵 Bounty Amount (if any)

No response

📜 Bounty Details (if applicable)

There's no Bounty for this issue.

This issue is part of the Only Dust Hackathon: https://onlydust.notion.site/May-28th-Open-Source-Hackathon-1f244b682a80801890e5fda15b779746

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions