cancervariants / fusion-curation

MIT License
2 stars 0 forks source link

Chromosome field looks editable but isn't #316

Closed jsstevenson closed 4 days ago

jsstevenson commented 3 weeks ago

Describe the bug

The chromosome field on places like the transcript segment element builder isn't editable.

Steps to reproduce

try to make a TX segment element with gene + genomic coords

Expected behavior

~It should probably be editable~

Current behavior

it cant be edited

Possible reason(s)

No response

Suggested fix

For now, it's fine that we don't support GRCh37/alternate genomic accessions. I do think we should reduce the degree to which this "looks" editable but isn't, either by rendering it as text or a badge or something, or simply removing it from the interface entirely (since it's not information the user needs to edit)

In the future if we do want to support, there are a few options off the top of my head

Branch, commit, and/or version

staging branch

Screenshots

No response

Environment details

n/a

Additional details

No response

Contribution

Yes, I can create a PR for this fix.

katiestahl commented 3 weeks ago

in #314 I made this editable again, but I think we should reintroduce some input validation and/or make the field noneditable for when it's autopopulated or something?

korikuzma commented 4 days ago

@katiestahl fixed this and chromosome can now be edited.