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:

  • bioItems stores all author statement names.
  • missingItems holds statements with no value.
  • addStatementsBtn triggers display of the addInfoForm and populates the dropdown.
  • populateStatementsDropdown() builds the <select> options dynamically.
  • displayAppropriateForm() decides which input field to show based on the selected statement.
  • postBtn submits the new information; cancelBtn returns 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
Edited by Miiswom

Merge request reports

Loading