Commit graph

25221 commits

Author SHA1 Message Date
Manav Rathi
356ad6f004
Use regular link
Removing unnecessary dependencies on next specific components
2024-04-05 19:58:45 +05:30
Manav Rathi
7be2c66fb6
[server] Delete the subscriber on listmonk when needed (#1331) 2024-04-05 17:14:09 +05:30
vishnukvmd
c32badc82c [server] Delete the subscriber on listmonk when needed 2024-04-05 17:12:06 +05:30
Manav Rathi
dbdad18c96
[web] Uncomment accidentally activated env vars for localhost defaults (#1330) 2024-04-05 17:09:24 +05:30
Manav Rathi
ae51531bd0
[web] Uncomment accidentally activated env vars for localhost defaults 2024-04-05 17:08:47 +05:30
Manav Rathi
4ad060c4e4
[infra] Fix the listmonk upgrade invocation (#1329)
Tested on the actual instance
2024-04-05 17:03:03 +05:30
Manav Rathi
5266e5d1dc
[infra] Fix the listmonk upgrade invocation 2024-04-05 16:51:08 +05:30
Vishnu Mohandas
5904e3dd2c
[server] Allow a configurable sslmode (#1327)
Tested that

- [x] Existing defaults remain unchanged
- [x] Setting db.sslmode = require in museum.yaml is honoured (in the
docker compose environment, that causes the db connection to fail as
expected)
2024-04-05 13:58:17 +05:30
Manav Rathi
74decc32de
[server] Allow a configurable sslmode
Tested

- Existing defaults remain unchanged
- Setting db.sslmode = require in museum.yaml is honoured (in the docker compose environment, that causes the db connection to fail as expected)
2024-04-05 11:52:22 +05:30
Vishnu Mohandas
5e8f41cbfe
[mob] Change share page copy (#1323)
## Description

I thought the "Collect photos" line and the download icon in the share
page looked very confusing:

![old_share_page_copy](https://github.com/ente-io/ente/assets/81471280/cb6a8415-e3a0-403e-abd3-e94b6256a572)

So I changed the icon and copy slightly:

![new_share_page_copy](https://github.com/ente-io/ente/assets/81471280/2480bb43-21fb-487a-af00-c473dbe7439c)


## Tests

Just a copy change, no tests.
2024-04-05 11:48:29 +05:30
Manav Rathi
360aa2903f
[web] Remove leftover console log (#1325) 2024-04-05 11:35:30 +05:30
Manav Rathi
0d48284b4f
[web] Remove leftover console log 2024-04-05 11:33:57 +05:30
Manav Rathi
687efe506a
[web] Fix an regression introduced in the previous PR (#1324)
Use the implementation instead of the accidental infinite loop
2024-04-05 11:32:32 +05:30
Manav Rathi
e0cfa36f08
Use the implementation instead of the accidental infinite loop 2024-04-05 10:51:04 +05:30
laurenspriem
858ba88c65 [mob] Change share page copy 2024-04-05 10:48:37 +05:30
Manav Rathi
e7e8ded1ed
[web] Miscellaneous improvements (#1322)
- Remove unused knobs
- Inline
- Initial-scale=1 is still recommended
- Remove custom _document (with a longer term vision of next => vite)
2024-04-05 10:17:04 +05:30
Manav Rathi
fa7cbaea18
Remove custom _document
Looking towards a longer term transition out of next
2024-04-05 10:09:37 +05:30
Manav Rathi
9785bbcb26
We don't have full web app support yet
Plus, Apple doesn't do much for PWAs anyway. One reason for removing this until
we test it out in actuality is because there were reports of the semi-PWA
caching causing issues.
2024-04-05 09:38:48 +05:30
Manav Rathi
039387a84e
Initial-scale=1 is still recommended
Ref:
https://teamtreehouse.com/community/is-initialscale-not-needed
2024-04-05 09:36:18 +05:30
Manav Rathi
866b52b002
Inline constant 2024-04-05 09:26:30 +05:30
Manav Rathi
2c098904fb
Inline 2024-04-05 09:13:38 +05:30
Manav Rathi
a68dce35f6
Remove unused knob 2024-04-05 09:08:56 +05:30
Manav Rathi
1d0f30ad91
These values were never customized 2024-04-05 09:08:02 +05:30
Manav Rathi
7374fe2ecc
[web] Fix nightly build (#1321)
Got broken by yesterday's changes to payments.
2024-04-05 08:58:17 +05:30
Manav Rathi
55454f9454
[web] Fix nightly build
Got broken by yesterday's changes to payments.
2024-04-05 08:57:24 +05:30
Manav Rathi
1aa39e83d7
[server] Build ARM images when publishing to ghcr.io (#1320)
Untested yet, will test alongside the next publish

Requested in https://github.com/ente-io/ente/discussions/1305
2024-04-04 21:59:47 +05:30
Manav Rathi
d84ee7223a
[server] Build ARM images when publishing 2024-04-04 21:57:44 +05:30
Manav Rathi
4e5fcebb95
[infra] Setup listmonk (#1319) 2024-04-04 21:36:02 +05:30
Manav Rathi
e170b6811d
Tweaks
Refs:
https://github.com/knadh/listmonk/blob/master/listmonk-simple.service#L16
2024-04-04 21:27:47 +05:30
Manav Rathi
3ed2186dcf
Initial cut of listmonk setup 2024-04-04 20:23:25 +05:30
Manav Rathi
b6177a5bc3
Listmonk mailing list control (#1289)
## Description
Add listmonk mailing list subscribe and unsubscribe

## Tests
Tested getSubscriberID, unsubscribe, and subscribe using a locally
running listmonk server with different parameters.
- [x] A new subscriber is created and added to the listmonk campaign
mailing list on listmonkSubscribe() for the given list IDs
- [x] Subscriber is removed from listmonk campaign mailing list on
listmonkUnsubscribe() for the given list IDs
- [x] The old email address is unsubscribed, and the new email is
subscribed when a user updates the email
2024-04-04 17:21:55 +05:30
Manav Rathi
27410b2da9
[web] Add an example fetch to staff (#1315)
- Add schema validation of the response
- Add an example fetch
2024-04-04 16:22:49 +05:30
Manav Rathi
ae061d2a44
fetch 2024-04-04 16:19:46 +05:30
Manav Rathi
d9d03d8451
Add schema validation of the response 2024-04-04 16:12:39 +05:30
Manav Rathi
2f5abb6318
[web] Scaffold staff app (#1314) 2024-04-04 15:50:10 +05:30
Manav Rathi
e53c923675
Lint fix + update URL 2024-04-04 15:44:03 +05:30
Manav Rathi
39228270c1
Deploy 2024-04-04 15:40:17 +05:30
Manav Rathi
384ec365e8
Add starter staff app 2024-04-04 15:25:38 +05:30
Vishnu Mohandas
b2da2c7e88
Setup Triple-T configuration for F-Droid (#1313)
Potential fix for https://github.com/ente-io/ente/issues/1172.
2024-04-04 15:16:45 +05:30
vishnukvmd
c25cc6f8a4 Setup Triple-T configuration for F-Droid 2024-04-04 15:15:59 +05:30
Vishnu Mohandas
b2cf6be5f5
[photos] v0.8.75 (#1312) 2024-04-04 14:50:54 +05:30
vishnukvmd
fce68ba1be [photos] v0.8.75 2024-04-04 14:50:22 +05:30
Manav Rathi
29550317f7
Enable the jsx-runtime plugin for vite's ESLint
This prevents it complaining about a missing React import.

Enabling this is recommended by the vite starter itself:

> Install
  [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and
  add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends`
  list
2024-04-04 14:46:41 +05:30
Manav Rathi
876c5800f9
[web] Convert payments app to Vite (#1311)
This is the culmination of the previous few PRs. The payments app now
uses vite, which is what we want to give out a real shot for the smaller
of our apps.

**Tested by**

Local setup, and subscribing to a plan.
2024-04-04 14:36:36 +05:30
Manav Rathi
608cb6c85e
Prevent double rendering in strict mode
The double invocation during dev mode, while harmless, is confusing, so add an
additional small check to insure this only runs once.
2024-04-04 14:25:04 +05:30
Manav Rathi
712b99b8f3
Fix lint issue 2024-04-04 14:15:42 +05:30
Manav Rathi
935e47fbca
Fix the payments eslint 2024-04-04 14:10:16 +05:30
Manav Rathi
fcb26d39f1
Don't need default export 2024-04-04 14:02:31 +05:30
Manav Rathi
ff6d0d32cf
Remove unused 404 handler
The default appType == 'spa' in vite redirects all (unclaimed) paths to /index.html.

If needed, this can be disabled:
https://stackoverflow.com/questions/69701743/how-can-i-configure-vites-dev-server-to-give-404-errors/69711988#69711988
2024-04-04 13:58:30 +05:30
Vishnu Mohandas
52c47234fd
[Photos] Allow for configuring a custom server (#1302)
## Description
Users can now tap on the onboarding screen 7 times to bring up a page
where they can configure the endpoint the app should be connecting to.

![photos-selfhost](https://github.com/ente-io/ente/assets/1161789/42fda09a-07e4-4c4e-a658-ec4a2d3f1848)

## Tests
- [x] Verified that production flows are working as expected
- [x] Verified that configuring the endpoint to a local instance lets
you
  - [x] Connect to that instance
  - [x] Create an account
  - [x] Upload a photo
  - [x] Logout and log back in
2024-04-04 13:41:26 +05:30