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

Allocate VariantItems colors after annotations are loaded for each item #509

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

orlinmalkja
Copy link
Contributor

Bug: navigate to item 182b variants tab opened (?tido=m20_i0_p0.0-1.0-2.0-3.2) and switch to 183a (tido=m20_i1_p0.0-1.0-2.0-3.2 with example data → error with colors

Closes #508

@orlinmalkja orlinmalkja self-assigned this Oct 25, 2024
@orlinmalkja orlinmalkja force-pushed the bug-switching-items-colors-init branch from 345c7f4 to 0ca8023 Compare October 25, 2024 16:17
@orlinmalkja
Copy link
Contributor Author

@paulpestov please go ahead reviewing this PR

import { getItemColorBasedOnIndex } from '@/utils/color';


export function allocateWitnessColorInVariantItem() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since you are using many things from the annotation store + this function is only used once, you can move idrectory to the annotation store itself.

@orlinmalkja
Copy link
Contributor Author

I moved the allocateWitnessColorInVariantItem() function to annotation Store!

@orlinmalkja orlinmalkja merged commit 0b663b6 into main-variants Oct 28, 2024
2 checks passed
@orlinmalkja orlinmalkja deleted the bug-switching-items-colors-init branch October 28, 2024 12:54
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