Skip to content

Add frontend verification#3

Closed
cdr-chakotay wants to merge 5 commits into
henryk:mainfrom
cdr-chakotay:Add-Frontend-Verification
Closed

Add frontend verification#3
cdr-chakotay wants to merge 5 commits into
henryk:mainfrom
cdr-chakotay:Add-Frontend-Verification

Conversation

@cdr-chakotay

Copy link
Copy Markdown
Contributor

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:

  • Enabled the "Verify" tab in index.vue, allowing users to access timestamp verification functionality.
  • Refactored the verify tab's input handling to use a dedicated verifyInput object, added support for file and text input, hash function selection, and required timestamp input.

Verification logic and validation:

  • Implemented the doVerify method, which computes the hash, validates the timestamp input using the new validateTsInput utility, and verifies the timestamp, updating the snackbar with appropriate feedback.
  • Added a comprehensive timestamp validation utility in utils/validate.js, checking for correct format, required fields, base64 encoding, valid UUIDs, and proof structure.

Localization:

  • Added localized messages for verification success, failure, and errors in both German and English.

- 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.
@cdr-chakotay

Copy link
Copy Markdown
Contributor Author

@henryk
There is no URL Verification so far, as I did not find an endpoint for that. This can be extended in future by doing some magic in the handler method, as well as the verification tooling.

@cdr-chakotay

Copy link
Copy Markdown
Contributor Author

Closing this, will be part of #4

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.

1 participant