Phases 3+4+5: Proposal Review UI, Action Handlers, Viewer Integration#12
Phases 3+4+5: Proposal Review UI, Action Handlers, Viewer Integration#12cubap wants to merge 3 commits into
Conversation
, #7, #8) - Created ProposalReview custom element for reviewing connector proposals - Created ActionRegistry with built-in handlers (create-iiif-manifest, annotate-text, annotate-page, annotate-time, view-iiif, view-pdf, view-jsonld, link-existing-thing) - Created ViewerRegistry with built-in viewers (iiif-viewer, pdf-viewer, video-viewer, audio-viewer, annotation-composer, jsonld-viewer, html-viewer) - Integrated into index.html as modal dialog - Wired into handleAddMember flow to show proposals before adding to collection - Updated connectors to suggest appropriate actions (view-iiif, view-pdf, annotate-page) - Exports from src/ui/index.ts Closes #6, #7, #8
Review: Phases 3+4+5 - Proposal Review UI, Action Handlers, Viewer IntegrationThis is a solid implementation that brings together the connector layer with the UI. Here's my assessment: What's Working Well
Areas for Consideration
Minor Notes
OverallThis is ready to merge. The video viewer URL issue is minor (it will still open, just may not render correctly in Mirador), and the rest are enhancement suggestions rather than blockers. The architecture is clean and extensible for future phases. Recommendation: Approve with minor suggestions for follow-up. |
Phases 3+4+5: Proposal Review UI, Action Handlers, Viewer Integration (#6, #7, #8)
This PR implements three phases of the connector layer:
What's New
ProposalReview Custom Element (
src/ui/proposal-review.ts)ActionRegistry (
src/ui/action-registry.ts)create-iiif-manifest- Create IIIF Manifest from imageannotate-text- Annotate HTML text regionsannotate-page- Annotate PDF pagesannotate-time- Annotate video/audio timestampsview-iiif- View IIIF content in Miradorview-pdf- View PDF in browserview-jsonld- View JSON-LD in playgroundlink-existing-thing- Link URL to existing ThingViewerRegistry (
src/ui/viewer-registry.ts)iiif-viewer- Opens IIIF manifest in Miradorpdf-viewer- Opens PDF in browservideo-viewer- Opens video in playeraudio-viewer- Opens audio in playerannotation-composer- Opens annotation tooljsonld-viewer- Opens JSON-LD in playgroundhtml-viewer- Opens HTML in browserIntegration
index.htmlhandleAddMember()to use connector resolver and show proposal reviewview-iiifcreate-iiif-manifest,view-iiifview-pdf,annotate-pageUser Flow
Testing
index.htmlin a browserhttps://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json)Related Issues
Next Steps