Skip to content

Feature: sync DOM location with opendigitizer-ui settings #396

@wirew0rm

Description

@wirew0rm

Currently the wasm version of opendigitizer-ui uses the url and especially the fragment part to initialize the Settings struct at startup. This means that we have to reload the page even if only e.g. the active dashboard changed and also does not allow to copy the URL to share the currently shown dashboard.

This Issue suggests to synchronise the urlbar with the state of the UI, so the url changes whenever a different dashboard is selected and the ui updates whenever the user manually updates the URL. There is onhashchange to observe the url fragment changing which seems to be widely supported.

Subtasks:

  • expose javascripts APIs for observing uri changes and setting the uri to c++
  • as settings are only used in the initial setup, find out where the actual UI state is kept and how to bind it to the browser location.
  • optionally clean up the UI settings interface/decouple it from opendigitizer-service.
    • cli arguments vs environment variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions