Proof of concept for adding new statements
Fixes
Fixes microtask T406989
Type of PR
This PR is for a feature
Description
Create a button to add the ability for users to fill missing information directly from an author page.
If no information is missing, it will display a success message containing: ‘All details are filled.' instead.
Key feature logic:
-
bioItemsstores all author statement names. -
missingItemsholds statements with no value. -
addStatementsBtntriggers display of theaddInfoFormand populates the dropdown. -
populateStatementsDropdown()builds the<select>options dynamically. -
displayAppropriateForm()decides which input field to show based on the selected statement. -
postBtnsubmits the new information;cancelBtnreturns to the dropdown view.
Checklist
-
Reuse styling of the buttons to maintain design consistency -
Break down logic into modules (i.e. functions) as the implementation is quite complex
Screen recordings
| Author with no missing statements values | Author with missing statements values |
|---|---|
| no_missing_statements.mp4 | missing_statements.mp4 |