Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: add "document upload" functionality (#24)
* wip * wip: tying it all together * redesign: smart-camera-web redesign shelved for separate PR * redesign: restore legacy smart-camera-web to working code * wip * tests: add `do-not-upload` attribute to all existing tests * redesign: change from "Nunito Sans" to "Nunito" font * redesign: switch between camera and entry screens for document capture * refactor: remove todo.txt file * fix: fix broken tests * redesign: add upload document functionality * add styling for document upload, finalize design * tests: add page for tests / local development * refactor: remove new smart-camera-web component * refactor: remove commented code in `handleError` * refactor: remove redundant async from `SmartFileUpload.getData`, promise is returned * redesign: handle file reader errors in `SmartFileUpload.getData` * refactor: add comment explaining why we split dataURL strings * redesign: switch action button sequence * redesign: change max file size to 10mb * redesign: add image resolution check for uploaded documents * redesign: add `document-capture-mode` attribute, defaults to `both` * fix: add event listeners conditionally * redesign: observe `document-capture-mode` attributes for changes * fix: attach event listeners after rewriting dom * refactor: extract `setUpEventListeners` into its own function * refactor: move event listener to `setUpEventListeners` function * fix(styles): conditionally apply classes when upload document-capture-mode is selected * fix: clear value when file input is clicked, enabling selection of same file * refactor: always show entry screens for document capture * tmp: disable test requirements * refactor: use getter for `captureBackOfID` * copy: change copy for document capture entry screens * redesign: fix conditional rendering * fix: run linter to minimize merge conflicts * enh: restart from main * fix: fix lint config, and run linter * version: bump version number to 1.0.0-beta.18 * enh: add `SmartFileUpload` class for processing uploads * redesign: switch from Nunito Sans to Nunito * redesign: move confirm actions to right, and review to left * config: bump version number * redesign: remove unnecessary variable declaration * refactor: remove redundant code, reorder, and rewrite * enh: add document upload functionality, without triggers * refactor: add entry screens for document capture, modify tests * Revert "tmp: disable test requirements" This reverts commit 8dfaf4cadc2cf2e16f2926e29d8d8aa39d225c23. * redesign: remove height restriction on reviewed document images * redesign: add `document-capture-mode` to observed-attributes * refactor: make `color-digital-blue` have highest specificity * fix: fix svg dimension error, remove max-height on preview * enh: add extra back / close buttons on the document capture entry screens * styles: use consistent styling in document entry screens * tests: add command to navigate through face capture screens * redesign: change image dimension error message copy * enh: add image dimension tip * tests: add document-upload tests * format: run linter * redesign: remove dimension restriction * redesign: use `document-capture-modes`, and change default to `camera` * styles: change entry-screen block-size to 45rem * refactor: use attributes and conditional rendering for back buttons * fix: reset `_rawImages` when restarting image capture for POL
- Loading branch information