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

#75 Connect the colour picker to the context neuron data #56

Merged
merged 4 commits into from
Oct 10, 2024

Conversation

Salam-Dalloul
Copy link

Screenshot 2024-10-02 at 10 28 57 PM

Copy link
Member

@aranega aranega left a comment

Choose a reason for hiding this comment

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

All looks good in general :) I would just advise for a small modification to have the component more decoupled

…uron list items to put the correct default value
Copy link
Member

@aranega aranega left a comment

Choose a reason for hiding this comment

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

Thank a lot for the changes 🙏 @Salam-Dalloul all looks super good!

id: neuron,
label: neuron,
checked: Object.values(visibility).every((e) => e === undefined || e.visibility === Visibility.Visible),
color: visibility[ViewerType.ThreeD]?.color || visibility[ViewerType.EM]?.color || "#000000",
Copy link
Member

Choose a reason for hiding this comment

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

note: I think this is fine for now because we don't (yet) allow different colors in different viewers, but when/if we do, we need to get a consensus on what color should be used for the broader Neuron representation (the color that shows in the sidebar)

Copy link
Member

Choose a reason for hiding this comment

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

@afonsobspinto yes, I thought about that also, but I think it's fine at the moment, we will probably need to reflect a little bit more if we can have different color by viewer as it will also impact the synchronizer probably, or the way we retrieve the information.

@ddelpiano ddelpiano merged commit f8cf616 into develop Oct 10, 2024
8 checks passed
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.

4 participants