Add "Show Usages" button to the form #6328
Draft
+167
−60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6327
This adds a new button to the right of the "Delete" button in the forms and dialogs within Specify, where the record is not embedded or dependent on the parent. This button displays all records that would prevent the deletion of the current record.
While this is not a one-to-one with the technical definition of "linked," it is critically important when updating existing records such as localities, collecting events, paleo contexts, and agents. This provides a safe mechanism for users to check what records are linked to the record being viewed.
If there are no linked records, the button will be read-only and upon hover the user will see "No linked records".

If there are any linked records, the button will show upon hover "Linked records"
Once clicked, the user will be presented with a similar dialog to the one shown when checking for standard delete blockers:
Admin View
adminLinkedRecords.mp4
Read-only view
If the user does not have delete permissions, you can still check for delete blockers to find references from linked records.
guestUserPermissions.mov
Checklist
self-explanatory (or properly documented)
Testing instructions
TBD