Skip to content

Comments

DP-44225 Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation#3231

Draft
dstorozhuk wants to merge 23 commits intodevelopfrom
feature/DP-44225-Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation
Draft

DP-44225 Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation#3231
dstorozhuk wants to merge 23 commits intodevelopfrom
feature/DP-44225-Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation

Conversation

@dstorozhuk
Copy link
Collaborator

Description:
Explain the technical implementation of the work done.

Jira: (Skip unless you are MA staff)
DP-****

To Test:

  • Add steps to test this feature

Peer Review Checklist

@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 9, 2026 01:46 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 13, 2026 04:30 Destroyed
…widget and storage configuration

Introduced `field_accessibility_status` to the `Document` media entity with a custom `list_long_label` field type and widget for detailed accessibility designations. Updated form and view displays to support the new field and adjusted configurations accordingly.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
…moval

Added JavaScript behavior to reset the `Self-Reported Accessibility Status` field to `_none` when a file is removed. Updated widget implementation and libraries configuration accordingly.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@dstorozhuk dstorozhuk force-pushed the feature/DP-44225-Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation branch from 8443791 to 0e08c52 Compare January 15, 2026 17:12
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 15, 2026 17:12 Destroyed
…_self_rpt` and update related configurations

Replaced `field_accessibility_status` with `field_accessibility_self_rpt` across media entity configurations, forms, view displays, and field types. Adjusted allowed HTML tags and improved widget labels for accessibility status designation.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@dstorozhuk dstorozhuk force-pushed the feature/DP-44225-Add-field-to-Document-media-entity-for-authors-to-select-accessibility-state-designation branch from 0e08c52 to 7d80cc3 Compare January 15, 2026 17:14
Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
…enaming

Revised JavaScript to replace `field_accessibility_status` with `field_accessibility_self_rpt` for consistency with renamed field.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 15, 2026 17:22 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 20, 2026 04:29 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 20, 2026 22:23 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 22, 2026 21:47 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 23, 2026 22:27 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat January 27, 2026 04:28 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 3, 2026 04:27 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 6, 2026 14:26 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 6, 2026 14:51 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 10, 2026 04:27 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 12, 2026 20:08 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation

* develop:
  DP-44947: Disable jQuery modules on prod (#3256)
  DP-41803: A11Y datatable uses duplicate table tag (#3243)
  changelog update and remove old changelog files
  DP-44710-Heading-level-skipped-accessibility-error-on-promo-pages-with-video (#3247)
- Set field_accessibility_self_rpt to required: true in config
- Fix widget to safely handle _none option (use isset instead of array_shift)
- Set default_value to NULL when field is required (no empty option)
- Simplify JS reset to just uncheck all radios (no _none to select)

The TBD option was rendered via getEmptyLabel() which only shows when
the field is not required. Making it required eliminates the empty choice.
Existing documents with no value will need authors to select a status
when resaving.
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 17, 2026 04:30 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation

* develop:
  DP-44176  Change-the-MySQL-version-in-CircleCI-in-ddev-to-match-the-db-version-in-on-Acquia (#3227)
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 17, 2026 15:28 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation

* develop:
  DP-44722: For collection pages, include the org search in the top search bar (#3260)
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 17, 2026 19:29 Destroyed
Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
…et logic

- Set `field_accessibility_self_rpt` to `required: false` in configuration.
- Updated JS to hide and reset the `_none` (TBD) option on file changes.
- Improved reset behavior to handle file uploads, removals, and AJAX updates effectively.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 18, 2026 02:26 Destroyed
dstorozhuk and others added 2 commits February 17, 2026 20:36
- Inject an aria-live region for screen readers to announce resets.
- Update JavaScript to notify users when the field is reset to an empty state.
- Enhance accessibility and usability for screen reader users.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 18, 2026 17:41 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 18, 2026 17:49 Destroyed
- Extend `noneSelector` to handle multiple naming patterns for `_none` options.
- Ensure compatibility for accessibility status reset in Document media entities.

Signed-off-by: Dmytro Storozhuk <dima@itech4web.com>
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 19, 2026 01:20 Destroyed
@arthurbaghdas arthurbaghdas temporarily deployed to Tugboat February 19, 2026 15:10 Destroyed
…dia-entity-for-authors-to-select-accessibility-state-designation
@joeg8612
Copy link
Contributor

Moved to draft since communication plan will be needed prior to release. Ok to code review but hold merge.

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.

3 participants