Commit graph

24788 commits

Author SHA1 Message Date
Manav Rathi 33314bc2da
[meta] Add a special case for comments in the notifier workaround (#1229)
Discord still hasn't fixed the issue on their end, and having a top
level link whenever a new comment is added is getting cumbersome, so add
a handler for the common comments case too.

Tested and deployed.
2024-03-28 10:12:22 +05:30
Manav Rathi 12aa071adc
[meta] Add a special case for comments in the notifier workaround
Discord still hasn't fixed the issue on their end, and having a top level link
whenever a new comment is added is getting cumbersome, so add a handler for the
common comments case too.

Tested and deployed.
2024-03-28 10:11:04 +05:30
Manav Rathi 3213fe0d26
[photos-desktop] Various changes, bringing the code up to speed (#1227)
See commit titles for a gist.
2024-03-27 21:22:54 +05:30
Manav Rathi 3706b99d36
Remove debug print 2024-03-27 21:21:31 +05:30
Manav Rathi 1bb79854a5
Mollify TypeScript 2024-03-27 21:17:30 +05:30
Manav Rathi c9f8ad3e88
Tidy and prune the app's menu
- Switch to title case (discussed with others that the app's main menu is an
  appropriate choice and exception to our sentence casing otherwise).

- Prune
2024-03-27 21:12:45 +05:30
Manav Rathi 0dda25800e
Update the node version number in tsconfig doc comments 2024-03-27 20:34:10 +05:30
Manav Rathi 95eec1f3d6
Remove brew special casing
Brew Formulae support an `auto_updates true` flag which tells brew's auto update
mechanism to stay out of the way.

Ref: https://docs.brew.sh/FAQ#why-arent-some-apps-included-during-brew-upgrade

Will need to open a PR to update our Formula though.

9241d331b6/Casks/e/ente.rb (L9)
2024-03-27 20:29:11 +05:30
Manav Rathi 5ac4799ce1
Support arbitrary parameters like console.log 2024-03-27 20:26:16 +05:30
Manav Rathi 3699118f0c
Don't shellescape fully formed commands 2024-03-27 20:10:45 +05:30
Manav Rathi cf71d1477b
update to new functions in more places 2024-03-27 17:44:49 +05:30
Ashil 79f7fb9ad9
[mobile][photos] Update change log for v0.8.72 release (#1225)
## Description

![72 change
log](https://github.com/ente-io/ente/assets/77285023/1a903668-76be-40d3-b00a-a0a7c7dfb66a)
2024-03-27 17:40:25 +05:30
Manav Rathi 937e09f6a3
Fix import errors 2024-03-27 17:21:42 +05:30
Manav Rathi 8ffe1ece2d
Relay isFolder error back to renderer 2024-03-27 17:13:25 +05:30
Manav Rathi 175ea274c4
Alternative formatting 2024-03-27 17:07:56 +05:30
Vishnu Mohandas 78b858ae7c
[mobile] FAQ -> Help (#1224) 2024-03-27 17:06:39 +05:30
vishnukvmd 94f4c1e757 [mobile] FAQ -> Help 2024-03-27 17:06:01 +05:30
Manav Rathi 08489c8237
Tweak "render-process-gone" handler 2024-03-27 17:04:46 +05:30
Vishnu Mohandas be62ea1459
[mobile][photos] Reduce GC events when loading models (#1223)
## Description

When using `readAsBytes()`, noticed a lot of `concurrentMark` GC event
in timeline when using the performance profiler dev tool, which were
potentially causing longer build and raster time for frames.
2024-03-27 16:44:05 +05:30
ashilkn 01b3d99e3a bump up version for release 2024-03-27 16:43:03 +05:30
Manav Rathi 3e61ebf1df
Add types for shellescape
Refs:

- https://github.com/boazy/any-shell-escape
- https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/shell-escape/index.d.ts
- https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html
2024-03-27 16:36:31 +05:30
ashilkn 7966c6bbc8 Merge branch 'main' into load_model_perf_improvement 2024-03-27 16:34:39 +05:30
ashilkn 35a8a96898 pref: reduce GC events 2024-03-27 16:34:06 +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 44403c94c2 Cancel SEPA subscriptions when payments fail 2024-03-27 16:20:58 +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
vishnukvmd a581e31ef9 [mobile] Redirect to payment portal if subscription is past due 2024-03-27 15:56:54 +05:30
Manav Rathi e1c2c9fc98
Rearrange 2024-03-27 15:55:02 +05:30
Manav Rathi c38542dbfb
Init logging 2024-03-27 15:34:29 +05:30
Manav Rathi 27047da08b
Use a truthy check 2024-03-27 15:12:40 +05:30
Manav Rathi 846c2af02b
Outline a potential approach 2024-03-27 15:10:35 +05:30
Manav Rathi 42679bc9da
Remove duplicated icon
Per https://www.electron.build/icons, a single 512x512 icon.png placed in the
buildResources directory (default `build`) is enough to generate icons for all
three - macOS, Windows and Linux.
2024-03-27 15:00:25 +05:30
Vishnu Mohandas 81a8cba4da
[mobile] New translations (#1140)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-03-27 14:44:29 +05:30
Vishnu Mohandas 0c400db649
[server] Fix Stripe related issues (#1152)
## Description

### Stripe
- Settings have been modified to "Cancel" the subscription if all
attempts to charge an invoice fails. The previous configuration was to
set the subscription to "Past Due".

### Museum
- Updated our Stripe workflow to use `PaymentBehaviorAllowIncomplete` in
case of SEPA payments
- Fixed the issue caused by us spawning unnecessary subscriptions when a
customer tried to renew their expired subscription
- Removed the email that was being sent out when a Stripe subscription
expired. We will have to run our own cron to send a notification and
perform necessary clean up. When payments fail, we will still send a
notification to intimate the customer that their account is on hold.

### Mobile
- Fixed the dialogs and error messages on the payment page

## Tests
The following cases were tested for SEPA, Credit Cards, and Credit Cards
with 3DS.
- [x] Purchase
  - [x] Success
  - [x] Failure
- [x] Renewal
  - [x] Success
  - [x] Failure
- [x] Upgrades
  - [x] Success
  - [x] Failure
- [x] Cancellation
- [x] Resumption post recovery

## Note

These changes are likely to break in the event of some corner cases we
haven't thought of. But this will land us in a state that is better than
where we are right now in terms of collecting payments for expired
subscriptions and those via SEPA.
2024-03-27 14:43:36 +05:30
vishnukvmd 25a054287a Prevent duplicate emails for SEPA 2024-03-27 14:22:30 +05:30
Manav Rathi 379a5f8e79
[server] Publish docker image - Part 2/2 (#1219)
Part 2 (and final part) of https://github.com/ente-io/ente/pull/1218.

Completes https://github.com/ente-io/ente/discussions/673. The images
are accessible at `ghcr.io/ente-io/server`, e.g.

```sh
docker pull ghcr.io/ente-io/server
```
2024-03-27 13:59:14 +05:30
Manav Rathi 62d95ad862
Mention pre-built binary in docs 2024-03-27 13:53:43 +05:30
Manav Rathi e803b7f053
Document in main README 2024-03-27 13:44:24 +05:30
Manav Rathi 741c968c8a
Fix typo 2024-03-27 13:10:05 +05:30
Manav Rathi 4a4a6ba44a
Give an example of the pull command 2024-03-27 13:04:28 +05:30
Manav Rathi 6588880b31
Use the correct commit, not the current one 2024-03-27 13:02:46 +05:30
Manav Rathi cb45a070be
Tweaks 2024-03-27 12:58:17 +05:30
Manav Rathi fc8e79fbe9
Remove double namespacing 2024-03-27 12:54:29 +05:30
Manav Rathi a8a2e7aee3
[server] Publish docker image - Part 1 (#1218)
- Outline the plan
- Add a first cut of the publish script

Merging this now so that I can test the workflow. Post a successful
publish, I'll open another PR with any fixes entailed, and will also
document this in the main server README.
2024-03-27 12:46:26 +05:30
Manav Rathi 4ba76e4aa2
Tweaks 2024-03-27 12:46:08 +05:30
Manav Rathi 7c0f41166c
Add a first cut of the publish script 2024-03-27 12:42:29 +05:30
Manav Rathi b31332ff30
Outline the plan 2024-03-27 12:42:26 +05:30