Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zustand UI state for TF selection and related bug fixes #24

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

chrtannus
Copy link
Member

Refs issues #5, #6, #12

  • Adds a UI State Store (by Zustand) to manage the TF selection state.
  • Fixes removing nodes/edges after a TF is unselected. Also changes a TF node's regulatoryFunction to 'regulated' if it's been unselected (in the data table) but can't be removed because it's also a target of another TF. This also allows the node that became a 'regulated' one in the updated network to be visualized properly.
  • Updates the network style by clearing the cache of all memoize functions after nodes are added/removed.

Exports the sequence logos from all motifs in a selected Cluster -- #15
… node's `regulatoryFunction` to 'regulated' if it's been unselected but can't be removed because it's also a target of another node -- #6
@chrtannus chrtannus requested a review from mikekucera November 18, 2024 16:29
@chrtannus chrtannus self-assigned this Nov 18, 2024
Copy link
Contributor

@mikekucera mikekucera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@chrtannus chrtannus merged commit 3a93f7b into dev Nov 19, 2024
@chrtannus chrtannus deleted the feature/zustand-ui-state branch November 19, 2024 18:09
@mikekucera
Copy link
Contributor

With this merged I'll take a look at saving the table selection in mongo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants