Uploaded image for project: 'OpenMRS 3.x Frontend'
  1. OpenMRS 3.x Frontend
  2. O3-1099

Refactor left nav to not use `attach` and `detach`

    XMLWordPrintable

Details

    • Enhancement
    • Status: Done
    • Must
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Medium
    • 2022 Week 10

    Description

      Right now the left nav has this crazy stacked slot-extension-slot-extensions structure, where there is a main slot "nav menu slot" that contains an extension "patient-chart-nav-items" that is really just the slot "patient-chart-dashboard-slot" which then contains the links.

      Instead, the left nav should have a simple API, much like the workspaces, in @openmrs/esm-patient-common-lib, with something like a "setLeftNav(name)" function. The left nav component should be driven by a hook that gives it the current left nav name; it then just renders an extension slot called "Left nav ${name}". It should be powered by a Unistore store.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                zacbutko Zac Butko
                bistenes Brandon Istenes
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: