Skip to content

Overview range buttons push a new navigation history entry per click #5

Closed

Description

@ChtJT

In the overview screen, each click on Today / Last 7 days / Last 30 days / All time calls client.openScreen, which the host implements as router.push. Every click adds a new entry to the navigation history, so switching ranges a few times leaves a stack of ledger-overview entries to go back through.

The plugin SDK (checked 0.11.1 through 0.11.4) exposes no replace or setParams, so updating the range param through navigation always pushes.

One approach that works within the SDK: keep the range in component state seeded from params.range (params remain the entry point for deep links and the sidebar item) and use a static screen title, since a param-derived title goes stale after a local switch. Happy to share a patch if useful

Activity

  1. stv1024 commented on Oct 23, 2026

    @stv1024
    Owner

    Fixed by #4, which keeps the range in local state instead of pushing a navigation entry per click. It will ship in the next release. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions