BioAnalyticResource / ePlant

ePlant is a gene-centric visualization tool for plant genomes
https://bioanalyticresource.github.io/ePlant/
GNU General Public License v2.0
7 stars 12 forks source link

Routing #97

Closed alexwaeseperlman closed 5 months ago

alexwaeseperlman commented 9 months ago

Sorry I took so long. This PR removes all the flex layout logic and stores enough state to create shareable links the url. Currently the urls are pretty long since they include all the data about loaded genes. For example:

http://localhost:5173/?gene=%22AT1G01010%22&view=%22publication-viewer%22&genes=%5B%7B%22id%22%3A%22AT1G01010%22%2C%22species%22%3A%22Arabidopsis%22%2C%22annotation%22%3A%22NAC+domain+containing+protein+1%22%2C%22aliases%22%3A%5B%22ANAC001%22%2C%22NAC001%22%2C%22NTL10%22%5D%7D%5D

I don't think this is an issue, since we can include a url shortener for cases where people want to share things. Another option would be to include a list of gene ids instead of the data itself, and download the rest of the data on page load.