Commit graph

23885 commits

Author SHA1 Message Date
Manav Rathi
3e9538f59e Move to @/next package 2024-02-23 18:30:08 +05:30
Manav Rathi
8d571a0f52 Remove all dependencies from the top level package.json 2024-02-23 18:19:11 +05:30
Manav Rathi
bc74951a99 Move axios to shared 2024-02-23 17:03:35 +05:30
Manav Rathi
9ac2a84465 Move is-electron to utils 2024-02-23 16:55:12 +05:30
ashilkn
064502a237 create new contacts section 2024-02-23 16:42:23 +05:30
Manav Rathi
a3f76e529a
Clarify a few things around running shared albums locally (#1652) 2024-02-23 16:41:28 +05:30
Manav Rathi
7682b34d76 The port needs to be different 2024-02-23 16:34:08 +05:30
Manav Rathi
53a92a58e3 Clarify a few things around running shared albums locally
Also, rename the environment variable to match what one would naturally type.
2024-02-23 16:23:11 +05:30
ashilkn
30b914cc5c rename widgets and remove unnecessary code 2024-02-23 15:52:37 +05:30
ashilkn
be11b398d3 use the 'earth' icon for GoToMap widget when locations are empty 2024-02-23 15:47:10 +05:30
ashilkn
06911d0395 add a location pin on the LocationRecommendation widget 2024-02-23 15:09:19 +05:30
ashilkn
767e607812 create new cta icon for location section 2024-02-23 12:59:12 +05:30
Neeraj Gupta
190875a20e
Revert "Switch to stripe for all" (#1747) 2024-02-23 12:32:43 +05:30
Neeraj Gupta
e4eb100d42 Bump version 0.8.63+583 2024-02-23 12:32:05 +05:30
Neeraj Gupta
2ce2aad6c6 Revert "Switch to stripe for all"
This reverts commit 9a1e8da500.
2024-02-23 12:31:12 +05:30
Manav Rathi
9859d4e723
Fix account creation failure (#1651) 2024-02-23 12:22:23 +05:30
Manav Rathi
69652dec76 Move to lower layer 2024-02-23 12:14:08 +05:30
Manav Rathi
02b1f4d376 Document 2024-02-23 12:11:37 +05:30
Manav Rathi
adb2c50a4a Match the libsodium version that was previously resolved
The @types package uses a caret import which is bringing a newer libsodium with
it, so add an explicit override to pin it to the version that we want.
2024-02-23 11:58:23 +05:30
Manav Rathi
316e18ceaa Try pinning to 0.7.8
We're getting `sodium.crypto_pwhash_SALTBYTES` as undefined.

https://github.com/jedisct1/libsodium.js/issues/326
2024-02-23 11:49:37 +05:30
ashilkn
dfa8c8eac3 add onTap for new GoToMap widget 2024-02-23 11:34:34 +05:30
ashilkn
b7247650fb refactor 2024-02-23 11:32:10 +05:30
Manav Rathi
6b5e3c6a5e Pin libsodium to previously used version "libsodium-wrappers": "0.7.9",
The latest one is causing password generation issues (e.g. when creating an account):

 TypeError: length cannot be null or undefined
    at f (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:18896)
    at m (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:18940)
    at Object.Lt [as randombytes_buf] (webpack-internal:///../../node_modules/libsodium-wrappers/dist/modules/libsodium-wrappers.js:1:93208)
    at Module.generateSaltToDeriveKey (webpack-internal:///../../packages/shared/crypto/internal/libsodium.ts:261:82)

We can investigate them and fix them in a subsequent PR, for now it is more
prudent to stick with the version that we've been using and upgrade more
carefully.
2024-02-23 11:24:10 +05:30
ashilkn
6105af0d0b create new GoToMap widget 2024-02-23 11:22:36 +05:30
Manav Rathi
62624770c7 Document the minimal localhost setup 2024-02-23 11:11:25 +05:30
Manav Rathi
372a9c979e
Locale changes (#1650) 2024-02-23 11:07:51 +05:30
Manav Rathi
1b6f020b23 Move to new enum 2024-02-23 10:57:27 +05:30
Manav Rathi
85aaf1d27e Deduce type from values
It is indeed possible to have a TypeScript type and an array of all of its
possible values without repeating ourselves.

The trick is - while we cannot go from types to values, we can go the other way
around. The sidetrick is - typeof array[number] gives us type of an array's
elements.

Combined, we get this pattern

    const fruits = ["banana", "orange"] as const;
    type Fruits = (typeof fruits)[number];

Refs:
- https://stackoverflow.com/questions/53154564/how-to-get-all-possible-values-of-a-union-type-to-an-array-or-the-other-way-aro
- https://www.typescriptlang.org/docs/handbook/2/indexed-access-types.html
2024-02-23 10:25:58 +05:30
Manav Rathi
1c2f7a4ba3 Document 2/3 2024-02-23 09:59:29 +05:30
Manav Rathi
fd3341f699 Move to ui package 2024-02-23 09:41:42 +05:30
Manav Rathi
f620ace655 Remove storage dependency 2024-02-22 23:01:51 +05:30
Manav Rathi
057be016d3 Consolidate into single file 2024-02-22 22:54:17 +05:30
Manav Rathi
3febb2f749
Further package cleanup and rearranging (#1649) 2024-02-22 22:50:02 +05:30
Prateek Sunal
77d60f7b3d fix: clear home widget if collection id null 2024-02-22 22:49:51 +05:30
Manav Rathi
7441883a9c Move the UI dependencies down to the ui package from the top level 2024-02-22 21:52:08 +05:30
Manav Rathi
4be92369fd Shorten 2024-02-22 20:47:41 +05:30
Manav Rathi
59326ec331 Allow inter package importing
The transpilePackage affordance provided by Next.js only kicks in when we import
our TypeScript packages into the apps. But when importing them into another
(internal) package within our monorepo, the transpilation doesn't happen, so
VSCode (rightfully) complains.

It works out fine at runtime (since the actual app code will transpile it
correctly), but this is not a good DX, and smells hacky. So for now, we avoid
our dependence on the export map by keeping the hierarchy rooted at root.
2024-02-22 20:42:45 +05:30
Manav Rathi
6018806e23 Move isDevBuild to new package 2024-02-22 20:15:43 +05:30
Prateek Sunal
18702991f1 fix: name of home widget in android 2024-02-22 18:02:50 +05:30
Neeraj Gupta
b4b934ba94
Fix: Remove files from collections owned by others while hiding selected files (#1746) 2024-02-22 17:56:30 +05:30
Neeraj Gupta
d8d4733a18
Merge branch 'main' into fix_hide 2024-02-22 17:55:56 +05:30
Neeraj Gupta
4ce6c8592e Improve assertion checks for move ops 2024-02-22 17:55:40 +05:30
Neeraj Gupta
e89d32355f [Hide] Remove files from collections owned by others 2024-02-22 17:52:16 +05:30
Prateek Sunal
45e13595ff chore: update pubspec 2024-02-22 17:45:47 +05:30
Prateek Sunal
c5ce98971f Merge remote-tracking branch 'refs/remotes/origin/homewidget' into homewidget 2024-02-22 17:42:02 +05:30
Prateek Sunal
594c993f10 fix: update to null on fail 2024-02-22 17:41:59 +05:30
Vishnu Mohandas
5bbcdeeee5
v0.8.62 (#1745) 2024-02-22 17:19:16 +05:30
vishnukvmd
7c7f76a461 v0.8.62 2024-02-22 17:16:31 +05:30
Neeraj Gupta
dac1847ffd Collection:move use named params 2024-02-22 16:25:24 +05:30
Manav Rathi
c82342b7ae Add transpilation for the ui package 2024-02-22 15:50:45 +05:30