Skip to content

[FE] Set user availability - Add busy checkbox

What does this MR do?

Adds a "user availability" checkbox to the user status settings and the user status modal. This allows users to set their status to "busy".

Adds some additional specs for the new setting

Feature flag

Requires the :set_user_availability_status feature flag

Screenshots (strongly suggested)

Setting availiability from modal Setting from profile settings
set-availability-from-modal set-availability-from-settings

Testing instructions

Ensure the feature flag is enabled

From the set status modal

  1. Click your user profile in the top right corner
  2. From the open dropdown select Edit status (if you have a status set) or Set status
  3. Click the busy check box
  4. Wait for the success message, then reload the page and open the modal again
  5. The busy status should toggled

From the user settings

  1. Navigate to your profile settings, ie http://localhost:3000/-/profile
  2. Under Current status you should see a checkbox for busy
  3. Click the busy check box
  4. Wait for page reload
  5. The busy status should toggled

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #263450 (closed)

Edited by Ezekiel Kigbo

Merge request reports

Loading