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

FO identifier and other changes #4202

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

kleintom
Copy link
Contributor

This is mostly changes to the Catalog Number panel (not currently in use) in New FO, but also:

  • require total to be > 0 when not absent (already required to be == 0 when absent).
  • show items in the Recents modal as clickable with pointer css

Happens for me when I try to save a local identifier (not permitted on FOs).

Note the catch on the Identifier endpoint *and* the catch on the Promise.all from the header bar are *both* required to avoid an RSOD (red screen of death).
Otherwise if you save an FO and then click New, store.reset.identifier still has all of the saved data except for id. (At one point I thought not resetting store.identifier.identifier.namespace_id in particular might be an issue, but I might just be confused.)
STR (there are multiple ways)
* save an FO with an identifier (or load a saved FO with an identifier)
* change only the namespace of the identifier, either by searching, selecting, or creating new
* click save
* reload the page
* see the namespace didn't save with the new value, it has the original value (because store.identifier.isUnsaved is never set to true in this case)

I gated save on presence of identifier and namespace in addition to isUnsaved since `isUnsaved` can go to true if the user enters only a namespace or only an identifier (or enters both and then removes one), I think the resulting exception might have been swallowed previously? Not sure.
Per discussion, leaving the store in-tree in case we decide to bring it back.
@jlpereira jlpereira merged commit de320d7 into SpeciesFileGroup:development Feb 13, 2025
5 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.

2 participants