Commit Graph

4233 Commits

Author SHA1 Message Date
Hailey 8ca6c96d98 fix name clash 2024-06-18 10:40:22 -07:00
Hailey 2a7ad32dfa use new time ago hook 2024-06-18 09:27:21 -07:00
Hailey ab71f13d63 merge in main 2024-06-18 09:21:34 -07:00
Eric Bailey 443beda741 Add useGetTimeAgo and utils (#4556)
* Create a testable version of ago() and re-enable the disabled test (#4364)

* Enable the test of ago()

* Use test cases

This puts the input and the expected values next to each other.

* Create dateDiff function

This is a copy of ago(), but with the ability to specify the second date instead of using Date.now().

* Let ago() use dateDiff()

* Move constants close to usage

* Test dateDiff instead of ago

This makes it possible to test the dates without being forced to rely on what the current date is.

The commented out tests do not yet pass. This is fixed in later commits.

* Update dateDiff and enable the remaining tests

* Split up tests, use date-fns as helpers

* Remove old test

* Add long format

* Add hook

* Migrate to hooks

* Delete old code

* Or equal to

* Update comment

---------

Co-authored-by: Jan Aagaard <jan@aagaard.net>
2024-06-18 10:55:02 -05:00
dan 08cfb09589 Unconditionally polyfill Intl.PluralRules for native (#4554)
* Revert "Fix Android startup perf regression (#4544)"

This reverts commit e6213d7aa5.

* Force polyfill
2024-06-18 17:27:40 +03:00
dan f142339e06 Dedupe Zod installation (#4551) 2024-06-18 17:20:54 +03:00
dan e30575c0dc Use exact imports for icons (#4549)
* Use exact imports for icons

* Add a lint rule
2024-06-18 15:37:08 +03:00
dan e6213d7aa5 Fix Android startup perf regression (#4544) 2024-06-18 08:23:41 +03:00
Hailey a16d350aeb tweaks 2024-06-17 20:35:40 -07:00
Hailey cf3442b751 oops again 2024-06-17 20:31:41 -07:00
Hailey f84aa3c24c oops 2024-06-17 20:30:41 -07:00
Hailey e7f0c25559 add in moderation to landing screen 2024-06-17 20:23:41 -07:00
Hailey 6ecb0d2342 refactor list card items, apply moderation 2024-06-17 20:16:44 -07:00
Hailey 6e470fbe80 pluralize months 2024-06-17 19:33:32 -07:00
Hailey 513df19390 rev change 2024-06-17 19:33:16 -07:00
Hailey fee8f917b1 pluralize months 2024-06-17 19:31:06 -07:00
Hailey 2c59122a05 parallelize 2024-06-17 19:25:38 -07:00
Hailey 9ccfec15e8 cleanup 2024-06-17 19:23:04 -07:00
Hailey 3e203bc458 simplify some things 2024-06-17 18:57:18 -07:00
Hailey e9fafaf744 tweak 2024-06-17 17:18:16 -07:00
Hailey c753da7bbc oops 2024-06-17 17:13:24 -07:00
Hailey 8631797666 lint errors 2024-06-17 16:47:39 -07:00
Hailey 6073a5c4ab Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-17 16:41:05 -07:00
Hailey df985b6583 rm unused prop 2024-06-17 16:39:05 -07:00
Hailey ecd882ab7d nit comment 2024-06-17 16:37:40 -07:00
Hailey 3697c72f8c revert unused change to UserAvatar 2024-06-17 16:37:31 -07:00
Hailey b761f48ed8 use existing gradient 2024-06-17 16:34:34 -07:00
Hailey 680926e8f6 rm debug 2024-06-17 16:34:26 -07:00
Hailey 90f299f6e2 extract functions and add tests 2024-06-17 16:28:17 -07:00
Hailey e62f029152 align web/native 2024-06-17 15:51:54 -07:00
Hailey 5240582f73 native tweaks 2024-06-17 15:39:41 -07:00
Hailey b5b8bf5b1e rm setting createdAt 2024-06-17 15:27:46 -07:00
Hailey 95011724de prevent multiple runs of useStarterPackEntry 2024-06-17 15:17:18 -07:00
Hailey f980847238 update site association 2024-06-17 15:14:35 -07:00
Hailey 5b901540da what the flying fuck 2024-06-17 14:22:38 -07:00
Hailey fc976a1272 fix app icon 2024-06-17 14:17:36 -07:00
Hailey a5adb0bc44 a bunch of changes 2024-06-17 14:03:12 -07:00
Hailey 590b7f734a add icon 2024-06-17 12:54:36 -07:00
Hailey 3ff9717f98 embed the app clip 2024-06-17 12:30:46 -07:00
Eric Bailey 077da08309 Explore feed cards (#4521)
* Replace FeedSourceCard on Explore page

(cherry picked from commit e7e9787bfaa9368bfaeaaa4ca144ab77b438219c)

* Replace FeedSourceCard on Search page

(cherry picked from commit ac47aade7622d359eee9509763cda666d964d8a3)
2024-06-17 13:56:11 -05:00
Hailey 4076d3db04 update 2024-06-17 11:36:42 -07:00
Eric Bailey 7e88d0d7a6 Onboarding fixes (#4508)
* Add extra padding to bottom of profile step

* Make profile pic gen higher res
2024-06-17 13:21:35 -05:00
Eric Bailey 332524b7de Add native_pwi_disabled feature gate experiment (#4507)
* Add native_pwi_disabled feature gate experiment

* Use const
2024-06-17 13:21:09 -05:00
Hailey c5cdb1033c remove dev gate 2024-06-17 11:11:06 -07:00
Hailey 59443839d7 update go server 2024-06-17 11:07:28 -07:00
Hailey 7253b0226c add association 2024-06-17 10:57:49 -07:00
Hailey 8d2223c78f testing config 2024-06-17 10:33:49 -07:00
Hailey 59b0769de2 Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-17 10:31:57 -07:00
Hailey 49dd07d600 add appclip meta 2024-06-17 10:23:06 -07:00
Hailey 18d58d13fe add appclip associated domain 2024-06-17 10:20:07 -07:00