numberscope / frontscope

Numberscope's front end and user interface: responsible for specifying sequences and defining and displaying visualizers
MIT License
7 stars 15 forks source link

Visualizers should call checkParameters when sequence changes #487

Closed gwhitney closed 1 week ago

gwhitney commented 2 weeks ago

Like the testing issues, the documentation issues are great for surfacing underlying problems. Responsive to #46, I am designing a "visualizer lifecycle diagram" (along the lines of the Vue component lifecycle diagram). That exercise has uncovered the following inconsistency:

Should we modify the update pathway on sequence change for a Visualizer to include calling checkParameters()? Or if not, how should the above inconsistency be resolved? I do not think the inconsistency should be allowed to remain.

katestange commented 2 weeks ago

Is there any reason not to modify the update pathway as you suggest?

gwhitney commented 2 weeks ago

I can't think of any reason other than it's yet another change and will have various repercussions we need to track down and likely fix. But in the long run, it definitely seems like a better scheme. So we could just go for it now while everything is in turmoil anyway ;-)

katestange commented 2 weeks ago

Sounds like updating the pathway makes sense then?

gwhitney commented 2 weeks ago

OK, renamed the issue accordingly.

gwhitney commented 1 week ago

Implemented in ui2 by #486. Closing.