Commit Graph

24243 Commits

Author SHA1 Message Date
Neeraj Gupta
ddd89aa1d1 [cli] Log query params in debug mode 2024-03-13 02:03:44 +05:30
Neeraj Gupta
f21a627a71 Add cli generated docs inside docs/generated 2024-03-13 02:03:44 +05:30
Neeraj Gupta
063e980280 [cli] Add command to get-token 2024-03-13 02:03:44 +05:30
Neeraj Gupta
d7d42b6854 [cli] Add example config file 2024-03-13 02:03:44 +05:30
Neeraj Gupta
260a7fbcaa [cli] Allow switching API host based on config 2024-03-13 02:03:44 +05:30
Manav Rathi
9c04a7102b [desktop] Fix desktop dev builds - Part 1 (#1063)
- Main change here is removing a submodule and moving to the upstream
dependency
- Also updated to Prettier 3

The original issue, about yarn dev not working because of context
isolation, still remains. This PR prepares the ground, will have a go at
it in a subsequent PR.
2024-03-12 18:03:10 +05:30
Manav Rathi
a5e6f0cc30 Let Prettier 3 have a go at it 2024-03-12 18:01:09 +05:30
Manav Rathi
2322b41f67 Watch during dev 2024-03-12 17:56:46 +05:30
Manav Rathi
685e75d97d Switch to upstream 2024-03-12 17:38:39 +05:30
Manav Rathi
cde87716a1 Remove the custom next-electron-server
The only change this has in addition to next-electron-server seems to be
https://github.com/ente-io/next-electron-server/pull/1/files, will try to test
along the way to determine its impact.
2024-03-12 17:02:28 +05:30
Manav Rathi
dff0af3397 Fix path to main process entrypoint 2024-03-12 16:47:41 +05:30
Manav Rathi
ca771993ee [desktop] Fix desktop build (#1062)
`yarn dev` is still not working, but that is a previous issue unrelated
to the monorepo migration. Will fix that in a subsequent PR.
2024-03-12 16:38:06 +05:30
Manav Rathi
c8b9b4cd8f Document better 2024-03-12 16:33:43 +05:30
Manav Rathi
d7cd2cecbc Default buildResources is build 2024-03-12 16:12:53 +05:30
Manav Rathi
e219197e2f Fix import 2024-03-12 15:07:06 +05:30
Manav Rathi
3eb84ceba8 [web] New translations (#1058)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-12 14:22:28 +05:30
Manav Rathi
e358738c35 [workflows] Prevent duplicate runs of lint workflows after merging a PR (#1059) 2024-03-12 14:21:46 +05:30
Manav Rathi
b15901df67 [workflows] Prevent duplicate runs of lint workflows after merging a PR 2024-03-12 14:14:18 +05:30
Crowdin Bot
ee7d90e55b New Crowdin translations by GitHub Action 2024-03-12 08:38:32 +00:00
Manav Rathi
22b744aa96 [web] [desktop] Remove Sentry (#1057)
Sentry has a measurable impact on page load, a metric that I'm keen to
improve. Apparently by default it loses us 8-9 page speed points, though
that can be reduced to 3-4
(https://github.com/getsentry/sentry-javascript/issues/9179).

All of this is doable, but there are bigger tasks to deal with. This is
not to say that Sentry won't be useful again at some point, when we have
time to deal with it better. But right now, we discussed that it's just
better to remove Sentry instead of piling on to the sunk cost.
2024-03-12 14:07:29 +05:30
Manav Rathi
5d01931402 Retain -web suffix to allow disambiguating between main and renderer process 2024-03-12 14:06:42 +05:30
Manav Rathi
206ad46950 Remove CRASH_REPORTING key 2024-03-12 13:59:45 +05:30
Manav Rathi
9b6e47d291 [desktop] Remove sentry
See 70cddfdf0b
2024-03-12 13:54:17 +05:30
Manav Rathi
70cddfdf0b [web] Remove Sentry
Sentry has a measurable impact on page load, a metric that I'm keen to
improve. Apparently by default it loses us 8-9 page speed points, though that
can be reduced to 3-4
(https://github.com/getsentry/sentry-javascript/issues/9179).

All of this is doable, but there are bigger tasks to deal with. This is not to
say that Sentry won't be useful again at some point, when we have time to deal
with it better. But right now, we discussed that it's just better to remove
Sentry instead of piling on to the sunk cost.
2024-03-12 13:24:33 +05:30
Neeraj Gupta
c0a2347b80 [server] Refactor /user/plans 2024-03-12 12:17:04 +05:30
Manav Rathi
dd556f8f72 [server] Fix uploads on self-hosted Docker when running on Windows (#1056)
On our Discord @Degos ran into an issue where their uploads to the self
hosted docker compose cluster were failing. On debugging, it was found
that the line-endings in `server/scripts/compose/minio-provision.sh`
were set to CRLF, causing the script to fail when run inside Docker. The
minIO buckets never got provisioned, and so the uploads would fail with

    <Code>NoSuchBucket</Code>
    <Message>The specified bucket does not exist</Message>


![image](https://github.com/ente-io/ente/assets/24503581/37945ed3-3c52-4796-8092-47be6e4a85da)

To fix this, we add a new .gitattributes that enforces the LF for the
scripts that run inside Docker. To (perhaps too preemptively) guard
against similar issues in other scenarios, turn this on for all shell
scripts.

Refs:
-
https://stackoverflow.com/questions/29603737/bash-seamlessly-run-scripts-with-crlf-line-endings
-
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
2024-03-12 12:00:13 +05:30
Manav Rathi
2fc1a96c8b [server] Fix uploads on self-hosted Docker when running on Windows
On our Discord @Degos ran into an issue where their uploads to the self hosted
docker compose cluster were failing. On debugging, it was found that the
line-endings in `server/scripts/compose/minio-provision.sh` were set to CRLF,
causing the script to fail when run inside Docker. The minIO buckets never got
provisioned, and so the uploads would fail with

    <Code>NoSuchBucket</Code>
    <Message>The specified bucket does not exist</Message>

To fix this, we add a new .gitattributes that enforces the LF for the scripts
that run inside Docker. To (perhaps too preemptively) guard against similar
issues in other scenarios, turn this on for all shell scripts.

Refs:
- https://stackoverflow.com/questions/29603737/bash-seamlessly-run-scripts-with-crlf-line-endings
- https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
2024-03-12 11:57:41 +05:30
Manav Rathi
8a7f64b889 [web] New translations (#1049)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-03-12 11:28:39 +05:30
Manav Rathi
c153b28ed6 [web] Support preview deployments (#1052)
Preview deployments can be made by manually triggering the "Preview
(web)" workflow. You can select the app you want to build
(accounts/auth/cast/photos) and the branch to take the code from. The
deployment will be available at https://preview.ente.sh.
2024-03-12 10:11:56 +05:30
Manav Rathi
a9557df240 Add preview deployment docs 2024-03-12 10:08:52 +05:30
Manav Rathi
8c23090abd Remove placeholders 2024-03-12 09:56:07 +05:30
Manav Rathi
6efe2cd5fd Add a push trigger to register the workflow
See https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
2024-03-12 09:53:58 +05:30
Manav Rathi
4feea01879 [web] Support preview deployments 2024-03-12 09:52:34 +05:30
Neeraj Gupta
51f19cf2fd [web] Fix lint error 2024-03-12 09:33:14 +05:30
Neeraj Gupta
dbc50760af [web][passkey] Whitelist *.ente.sh redirect urls 2024-03-12 09:33:14 +05:30
Neeraj Gupta
638de0a769 [authw] Handle passkey finish redirect 2024-03-12 09:33:14 +05:30
Neeraj Gupta
0ab1c0ee89 [mob] gitignore android/.settings 2024-03-12 09:33:14 +05:30
Neeraj Gupta
cb8738287a [photosw] Enable passkey for internal users 2024-03-12 09:33:14 +05:30
ashilkn
ddedaf2d0e bump up version to v0.8.67 2024-03-12 07:51:57 +05:30
Crowdin Bot
cfa4077b5c New Crowdin translations by GitHub Action 2024-03-12 01:36:05 +00:00
Prateek Sunal
1d2de8d9b8 [mobile][photos] Home Widget fixes (#992)
## Description

- Upscale default placeholder
- Keep image ready to be rendered in home widget before adding the home
widget.
- Change the photo in home widget every time it's clicked.
- Open favourites when home widget is clicked.
- Fix multiple issues

## Tests

Did a good amount of testing.

---------

Co-authored-by: ashilkn <ashilkn99@gmail.com>
Co-authored-by: Ashil <77285023+ashilkn@users.noreply.github.com>
2024-03-12 01:39:30 +05:30
Neeraj Gupta
e843ea6669 [server] Change param type from uuid to string 2024-03-11 22:45:53 +05:30
Manav Rathi
00f45ef39d [photosd] Fix desktop build - part 2 (#1044)
The build is still not fixed, but this is a step closer to where we want
to be.
2024-03-11 18:53:09 +05:30
Manav Rathi
84926cbee1 build take 2 2024-03-11 18:52:28 +05:30
Manav Rathi
027ae1cfb9 build => resources 2024-03-11 17:37:43 +05:30
Manav Rathi
621f81355b Work towards fixing build 2024-03-11 17:37:10 +05:30
Manav Rathi
849b61c5cf Document some and fix the path 2024-03-11 17:29:39 +05:30
Manav Rathi
267ad0d11f [desktop] Fix yarn build 2024-03-11 17:04:17 +05:30
Neeraj Gupta
e272722d6e [mob][photos] Add dialog to describe clean uncat option 2024-03-11 16:52:27 +05:30
Neeraj Gupta
a73f3cc52b [mob] Fixed sorting bug in uncategorized section 2024-03-11 16:52:27 +05:30