-
Notifications
You must be signed in to change notification settings - Fork 6
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
Merging updates on angular 18 #299
Conversation
shb0527
commented
Jul 15, 2024
- Remembering registry & collection
- Display ID showing errors if no input text
For the collections, you need to remember all the collections in the list, so you can back out of the collection selection. For example, if you select the iGEM collection, followed by the categories collection, then select a specific category. Then, when you import a component next, the collections menu needs to include all the collections selected into, so you can back out later. |
Also, for the displayId, I can clear it. Without tab to the next line, and it clears the displayId with no warning. |
It will also throw an error if the user goes from the synbiohub server to the empty option value in the Server dropdown. |
@cjmyers I changed the code to remember the history of the collection list so the user can see the list in the dropdown. changed file is here -> 243255c |
I fixed this error too. |
The collection list seems to include all collections ever selected rather than just the latest ones. To see this issue, select the iGEM collection, then select categories, then go back to iGEM collection and import a component. Then select another component and look at the list of collections. Should only have Root and iGEM Collection. Similarly, if you go back to the Root collection and select the Cello collection and select a component from there. It will still have both the iGEM and Cello collection next time you import a component. |
As for the displayId, I'm able to clear displayIds. However, you do get a warning on the upper right part of the screen, which is good. Not sure if this can be improved more at this point. |
Perhaps check if the user enters an empty input and just reject it? |
@cjmyers I think now I finally understood what has to be done, and it seems to work properly. changed code is here -> 5eb46b3 |
Oh it shows an error line, but it still allows the empty input. |
Oh I was thinking of another option to just prohibit the user to change the text. So making the displayID to be fixed as it is randomly generated, and if it is fixed, the red warning sign would not be shown on the upper right of the screen. |
No, users need to be able to change the displayId, just not to an empty or invalid string (i.e., must be alphanumeric or underscore and not starting with a number). |
Has your update to the collection memory been checked in? It is still not working for me. If you have a list of collections in the menu, and you go to an earlier item in the list, it should remove the later items in the list. |
I just added some code and it seems to work now. >> 09d8eb3 |
Currently it is not going into the selected collection when you open the import window again. Also, I can still erase a display id completely, would be nice to just revert to previous value if someone tries to clear it. |
Now empty input is not allowed as well. |
This works now. Merging. |