-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-31503 - screen to restrict access because workspace capacity" #7468
Conversation
import computerWithAlert from 'images/cloud/computer-with-alert.svg'; | ||
import mattermostCloud from 'images/cloud/mattermost-cloud.svg'; | ||
import wavesBackground from 'images/cloud/waves.svg'; | ||
import blueDotes from 'images/cloud/blue.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be blueDots not blueDotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks for finding this typo.
const subscriptionStats = subscriptionStatsFromState(state); | ||
const isLicensed = license && license.IsLicensed === 'true'; | ||
const isCloud = license && license.Cloud === 'true'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just have the subscriptionsStats selector return whether its cloud?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nickmisasi , that makes sense, I will add that validation.
/update-branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @pablovelezvidal! Some non-blocking comments below
@pablovelezvidal can we set up the test server where we can see the new page and provide a link for UX review? |
/test |
depends on mattermost/mattermost#16896 |
@pablovelezvidal let me know how I should review. You noted |
there is a PR that needs to be merged in the server, after that I will set up everything here and I will let you know how to test. The /test you saw here was a mistake from me, that was intended to be set in the chat post panel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/update-branch |
@matthewbirtch the PR is ready to review. This is the invitation link you should use to see the restriction screen (I already added more than the free tier limit users) https://mattermost-webapp-pr-7468.test.mattermost.cloud/signup_user_complete/?id=brag37o5mffu5ktfxfggoc76hw . If for any reason it doesn't work for you, the testing procedure would be, copy the invitation link, then activate enough users to get the upgrade account banner, and in a different browser or incognito window, paste the invitation link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks @pablovelezvidal
Test server destroyed |
… custom-status * 'master' of github.com:mattermost/mattermost-webapp: Cypress/E2E: Fix slash commands spec and some promotions (mattermost#7522) E2 e prod tests fixes (mattermost#7509) MM-31503 - screen to restrict access because workspace capacity" (mattermost#7468) [MM-20378] Convert file_attachment_list and tests to TypeScript (mattermost#7488) [MM-20377] Convert persist_gate to TypeScript (mattermost#7434) [MM-32301] Post Aria Label (mattermost#7457) [MM-30042]: CWS - Step 3 of Getting Started shows error when trying to send 10 email addresses (mattermost#7439) fix typo (mattermost#7505) Add images for email notification redesign (mattermost#7417) Cypress/E2E: Distribute tests evenly when testing in parallel (mattermost#7508) Cypress/E2E: Use MinIO for S3 storage testing (mattermost#7506) MM-32354 - do not show renew now text in announcement bar tooltip (mattermost#7491) fix for test that requires untrusted connection (mattermost#7507) Revert "Allow uploading 10 files per post (mattermost#7160)" (mattermost#7510) MM-26497: markdown table word breaking (mattermost#7500) Cypress/E2E: Promote/Demote e2e tests (mattermost#7497) [MM-31497] - Prevent end users from inviting people and exceeding the free tier limits (mattermost#7408) MM-31961: fixed color in search field for dark-theme (mattermost#7490)
…termost#7468) * MM-31503 - screen to restrict access because workspace capacity" * Add the MM-redux commit hash * add unit test to cover the new restricted screen * fix linter and unit tests * Add test for not calling subscription stats when customer is not cloud * improve the way the subscription stats are loaded * modify styles to be consistent with other designed pages * make svg image to be responsive on any screen heigh Co-authored-by: Pablo Velez Vidal <[email protected]> Co-authored-by: Mattermod <[email protected]>
Summary
Create a new screen for users who are restricted from joining a workspace because the free capacity is exceeded
Ticket Link
MM-31503
Related Pull Requests
mattermost/mattermost-redux#1351
Screenshots