Skip to content

Navigation menu and input page out of sync #2099

@cpaulgilman

Description

@cpaulgilman

Describe the bug

In some situations, the navigation menu and input page can be out of sync. In the three following situations, the navigation menu selection and visible input page should be correct:

  1. The show_page() function is called from a macro.
  2. The show_page() function is called from an LK script.
  3. Create a new case, the first item in the navigation menu should be selected.

Note that for hybrid system configurations, this requires expanding the first item in the navigation menu.

To Reproduce

  1. Build SAMOS from https://github.com/NREL/SAM/tree/2099-nav-menu-sync-issue.
  2. Start SAM and create a PVWatts/No Financial case. Note Location and Resource is not selected in navigation menu.
  3. Run the temporary "show page test" macro (to be deleted before merging into Patch or Develop). Note that Macros page remains visible.
  4. Create an LK script with show_page('Grid Limits'). Verify that input page is visible.
  5. Create a hybrid system case. Note that navigation menu item is not selected.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions