Skip to content

UI: Business UI - Court Order File Upload #34624

Closed

Description

@deetz99

Figma Design

Need to fully rework the document upload to upload as the files are submitted instead of only the preview. Includes new design of editing the filing type with a select menu (court order vs supporting document).

We will begin by creating something specific to the Court Orders section before making it a global change.

Activity

  1. self-assigned this
    on Aug 19, 2026
  2. deetz99 commented on Aug 31, 2026

    @deetz99
    CollaboratorAuthor
  3. liz-govier commented on Sep 1, 2026

    @liz-govier
    Collaborator

    UXA/QA Checklist

    Court Order

    • 'Upload Court Order' opens the file picker.
    • Only one Court Order can be selected
    • Drag and drop is not available.
    • If a Court Order already exists, the file picker does not open and an error is displayed and announced.
    • A new doc can be uploaded after the existing Court Order is marked for deletion

    Supporting Documents

    • 'Upload Documents' opens the file picker.
    • One or multiple documents can be selected and uploaded.
    • Files can be dragged and dropped into the Supporting Documents area on desktop.
    • The drop area is highlighted during drag-over.

    Upload results and validation

    • Successful uploads display the thumbnail, filename, file size and success indicator.
    • A file larger than 50 MB is rejected with a clear error.
    • Accepted Files: PDF, JPG, PNG and GIF, 50 MB or less
    • Unsupported file types are rejected with a clear error.
    • The error clears when the document changes are successfully saved using Done.
    • The error clears when the user makes another upload attempt.

    Remove, delete and undo

    • Remove removes a newly uploaded document.
    • Delete marks a previously uploaded document for deletion, shows 'Deleted' badge and 'Undo' button
    • Can not undo deleted document if another document has been added to court order section

    Save and cancel

    • Done saves the document changes and updates the table.
    • Saved documents remain when the record is reopened.
    • Documents marked for deletion are removed after submission.
    • Cancel closes the form without saving the changes.

    Accessibility and responsive behaviour

    • All actions can be reached and operated using a keyboard.
    • Keyboard focus is clearly visible and follows a logical order.
    • Upload results and errors are announced to screen-reader users.
    • Errors use text and an icon and do not rely on colour alone.
    • Filename, Remove, Delete and Undo controls identify the related document.
    • Focus remains in a predictable location after an upload, error, removal or undo.
  4. liz-govier commented on Sep 1, 2026

    @liz-govier
    Collaborator

    @deetz99 This is ready for you

    UXA Findings

    • Text size

    The font should be 16 px, it's currently 14 px in TEST.
    Screenshot.png


    • Button Interaction

    When the upload button has focus, pressing Enter closes the form instead of activating the button. The space bar works as expected.

    Tab into button > then press enter key

    Private Zenhub Video


    • Supported File Types

    I created Letter-size files in PDF, JPG, GIF and PNG formats.

    Expected: All listed file types upload successfully.

    Actual: Only the PDF uploaded successfully. The JPG, GIF and PNG files could not be uploaded.
    Screenshot 2026-09-01 at 10.16.56 AM.png

    Files Used:
    8.5x11 files.zip


    • Progress Bar: Percentage missing

    In Test
    Screenshot 2026-09-01 at 9.44.33 AM.png

    Expected Result
    Screenshot 2026-09-01 at 9.58.07 AM.png

    Suggested Attributes
    role="progressbar"
    aria-valuenow="25"
    aria-valuemin="0"
    aria-valuemax="100"

    https://w3c.github.io/aria/#progressbar


    Thumbnail Display

    • The content in the thumbnail is getting cut off.

    Can we set the thumbnail width and have the height adjust to fit the full content?
    Screenshot 2026-09-01 at 10.28.46 AM.png

    • Reduce Thumbnail to 18x18 (while we're in there can you update the thumbnail colour #D4D4D4)

    Screenshot 2026-09-01 at 1.00.03 PM.png


    **Upload Errors **

    Upload Errors

    • Add an [X] Dismiss action to each upload error.
      Upload errors are non-blocking and do not prevent the user from saving. [Figma File]

    Screenshot 2026-09-02 at 11.18.36 AM.png

    • Clear any remaining upload errors when another document is uploaded or the changes are saved.

    Steps to reproduce

    • Upload a file that results in an error.
    • Select Done.
    • Reopen the record by selecting Correct.
    • The previous upload error appears again.

    Currently in TEST:
    Private Zenhub Video


    • Correct Form Opens Out of View (Enhancement)

    When I select Correct, the form opens below the table, but the page stays in the same position. I have to scroll down to find it.
    Can the page automatically scroll to reveal the form when it opens, with the full form visible?

    Private Zenhub Video


    • Deleted State

    Update greyed-out text across all table components: #757575

    Screenshot 2026-09-01 at 2.10.40 PM.png


    Accessibility Behaviour (Moving this to DRS Ticket #33859)

    Because these weren’t discussed or fully laid out, they may need to be explored a bit futher. We can move them to the next upload work if needed so we can get Corrections out the door, but we’ll need to revisit them later.

    • Upload Error Is Not Announced

    When a file fails to upload, the error appears visually, but the screen reader does not announce it. It also announces the failed file as the “Current Court Order File.”

    Suggestion based on past conversations:

    • Add the error to an aria-live="polite" region so it is announced when it appears.
    • Use aria-describedby to connect the upload control to the error so users can hear it again when they return to the control.
    • Announce the same error shown on the screen, including the filename.
    • Do not identify the failed file as the current Court Order file.

    Expected: The screen reader announces something like, “Unable to upload 8.5x11.jpg.”

    In TEST:
    Screenshot 2026-09-01 at 11.04.54 AM.png


    Mobile

    • We can remove 'Drag and Drop' from mobile view

    Screenshot 2026-09-01 at 12.53.05 PM.png

  5. deetz99 commented on Sep 3, 2026

    @deetz99
    CollaboratorAuthor

    @liz-govier

    Will need to touch base on the error alert. And I opened a separate ticket for the deleted styling. Pretty sure I got everything else.

  6. liz-govier commented on Sep 9, 2026

    @liz-govier
    Collaborator

    @deetz99 Moving back to In Progress

    This was missed first UXA round.

    The ‘Enter’ keyboard action for the Cancel, Dismiss, and Remove buttons saves the form instead of performing their intended actions. Here’s a video of what’s happening for reference. Aside from that, everything is ready to go.

    Clicking 'Enter' on 'Remove' button

    Private Zenhub Video

  7. liz-govier commented on Sep 15, 2026

    @liz-govier
    Collaborator
  8. chdivyareddy commented on Sep 18, 2026

    @chdivyareddy
    Collaborator

    Verified in TEST!

    Court Order Validation:

    image.png

    image.png

    image.png

    Supporting Documents:

    Private Zenhub Video

    Private Zenhub Video

    image.png

    Screenshot 2026-09-18 at 2.43.59 PM.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions