massenergize / frontend-admin

Frontend for the Admin Portal. This web interface is used by Community Admins (cadmins) to administer community-specific portals and by Super Admins to administer the entire MassEnergize web platform.
4 stars 3 forks source link

Feat: #1243 Add drag & drop functionality to nav items & replace right items with dropdown #1245

Open frimpongopoku opened 1 month ago

frimpongopoku commented 1 month ago

Summary / Highlights

Both the dragging, and the dropdown feature are hidden under feature flags. By default, communities will have the old arrows(move up and and down) on the left, with the add, edit and remove buttons on the right side of the nav items.

How to enable dragging for a community

Create a feature flag with name Draggable Navigation Items, and add your community.

How to enable dropdown feature for a community

Create a feature flag with name Dropdown View for Nav Items, and ad your community

DEMO

https://github.com/user-attachments/assets/d5ac3306-e886-40b0-85c8-7b74281d655e

Details (Give details about what this PR accomplishes, include any screenshots etc.)

Testing Steps (Provide details on how your changes can be tested)

Requirements

Transparency (Project board)

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

Other information: Any otherthing we need to know