Commit graph

24985 commits

Author SHA1 Message Date
Manav Rathi
f10f751a2f
Inline local storage calls
The methods are trivial, and we cannot centralize the keys since they will be
different for different apps. So an abstraction for this is not beneficial.

Also move the next specific dev build check to @/next
2024-04-03 14:21:11 +05:30
Manav Rathi
d28daece8a
ignorePatters seems to be inherited (as we wished) when extending 2024-04-03 13:48:41 +05:30
Manav Rathi
24bce96d71
Shorten 2024-04-03 13:44:30 +05:30
Manav Rathi
ad6dea2ecb
prettier markdown 2024-04-03 13:39:44 +05:30
Manav Rathi
212dcfb88a
Tinker 2024-04-03 13:32:05 +05:30
Manav Rathi
a689aca4a6
Remove the eslint stuff from docs
(trying to remove the eslint-disables throughout)
2024-04-03 13:26:46 +05:30
Manav Rathi
e2fd88bff0
Remove (possibly) unnecessary tsconfigRootDir
Let's see what breaks
2024-04-03 13:15:12 +05:30
Manav Rathi
764b6bf2f3
Move react setup to react specific file 2024-04-03 13:02:09 +05:30
Manav Rathi
ca688d0d46
[server] Add a notice that minio is only for getting started (#1299)
From our Discord, someone commented

> if minio's cautions about Single-Node, Single-Drive are to be taken
seriously:
>
> "SNSD deployments use a zero-parity erasure coded backend that
provides no
added reliability or availability beyond what the underlying storage
volume
  implements. These deployments are best suited for local testing and
evaluation, or for small-scale data workloads that do not have
availability or
  performance requirements."

MinIO was never meant as a production replacement, it was only to make
it easy
for people to get started. So add a notice in the docs re this.
2024-04-03 10:04:20 +05:30
Manav Rathi
885308471f
[server] Add a notice that minio is only for getting started
From our Discord, someone commented

> if minio's cautions about Single-Node, Single-Drive are to be taken seriously:
>
> "SNSD deployments use a zero-parity erasure coded backend that provides no
  added reliability or availability beyond what the underlying storage volume
  implements. These deployments are best suited for local testing and
  evaluation, or for small-scale data workloads that do not have availability or
  performance requirements."

MinIO was never meant as a production replacement, it was only to make it easy
for people to get started. So add a notice in the docs re this.
2024-04-03 10:01:48 +05:30
Vishnu Mohandas
125f7bfece
Update export docs 2024-04-03 08:52:34 +05:30
Neeraj Gupta
011aee20d5
[server] Fix handling of redundant auth update (#1298)
## Description
When client tries to send update request with same data, the actual db
update doesn't happen. This was resulting in 5xx error.

## Tests
2024-04-03 07:13:44 +05:30
Neeraj Gupta
85778bcdaa [server] Fix handling of redundant auth update 2024-04-03 07:05:03 +05:30
Manav Rathi
43e97d225e
[web] Restructure shared package layouts (#1294)
- Merge @/ui into @/next
- Restructure eslint config
2024-04-02 20:55:05 +05:30
Manav Rathi
b3a86874db
yarn.lock 2024-04-02 20:47:35 +05:30
Manav Rathi
5c1ed5be8f
Restructure eslint config 2024-04-02 20:44:57 +05:30
Manav Rathi
14fde54d87
Not really 2024-04-02 20:04:23 +05:30
Manav Rathi
26b35cec9e
Merge @/ui into @/next 2024-04-02 19:58:42 +05:30
Manav Rathi
6213628aee
[web] Prefer .local files for local only configuration (#1280)
Refs: https://vitejs.dev/guide/env-and-mode.html
2024-04-02 17:22:32 +05:30
Manav Rathi
a7625cd83d
[web] Enable Russian (#1288)
The translation percentage of Russian in crowdin is now 100%, it's time
to enable it as an option in the UI.

A big thank you to the translators ❤️
2024-04-02 17:22:15 +05:30
Manav Rathi
cc90dd7ba5
[web] Enable Russian
The translation percentage of Russian in crowdin is now 100%, it's time to
enable it as an option in the UI.

A big thank you to the translators.
2024-04-02 17:16:33 +05:30
Manav Rathi
b3630f9543
[desktop] Prevent the desktop app from getting stuck on viewing openstreetmap info (#1287)
Open the link in a new tab. This prevents the desktop app from getting
into a state where the user cannot navigate back.

Tested on the web app and desktop app.
2024-04-02 17:10:16 +05:30
Manav Rathi
9cb289e002
[desktop] Prevent the desktop app from getting stuck on viewing openstreetmap info
Open the link in a new tab. This prevents the desktop app from getting into a
state where the user cannot navigate back.
2024-04-02 17:05:23 +05:30
Ashil
1800ad0a1f
[Mobile][Photos] Bump up version to v0.8.74 (#1284) 2024-04-02 17:02:01 +05:30
Manav Rathi
3230b9275e
[web] New translations (#1281)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-04-02 17:00:20 +05:30
Crowdin Bot
ce5627f04c New Crowdin translations by GitHub Action 2024-04-02 11:28:47 +00:00
Manav Rathi
8dd7c100af
[web] Make the cast link clickable (#1286)
Tested locally.
2024-04-02 16:53:03 +05:30
Manav Rathi
2e7dcc6bc2
Make the cast link clickable 2024-04-02 16:51:27 +05:30
Manav Rathi
0e1bdfe07e
Support arbitrary ReactNodes as title 2024-04-02 14:38:37 +05:30
Vishnu Mohandas
1e106d707f
[mobile][photos] Fix colours in loading screen on light theme when viewing photos (#1283)
## Description

Before


https://github.com/ente-io/ente/assets/77285023/75304321-1fa4-4d61-9ad1-cc87ade62f92

After



https://github.com/ente-io/ente/assets/77285023/55b204b2-773c-42db-a03c-c9879f33548b
2024-04-02 14:01:41 +05:30
ashilkn
0053e814c8 nit: remove unnecessary clipping 2024-04-02 13:49:41 +05:30
ashilkn
53184da7fb fix: loading icon's color in light theme when viewing images 2024-04-02 13:49:05 +05:30
ashilkn
165bcb5c6e fix: white bg for loading state when viewing images, turned it to black.
when swiping on light theme, this comes up a 'white flash' on the right which looked odd. We use black bg when viewing images.
2024-04-02 13:47:57 +05:30
Vishnu Mohandas
d6316a1724
[mobile][photos] Prepare for release v0.8.73 (#1278) 2024-04-02 09:06:45 +05:30
Manav Rathi
b95fc54adb
[web] Prefer .local files for local only configuration
Refs:
https://vitejs.dev/guide/env-and-mode.html
2024-04-01 19:59:02 +05:30
ashilkn
bc0a453cbc Merge branch 'main' into prepare_for_release_v0.8.73 2024-04-01 18:41:24 +05:30
ashilkn
166e9ad1bf Update change log 2024-04-01 18:41:21 +05:30
ashilkn
841921a732 bump up version to v0.8.73 2024-04-01 18:38:17 +05:30
Vishnu Mohandas
769da989c4
[mobile][photos] Do not upload files if ACCESS_MEDIA_LOCATION is not granted (#1275)
## Tests

Tested with and without granting `ACCESS_MEDIA_LOCATION`.
2024-04-01 18:28:37 +05:30
Vishnu Mohandas
3e917bd855
[photos][mobile] Add support for viewing HEIC images with proXDR (#1171)
## Description

New Oneplus devices have a "ProXDR" feature when viewing images. These
images (when in HEIC format) decode fine on devices that supports
ProXDR, but fails to decode on other devices.

So if decoding fails, we convert it to a JPEG and use that image for
viewing it.

## Tests

- [x] Tries converting to jpeg only if decoding fails
- [x] If converting also fails, the behaviour remains the same as before
when decoding fails.
2024-04-01 18:28:28 +05:30
Manav Rathi
7f1730b56c
[web] Fix and standardize MUI / emotion imports (#1277)
- Always import from `@mui/material`
- Component selector API doesn't work, live with it and document it
2024-04-01 17:18:05 +05:30
Manav Rathi
25e762ba57
Remove mui from list of transpiled packages
- I can't see this mentioned anywhere in the docs
- Removing it didn't break anything dev / preview
2024-04-01 17:13:06 +05:30
Manav Rathi
d5f294980e
Remove use of emotion from payments 2024-04-01 17:08:54 +05:30
Manav Rathi
1e410a82f2
Remove stray use of @mui/system 2024-04-01 17:05:05 +05:30
ashilkn
d013519655 refactor 2024-04-01 16:59:42 +05:30
Manav Rathi
3b3d314f9c
Remove stale import from styled-engine 2024-04-01 16:52:57 +05:30
ashilkn
855d362cca Merge branch 'main' into handle_proxdr_image_viewing 2024-04-01 16:43:19 +05:30
Manav Rathi
eced463f6f
Investigate and explain why component selectors don't work with Next vanilla
Refs:
- https://github.com/mui/material-ui/issues/27380#issuecomment-928973157
- https://codesandbox.io/s/hopeful-browser-4q17t5?file=/README.md
- https://mui.com/system/styled/#how-to-use-components-selector-api
- https://github.com/vercel/next.js/issues/46973
2024-04-01 16:43:10 +05:30
Ashil
f8febe12df
[mobile][photos] Reupload files with missing GPS data (#1263)
## Description

- Fixes corrupt files (missing GPS data) that were uploaded due to [this
issue](https://github.com/ente-io/ente/pull/1261)
- Refactor

## Tests

Tested and working
- Uploaded two file from a build that has missing permission for
`ACCESS_MEDIA_LOCATION` and GPS data is missing.
- Created a new build with changes in this PR.
- Deleted the file from device. 
- Remote file has GPS data when checked from file info.

---------

Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2024-04-01 16:41:33 +05:30
ashilkn
0c44d1b789 remove unneccesary check 2024-04-01 16:18:40 +05:30