Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
114 stars 70 forks source link

Preview Navigation Does Not Update Context Panel in "Lage" Page #12359

Open olavflar opened 8 months ago

olavflar commented 8 months ago

Description of the bug

When navigating between pages in the preview mode on the "Lage" page, the context panel on the left, which provides an overview and editing options for the current page, does not automatically update. This issue prevents users from seamlessly editing the newly navigated-to page, as the context panel remains static and does not reflect the change in preview.

Steps To Reproduce

Go to dev.altinn.studio and search for samtykkeskjema - this app has navbar

Skjermbilde 2024-02-21 kl  11 57 57

After changing to the first page the context to the left stays the same as the last page visited to

Skjermbilde 2024-02-21 kl  11 58 44

Expected Behavior: The left context panel should update to reflect the currently previewed page, allowing immediate editing without needing to manually select the page again in the panel.

Actual Behavior: The left context panel remains unchanged, showing the previous page's context, despite navigating to a new page in the preview.

Possible Solution: Implement an event listener for page changes in the preview that triggers an update in the context panel to match the currently displayed page.

Additional Information

No response

nkylstad commented 7 months ago

Re-classifying this as a feature request, as this is how it has been implemented. I think we should investigate if this is actually what the users expect/want before making this change. @Annikenkbrathen

lassopicasso commented 7 months ago

Is this related to this thread? https://altinn.slack.com/archives/C02EJ9HKQA3/p1710866465123129?thread_ts=1710855906.174989&cid=C02EJ9HKQA3