EnAccess / micropowermanager

Management Tool for Decentralized Utilities.
https://micropowermanager.com/
MIT License
0 stars 0 forks source link

Route and Sidebar Management Clean-up #122

Open dmohns opened 1 week ago

dmohns commented 1 week ago

Scope:

Currently, route and sidebar management involves a complex interaction between the backend and frontend components:

  1. The backend writes data into the menu_items and sub_menu_items tables.
  2. The frontend applies implicit and hidden filtering via ExportedRoutes and transforms this data for the sidebar. This process is detailed in the codebase here: SideBar.vue.

This approach was adopted in the legacy MPMv1 to facilitate external backend plugins in registering their UI components easily. However, the current version of MPM does not support external plugins, as all provider packages are integrated directly into the application.

The existing method now introduces unnecessary complexity and should be simplified to enhance maintainability.

Definition of done: