Commit graph

1405 commits

Author SHA1 Message Date
Manav Rathi
e07559c8da
Fix oopsie 2024-04-13 18:41:47 +05:30
Manav Rathi
64231c73f1
[web] Add ESLint to enforce HMR how vite likes it
Configuration changes taken from the vite starter (react-ts).

From the vite docs (https://github.com/vitejs/vite-plugin-react-swc?tab=readme-ov-file#consistent-components-exports)

> For React refresh to work correctly, your file should only export React components.
>
> If an incompatible change in exports is found, the module will be invalidated.
> To make it easier to export simple constants alongside your component the module
> is only invalidated when their value changes.

While we're not currently using vite for our main apps, it would be worthwhile
to write code in a way that a future migration to it is painless if needed.

About the what and the why, the Gatsby docs are illuminating:
https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works

Some other refs:
- https://github.com/ArnaudBarre/eslint-plugin-react-refresh
- https://github.com/vitejs/vite/discussions/4577#discussioncomment-1161007
- https://github.com/vitejs/vite-plugin-react/issues/34
2024-04-13 18:38:24 +05:30
Manav Rathi
4f764dc77c
Consolidate constants 2024-04-13 18:27:40 +05:30
Manav Rathi
63a2ca7606
Fix lint 2024-04-13 18:24:57 +05:30
Manav Rathi
eb995f4354
Split 2024-04-13 18:20:40 +05:30
Manav Rathi
37cb2aaaf9
Refactor 2024-04-13 18:09:32 +05:30
Manav Rathi
1ffa905f99
Inline 2 2024-04-13 17:00:50 +05:30
Manav Rathi
07fa5cb83d
Inline 2 2024-04-13 16:59:47 +05:30
Manav Rathi
c90ba63aad
Inline 1 2024-04-13 16:57:04 +05:30
Manav Rathi
284d7920b3
Inline 2 2024-04-13 16:54:26 +05:30
Manav Rathi
ca114a467d
Inline 1 2024-04-13 16:50:23 +05:30
Manav Rathi
f7e961e86b
Inline 2024-04-13 16:44:55 +05:30
Manav Rathi
7deb0dca8e
Fix lint 2024-04-13 13:17:42 +05:30
Manav Rathi
f2d3ec74a1
Granular migration 2024-04-13 13:12:16 +05:30
Manav Rathi
0f3b28a425
Revert "Recreate ML db"
This partially reverts commit 95a0e80c5b.
2024-04-13 12:56:21 +05:30
Manav Rathi
95a0e80c5b
Recreate ML db 2024-04-13 12:46:48 +05:30
Manav Rathi
b50f8a8212
Promise 2024-04-13 10:35:20 +05:30
Manav Rathi
edd9c94d73
URL => id, which is what it is 2024-04-13 10:32:40 +05:30
Manav Rathi
d0dc8b1320
Dedup 2024-04-13 10:22:24 +05:30
Manav Rathi
c0d95edac8
Inline 2 2024-04-13 10:19:16 +05:30
Manav Rathi
f7ba28d1fb
Inline 1 2024-04-13 10:17:58 +05:30
Manav Rathi
eef9bf1f26
Inline 2024-04-13 10:16:08 +05:30
Manav Rathi
75e693186a
Inline 2024-04-13 10:14:35 +05:30
Manav Rathi
02abe24213
Detect ML search status 2024-04-13 10:00:22 +05:30
Manav Rathi
5082124aa5
Cleanup 2024-04-13 09:44:06 +05:30
Manav Rathi
997c74d064
res2 2024-04-13 09:39:29 +05:30
Manav Rathi
9cf57c847e
Rely on global uncaught handler to log 2024-04-13 09:34:49 +05:30
Manav Rathi
9aaf6098b7
Use new APIs for file 2024-04-13 09:08:13 +05:30
Manav Rathi
4055f02a1d
Cleaner 2024-04-13 08:52:37 +05:30
Manav Rathi
b32c13fe31
thumb2 2024-04-13 08:48:39 +05:30
Manav Rathi
c52fd4383c
Nicer delete 2024-04-13 08:43:01 +05:30
Manav Rathi
a86cdb1f1e
Interface 2024-04-13 08:40:08 +05:30
Manav Rathi
999f7e45c9
Remove unused param 2024-04-13 08:34:57 +05:30
Manav Rathi
e8b779745d
put2 2024-04-13 08:33:13 +05:30
Manav Rathi
f2aee30f7c
get 2024-04-13 08:18:11 +05:30
Manav Rathi
db96a0eb1b
get 2024-04-13 08:12:38 +05:30
Manav Rathi
6d1f8b4728
Blobs it is 2024-04-13 08:04:43 +05:30
Manav Rathi
acedbdbe7d
Note 2024-04-13 07:42:24 +05:30
Manav Rathi
6a3f4baed3
Enhance 2024-04-13 07:30:32 +05:30
Manav Rathi
6cd795e29c
Create alternate code path 2024-04-13 07:19:28 +05:30
Manav Rathi
b5096b02da
Remove unused knob
Ref:
- https://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties
2024-04-13 06:56:46 +05:30
Manav Rathi
3499e47c88
Tweak 2024-04-13 06:47:43 +05:30
Manav Rathi
5ff01c40d8
poc implementation 2024-04-12 21:29:05 +05:30
Manav Rathi
295c0aa82e
Splinter 2024-04-12 21:12:37 +05:30
Manav Rathi
871a0e83cf
Fix 2024-04-12 20:59:15 +05:30
Manav Rathi
a56cf55ffa
Remove indirection 2024-04-12 20:58:00 +05:30
Manav Rathi
b056cf7f56
Move to newer shared package 2024-04-12 20:55:07 +05:30
Manav Rathi
a2a8be3b19
Scaffold the split 2024-04-12 20:52:33 +05:30
Manav Rathi
41472eb87d
Document and structure more 2024-04-12 20:24:48 +05:30
Manav Rathi
c691ad2ac1
Document the plan 2024-04-12 20:11:44 +05:30