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

Share dialogue simplified to readonly inputs #1318

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

crhallberg
Copy link
Contributor

Resolves #1308.

{8A14626D-C542-4B61-92A9-51CAF0A3255A}

  • There seems to be many elements included in the ShareDialogue type definition. I think we can reduce this list significantly. (old definition, new definition)

Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
universalviewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 9:53pm

Copy link
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See below for one small comment. I haven't read through all of the code changes yet, but a few general thoughts and observations:

1.) Are you confident that it's safe to fully rip out all of the things being ripped out here? For example, are we sure there are no other use of tabs that might rely on the tab styles being removed?

2.) Is it possible that we can/should separate some of the general cleanup work from the functional changes so that the history is easier to read/understand? If all of these things are truly entangled, I can live with it... but this is currently a very large change, which makes it a bit hard to conceptualize.

3.) There is a keyboard problem that impacts both this PR and the current dev branch. If I click into a text box and try to navigate with the keyboard (for example, using Home and End keys to see the beginning or end of the URLs), the left panel takes over control, and my keypresses navigate the thumbnails instead of moving the cursor, even though focus is on the text box. Can we do anything about this? It seems less than ideal. Obviously, it's a separate issue, and should be addressed as such. Depending on what the solution is, though, I wonder if it makes more sense to address as a fix to dev first, or to try to fix after we do this refactor. Let me know if I should file a separate issue to track it!

4.) I wonder if we need a better label than "Share" for the top box. I think "Share" should be the overall dialog box name, but the top link is something like "Link to this Page".

5.) Should we have copy to clipboard buttons for any/all of these? (Maybe that's a separate issue, but it seems like it would be helpful, especially in light of other keyboard weirdness).

6.) This PR seems to lose the drag-and-drop IIIF logo. I think there may be reason to keep that; it just likely needs a better label, and possibly a config setting to enable/disable.

@@ -406,6 +406,7 @@ export default class IIIFContentHandler
} catch (e) {
this.hideSpinner();
alert("Unable to load manifest");
console.error(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this belong here? Seems like a reasonable thing to do, but seems out of scope for this PR.

@erinburnand
Copy link

Its much clearer where the manifest link is and how to copy it.
I agree that the drag and drop IIIF icon is a nice feature (for those that know it exists, i didn't!) and would be good to keep. Could we possibly have the 2 tabs at the top for share and embed that we do in the current version so we can keep it without the box being too cluttered? This might solve the label for the share box issue that Demian highlighted above?

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.

put manifest url in a (readonly) input box
3 participants