Skip to content

feat: Add "Clear Status" button directly within the Custom Status Modal #993

@Kalpana-chavhan

Description

@Kalpana-chavhan

Description

Currently, to clear a custom status message, users must either manually delete the text in the "Set a Custom Status" modal or find the small "X" icon in the sidebar header.

For users with longer status messages or those using screen readers, the sidebar "X" is a small target and lacks prominence. Adding a clear action within the modal itself aligns with modern UI patterns (like those found in Slack or Discord) and improves the accessibility of status management.


Steps to Reproduce (Current Friction)

  1. Click on your user avatar.
  2. Select "Custom Status."
  3. Observe that there is no single-click "Clear" button; you must manually backspace the text or close the modal and find the "X" in the sidebar.

Proposed Solution

Modify the UserStatusModal component to include a "Clear Status" button:

  • Placement: To the left of the "Cancel" and "Save" buttons.
  • Component: Fuselage Button.
  • Logic: On click, it should send an empty string to the setUserStatus API endpoint and close the modal.

Impact

  • Accessibility: Better target for users with motor impairments.
  • Consistency: Centralizes all status-related actions in one modal.
  • UX: Reduces the number of clicks/keyboard actions required to reset a profile state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions