[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
- Click your user profile in the top right corner
- From the open dropdown select
Edit status
(if you have a status set) orSet status
- Click the
busy
check box - Wait for the success message, then reload the page and open the modal again
- The busy status should toggled
From the user settings
- Navigate to your profile settings, ie
http://localhost:3000/-/profile
- Under
Current status
you should see a checkbox forbusy
- Click the
busy
check box - Wait for page reload
- The busy status should toggled
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
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