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

Enhancement: Sane, Smooth UX for Document-Based Workflows #206

Merged
merged 69 commits into from
Sep 12, 2024

Conversation

JSv4
Copy link
Owner

@JSv4 JSv4 commented Sep 3, 2024

<DocumentAnnotator/> is THE component for all document-related interactions - including, ironically, ones not involving a corpus, so that should probably be renamed too (DONE!). It's now much easier to navigate document analyses, extracts and annotations, all from within a single view.

Couple items that still need cleanup

  • When viewing extract results inside the modal, clicking on the button to jump to sources does not work (not broken, just not wired up)
  • Add in document action to launch modal to start an extract or analysis. This would solve for [FEATURE] - Single Document Analysis Workflow #152 and let you launch an analysis or extract of any document from the document view.
  • Add in guardrails on backend to prevent running of same extract and same analysis over and over again. Should just re-run existing data (and properly warn the user).

Fixes #152, #207, #209, #210

JSv4 added 30 commits August 26, 2024 22:00
… to support new workflows needed in AnnotatorRenderer and modals to effectively navigate all the new data available within a Corpus.
…itional custom resolvers (to simplify frontend requests) and a number of new GUI tweaks. <DocumentAnnotator/> is a massive bit of code duplication and is also forcing me to keep a massive (and not great) query in queries.ts. Once this new component is working nicely, I want to pull all of that out.
…low for better tracking of resulting data. Added GUI indicators for action-created data on the frontend.
… cross-view display of extract modal - i.e. from clicking Extract in the corpus view.
…ased microservice analyzers AND new task-based analyzer.
… Removed <DocumentAnnotator/> which was *really* similar to CorpusDocumentAnnotator, the primary difference being that it was a kludgy workaround to displaying annotations that weren't linked to a corpus - like from an extract, which was the first time I had annotations that weren't linked to a corpus. Also cleaned up some of the global state handling and created a pretty detailed explanation of the component-level state handler in the annotator, which should, ideally, be refactored to use Apollo state store. This should wait until *after* we have test coverage for the component as I don't want to do that much refactoring without more guardrails.
…g. annotations vs viewing analyses vs merely viewing the document.
…scaling of the annotations by setting a global scale level and then using useEffect hooks on pages to react to that and dynamically change pdfPageInfo scale property.
…the canvas in its parent container. This meant the absolute positioning of the annotation from left side was drifting slowly. There is probably a way to fix this, but not worth the effort ATM. Looks acceptable. Works fine.
…now-intended use for ALL document-related viewing, editing and data entry.
…ANNOTATOR_DATA_FOR_DOCUMENT_IN_CORPUS query.
JSv4 and others added 26 commits September 7, 2024 08:28
…ts, annotations and related data. Also updated query to get doc actions and extracts so it works with documents and extracts that were made public.
…e ways sharing is being handled, because it's NOT great), we need to loosen up restrictions preventing creating multiple copies of the same AnnotationLabel to allow this *so long as they're for different users*
…ounding boxes with labels set toshow only on hover. This is quite readable, especially with changes to the selection overlay heights.
…ed. This is dangerous, but it's a superuser power and can be messaged appropriately. More fine-grained sharing will be a big focus of 3.0.0
@JSv4 JSv4 merged commit 1046ae5 into main Sep 12, 2024
5 checks passed
@JSv4 JSv4 deleted the JSv4/new-annotator-workflows branch September 12, 2024 05:59
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.

[FEATURE] - Single Document Analysis Workflow
1 participant