Commit graph

153 commits

Author SHA1 Message Date
Manav Rathi
055ebd0447
Fix leftover gunk 2024-03-28 17:44:27 +05:30
Manav Rathi
212b2663d0
Add payments deployment scripts 2024-03-28 17:42:54 +05:30
Manav Rathi
5867af3a2f
Clean up EnteSpinner 2024-03-28 17:15:45 +05:30
Manav Rathi
ac01f7a12a
Clean up utils 2024-03-28 17:10:48 +05:30
Manav Rathi
713a0038f0
Clean up CSS 2024-03-28 17:09:11 +05:30
Manav Rathi
3c0c591bed
Remove custom font 2024-03-28 17:08:39 +05:30
Manav Rathi
990f9a8d70
Remove old payment instructions 2024-03-28 17:05:59 +05:30
Manav Rathi
f524403580
Wait for i18 to be ready before trying to load the page 2024-03-28 14:25:20 +05:30
Manav Rathi
4c05e0925d
Fix example whitelisted-redirect-url 2024-03-28 13:19:00 +05:30
Manav Rathi
2b379640ca
Allow billing plans to be mounted into the Docker container if needed 2024-03-28 13:07:43 +05:30
Manav Rathi
8cd725978a
Update the README 2024-03-28 12:55:47 +05:30
Manav Rathi
c5a2b61454
Fix tsconfig formatting 2024-03-28 12:11:09 +05:30
Manav Rathi
88e4f61221
Config 2024-03-28 12:07:10 +05:30
Manav Rathi
06f1fa086e
Fix dev 2024-03-28 11:56:05 +05:30
Manav Rathi
e4c18b9e74
Inline 2024-03-28 11:49:05 +05:30
Manav Rathi
478435f806
Use :3001 for all the aux services 2024-03-28 11:42:59 +05:30
Manav Rathi
8f0ef055c5
[web] Make the imported payments code feel at home in the new monorepo
- Use the shared yarn monorepo configuration
- styled-components => emotion (since that's what the rest of the code uses)
- Remove Sentry (since it's gone elsewhere)
2024-03-28 11:40:22 +05:30
Abhinav
8a3c0743fe
Import code for payments.ente.io
Manav: To avoid accidentally spilling out any secrets, squash and
import. However, the overwhelming majority of the work in the original code was
done by Abhinav <abhinavk.grd@gmail.com> so set them as the author for the
commit.
2024-03-28 10:19:44 +05:30
Vishnu Mohandas
eef33e9c0c
[mobile][web] Redirect to payment portal if subscription is past due (#1222)
## Description

When a customer whose Stripe subscription is past due (within the 30 day
window after expiry time and has not been cancelled) clicks on the
subscription modal, take them to the payment portal to complete the
subscription.

## Tests

- [x] Tested web
- [x] Tested mobile
2024-03-27 16:29:58 +05:30
vishnukvmd
ba307b0dcd [web] Fix check 2024-03-27 16:23:38 +05:30
vishnukvmd
ba314eb647 [web] Handle past-due state on clicking "renew" 2024-03-27 16:17:23 +05:30
vishnukvmd
1020366c3a [mobile][web] Ignore cancelled subscriptions while computing past-due status 2024-03-27 16:11:03 +05:30
vishnukvmd
a15e9b0c9a [web] Redirect to payment portal if subscription is past due 2024-03-27 15:57:00 +05:30
Manav Rathi
48a726885f
Fix typo in comment 2024-03-26 21:45:21 +05:30
Manav Rathi
ac97d65c12
Remove one copy of duplication from IPC types 2024-03-26 21:45:21 +05:30
Manav Rathi
24176d8c40
Document a few more dependencies 2024-03-26 21:42:48 +05:30
Crowdin Bot
e3d3943539 New Crowdin translations by GitHub Action 2024-03-26 01:36:29 +00:00
Manav Rathi
147d79c64f
[web][photos] Fix infinite loop on half-logins (#1197)
Fix an infinite loop of navigation under the following conditions: key
is valid
but token is not present.

Fix is to match the condition used in both gallery

    if (!key || !token) {

and the root page.

They seemed to have diverged in commit
c3304571a9.

Was able to reproduce this when launching the desktop app such that the
key was
picked up (possibly from a prior installation) from the secure keychain,
but the
token was not found. I feel this is also a fix for a similar navigation
loop
recently reported by QA but unreproducible so far.
2024-03-25 19:11:07 +05:30
Manav Rathi
4b7155dd13
Match the condition in one more place 2024-03-25 17:44:27 +05:30
Manav Rathi
eecb8b70f4
[web][photos] Fix infinite loop on half-logins
Fix an infinite loop of navigation under the following conditions: key is valid
but token is not present.

Fix is to match the condition used in both gallery

    if (!key || !token) {

and the root page.

They seemed to have diverged in commit c3304571a9.

Was able to reproduce this when launching the desktop app such that the key was
picked up (possibly from a prior installation) from the secure keychain, but the
token was not found. I feel this is also a fix for a similar navigation loop
recently reported by QA but unreproducible so far.
2024-03-25 16:48:08 +05:30
LI-NA
b98da635b6 [web] Change the command to fetch the git SHA
To make the git command work on Windows, changed it to use different commands depending on the platform of the OS.
2024-03-25 20:10:38 +09:00
Manav Rathi
f8a36852a6
Prepare for test 2024-03-25 15:39:29 +05:30
Manav Rathi
892bf852a5
Convert remaining upload functions 2024-03-25 15:29:39 +05:30
Manav Rathi
f53b1361e8
Move file related functions 2024-03-25 15:09:51 +05:30
Manav Rathi
4261624da5
Handle rest of watch related functions 2024-03-25 14:03:20 +05:30
Manav Rathi
186e76c62b
Move add/remove watch functions to preload 2024-03-25 13:49:48 +05:30
Manav Rathi
96ea53face
preload / watch - part 1
The change event was not being used (since
dca542e781), so also remove that dead code.
2024-03-25 13:31:28 +05:30
Manav Rathi
67468c6ff9
Move the selection dialogs 2024-03-25 13:02:06 +05:30
Manav Rathi
e8acbd8c9f
Convert the other conversion functions 2024-03-25 12:45:21 +05:30
Manav Rathi
2522da2b5e
Handle runFFMPEGCmd in preload 2024-03-25 12:32:57 +05:30
Manav Rathi
dd7e87274a
Handle set/getEncryptionKey in preload 2024-03-25 12:19:19 +05:30
Manav Rathi
106ba270fe
Handle ML related functions in updated preload 2024-03-25 12:09:11 +05:30
Manav Rathi
d3093809d6
Inline more into preload 2024-03-23 20:25:56 +05:30
Manav Rathi
81ba5379c9
Move checkExistsAndCreateDir out of preload 2024-03-23 20:06:27 +05:30
Manav Rathi
f21dc84840
Switch to async fs.exists
We cannot expose the sync version over the context bridge - the node:fs module
is not available to the preload script under context isolation.
2024-03-23 19:59:47 +05:30
Manav Rathi
b1d0909675
EXtract common queueProcessor 2024-03-23 18:49:22 +05:30
Manav Rathi
7704b902c4
Extract shared function 2024-03-23 18:46:20 +05:30
Manav Rathi
bdb2a22863
Extract shared function 2024-03-23 18:44:30 +05:30
Manav Rathi
47a7042d55
Remove dead code from cast 2024-03-23 18:38:31 +05:30
Manav Rathi
a5c3aff54b
Expose an fs.exists over the context bridge 2024-03-23 18:28:22 +05:30