[CLD-9238] Direct preview user to proper team based on use case
Summary
Accepts a use case via the CWS login flow, and directs the user to the proper team based off of that use case.
This PR also includes a change to ensure that the dismissal of the Preview Modal persists through refreshes.
This PR also includes a small change to the notification announcement bar, hiding it in cloud previews so as not to be shown overtop of the Preview banner.
Ticket Link
https://mattermost.atlassian.net/browse/CLD-9238
Screenshots
Release Note
None
Codecov Report
Attention: Patch coverage is 72.00000% with 7 lines in your changes missing coverage. Please review.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| server/channels/api4/user.go | 50.00% | 5 Missing and 2 partials :warning: |
:loudspeaker: Thoughts on this report? Let us know!
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
/update-branch
Error trying to update the PR. Please do it manually.
/update-branch
⚠️ One or more flaky tests detected ⚠️
- Failing job: github.com/mattermost/mattermost:Postgres with binary parameters
- Double check your code to ensure you haven't introduced a flaky test.
- If this seems to be unrelated to your changes, submit a separate pull request to skip the flaky tests (e.g. 23360) and file JIRA ticket (e.g. MM-52743) for later investigation.
| Test | Retries |
|---|---|
| Postgres with binary parameters (Results) | |
| com/mattermost/mattermost/server/v8/enterprise/message_export.TestRunExportJobE2EByType/using_dedicated_export_filestore/actiance_e2e_3_-_test_create,_update,_delete_xml_fields | 1 |
| com/mattermost/mattermost/server/v8/enterprise/message_export.TestRunExportJobE2EByType/using_dedicated_export_filestore | 1 |
| com/mattermost/mattermost/server/v8/enterprise/message_export.TestRunExportJobE2EByType | 1 |
⚠️ One or more flaky tests detected ⚠️
- Failing job: github.com/mattermost/mattermost:Generate Test Coverage
- Double check your code to ensure you haven't introduced a flaky test.
- If this seems to be unrelated to your changes, submit a separate pull request to skip the flaky tests (e.g. 23360) and file JIRA ticket (e.g. MM-52743) for later investigation.
| Test | Retries |
|---|---|
| Generate Test Coverage (Results) | |
| com/mattermost/mattermost/server/v8/channels/app.TestDeleteCPAValues | 1 |