Add frontend verification#3
Closed
cdr-chakotay wants to merge 5 commits into
Closed
Conversation
- Enabled the Verification card - Added a dummy handler function - Added a hash choice
- Add ToDos for further implementation.
- Replace `createInput` with `verifyInput` throughout the verification logic. - Implement and integrate `validateTsInput` utility for timestamp validation to enhance error handling. - Update `doVerify` to handle timestamp validation, hash calculation, and verification outcomes. - Add a lazy reporting system with alerts to the view, in case verification takes place
- Introduce `verifySnackbar` to improve UI feedback during verification. - Add localized snackbar messages for success, failure, and errors. - Remove `alert` calls and integrate snackbar notifications in `doVerify`. - Update i18n strings with new verification messages.
Contributor
Author
|
@henryk |
Contributor
Author
|
Closing this, will be part of #4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a complete implementation for verifying timestamps in the UI. It enables the previously disabled "Verify" tab, introduces user input validation for timestamp objects, and provides user feedback via snackbars. The changes focus on making timestamp verification robust and user-friendly, including error handling and extended verification options.
Verification workflow and UI improvements:
index.vue, allowing users to access timestamp verification functionality.verifyInputobject, added support for file and text input, hash function selection, and required timestamp input.Verification logic and validation:
doVerifymethod, which computes the hash, validates the timestamp input using the newvalidateTsInpututility, and verifies the timestamp, updating the snackbar with appropriate feedback.utils/validate.js, checking for correct format, required fields, base64 encoding, valid UUIDs, and proof structure.Localization: