-
Notifications
You must be signed in to change notification settings - Fork 5
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
added a Library Data Link Explorer link in the API toolbar #11454
Conversation
Size Change: +106 B (+0.01%) Total Size: 1 MB
ℹ️ View Unchanged
|
<button type="button" style={{ padding: '10px' }}> | ||
<>🏷️</> | ||
</button> | ||
</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a label for the button (could be hidden text or aria-label?), also gives us maintainers more context around it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, we'd ideally only show the link on works pages (maybe a condition that checks the URL route OR some magic done in /pages/works.tsx
, unsure how atm but maybe an idea).
Another thing that'd be great would be to prefill the link for it to be https://main.d33vyuqnhij7au.amplifyapp.com?id=[workId]
, which you could then use to prefill the Input field index using URLSearchParams to get the value. If we did that, as we said, we'd really have to add a label over the input field to clarify what goes there as it currently uses the placeholder to do that, and that wouldn't be displayed (replaced by the work ID). Doing this would remove a step for our colleagues and would probably be appreciated!
Great suggestions, @rcantin-w - the changes have been made to the application, so I'm moving the toolbar link to match the expectations above! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, so much added value for the whole thing, this ties it up nicely with a bow 😍
What does this change?
Adds a subtle link to the new Library Data Link Explorer onto the API toolbar. Avoids colleagues from saving the temporary Amplify link as a bookmark.
How to test
Ensure you have the toolbar enabled on your local. Click the link, it should open in a new tab (to allow colleagues to go back and forth to the catalogue with ease, rather than refreshing their search).
The application opened should work as normal.
How can we measure success?
Is the 🏷️ link too subtle? Does it match the style of the toolbar to avoid clutter?
Have we considered potential risks?
Prevents overuse of the application, keeps the toolbar tidy, even when in mini mode.