Skip to content

Add new "replay" button  #155

@mike-thompson-day8

Description

@mike-thompson-day8

Add a new "replay" button which performs two steps:

  1. resets app-db to the value it had prior to the current event, and then, once all consequent computation is complete (subscriptions have run and views have updated - dominoes 4,5,6),
  2. re-dispatches the current event.

So it provides for an action replay of the "current event". The one to which the user has navigated.

Notes:

  • Any trace arising out of Step 1 is ignored (any change to app-db will trigger subscriptions and views)
  • All trace arising out of Step 2 forms a normal epoch which is appended to the end of the existing epoch list, AND the user is transported to view this new epoch. So they immediately see the results for this new epoch.
  • Button should be visible/available in all tabs.

Will be useful:

  1. in the Timings tab to see if the numbers are stable across multiple runs.
  2. whenever we hotload (via figwheel) a fixed/altered event handler, subscription handler or view, and we want to test if our change works. Figwheel+replayis lovely, simple debugging move.

image

Open Questions:

  1. should this button be visible if the user has "paused" collection of events? Probably not.
  2. should it be muted as depicted? Or strong blue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions