-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Notify if exceeding clients limit with Pass
The Cozy Pass mobile app and web extension use OAuth clients to connect to the Cozy so we want to include these in the OAuth clients number limitation. However, they do not go through our classic OAuth flow and use their own so they would not see the blocking modal we added before the permissions modal when connecting the client would exceed the limit set on the Cozy. For this reason, the connection of these app and extension will always go through but, if this leads to exceeding the clients limit, the user will see the blocking modal when trying to navigate on their Cozy. This is why we'll send an e-mail notification to raise attention on the limit being exceeded and ways to solve this issue in an effort to anticipate future navigation that could be a bit annoying and disorientating.
- Loading branch information
1 parent
8497454
commit 0374c31
Showing
14 changed files
with
1,289 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{define "content"}} | ||
<mj-text mj-class="title content-medium"> | ||
<img src="https://files.cozycloud.cc/email-assets/stack/icon-archive.png" width="16" height="16" style="vertical-align:sub;"/> | ||
{{t "Notifications OAuth Clients Title"}} | ||
</mj-text> | ||
<mj-text mj-class="content-medium"> | ||
{{t "Notifications OAuth Clients Greeting"}} | ||
</mj-text> | ||
<mj-text mj-class="content-medium"> | ||
{{tHTML "Notifications OAuth Clients Reason Device" .ClientName}}<br /> | ||
{{tHTML "Notifications OAuth Clients Reason Limit" .ClientsLimit}} | ||
</mj-text> | ||
{{if .OffersLink}} | ||
<mj-text mj-class="content-medium"> | ||
{{t "Notifications OAuth Clients Increase Limit"}} | ||
</mj-text> | ||
<mj-button href="{{.OffersLink}}" align="left" mj-class="primary-button content-large"> | ||
{{t "Notifications OAuth Clients Offers Text"}} | ||
</mj-button> | ||
{{end}} | ||
<mj-button href="{{.DevicesLink}}" align="left" mj-class="primary-button content-large"> | ||
{{t "Notifications OAuth Clients Devices Text"}} | ||
</mj-button> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{t "Notifications OAuth Clients Title"}} | ||
--- | ||
|
||
{{t "Notifications OAuth Clients Greeting"}} | ||
|
||
{{t "Notifications OAuth Clients Reason Device" .ClientName}} | ||
{{t "Notifications OAuth Clients Reason Limit" .ClientsLimit}} | ||
|
||
{{if .OffersLink}} | ||
{{t "Notifications OAuth Clients Increase Limit"}} | ||
|
||
{{t "Notifications OAuth Clients Offers Text"}}: {{.OffersLink}} | ||
{{end}} | ||
{{t "Notifications OAuth Clients Devices Text"}}: {{.DevicesLink}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.