Commit Graph

686 Commits

Author SHA1 Message Date
Hailey b283fbd484 UI tweaks and nits for starter packs (#4548)
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
fix truncation on native (#4575)
2024-06-19 15:09:00 -07:00
Hailey b4b6c5dde8 Add report dialog to starter pack screen (#4546) 2024-06-19 14:53:52 -07:00
Hailey cc6edaa17b tweak routes for edit 2024-06-18 21:43:23 -07:00
Hailey 8b85546f2e SP state cleanup (#4569) 2024-06-18 18:42:22 -07:00
Hailey 156de402b8 Merge branch 'main' into starter-packs 2024-06-18 18:26:59 -07:00
Samuel Newman 3dc34be929 GIF previews in notifications (#4447)
* gifs in notifications

* remove try/catch

* Limit try/catch scope

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-19 03:09:06 +03:00
Hailey d6116e9ed4 Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-18 15:32:38 -07:00
Eric Bailey 32b4063185 Verify email reminders (#4510)
* Clarify intent

* Increase email reminder period to once per day

* Fallback

* Snooze immediately after account creation, prevent showing right after signup

* Fix e2e test exports

* Remove redundant check

* Better simple date generation

* Replace in DateField

* Use non-string comparison

* Revert change to unrelated code

* Also parse

* Remove side effect
2024-06-18 17:21:34 -05:00
Hailey 160bb42167 merge main 2024-06-18 12:11:32 -07:00
Paul Frazee d6ce16d15a Implement thread locking (#4545)
* Add the ability to edit threadgates

* Fix bottom border on mobile

* Refresh thread after threadgate edit
2024-06-18 12:07:56 -07:00
Eric Bailey 983d85384b Force callers of getTimeAgo to pass in the value for "now" (#4560)
* Remove icky hook for now

* Force callers of getTimeAgo to pass in the 'now' value

* Update usage in Newskie dialog
2024-06-18 21:50:07 +03:00
Samuel Newman 5f5d845053 Server-side thread mutes (#4518)
* update atproto/api

* move thread mutes to server side

* rm log

* move muted threads provider to inside did key

* use map instead of object
2024-06-18 21:48:34 +03: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
Hailey 6e470fbe80 pluralize months 2024-06-17 19:33:32 -07:00
Hailey 2c59122a05 parallelize 2024-06-17 19:25:38 -07:00
Hailey 6073a5c4ab Merge remote-tracking branch 'origin/main' into starter-packs 2024-06-17 16:41:05 -07:00
Hailey 90f299f6e2 extract functions and add tests 2024-06-17 16:28:17 -07: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 af124cc8b8 add android handling 2024-06-16 21:24:50 -07:00
Hailey 06b64b65b6 add create/delete logs 2024-06-16 01:12:13 -07:00
Hailey 7182812a31 add follow all log 2024-06-16 01:05:02 -07:00
Hailey 2ab3c039ab log shares of starter packs 2024-06-16 01:02:42 -07:00
Hailey 9a5e0185ab use the correct link for sharing 2024-06-15 17:43:33 -07:00
Hailey 3650a329aa Merge branch 'main' into starter-packs 2024-06-13 18:09:34 -07:00
Hailey f8cbbbb62f fix type errors 2024-06-13 17:47:11 -07:00
Samuel Newman bdeac28d74 Try/catch URL parsing of referrer (#4511) 2024-06-13 15:06:22 -07:00
Hailey d9066a6beb add document.referrer to statsig custom (#4509)
* add referrer to statsig custom

dont include referrer if hostname is bsky.app

save

add `document.referrer` to statsig custom

* add a hostname field

* account for ssr

* account for ssr
2024-06-13 23:31:19 +02:00
Hailey fcb4ec153c pluralize 2024-06-12 20:05:46 -07:00
Hailey d106ba45d3 automatically generate a starter pack 2024-06-12 15:31:46 -07:00
Hailey 62211d082b make linear gradient background easily reusable 2024-06-12 11:47:23 -07:00
Hailey 2df0e2c706 rm navigation 2024-06-12 10:19:13 -07:00
Hailey 7d8199771e merge main 2024-06-11 23:42:59 -07:00
Eric Bailey bb0a6a4b6c Add KnownFollowers component to standard profile header (#4420)
* Add KnownFollowers component to standard profile header

* Prep for known followers screen

* Add known followers screen

* Tighten space

* Add pressed state

* Edit title

* Vertically center

* Don't show if no known followers

* Bump sdk

* Use actual followers.length to show

* Updates to show logic, space

* Prevent fresh data from applying to cached screens

* Tighten space

* Better label

* Oxford comma

* Fix count logic

* Add bskyweb route

* Useless ternary

* Minor spacing tweak

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2024-06-11 15:42:28 -07:00
Eric Bailey 4b6609d48b Move feeds screen into common navigator, handle usages (#4365)
* Move feeds screen into common navigator, handle usages

* Add link to Feeds from home screen (#4366)

* Add link to feeds to home screen header

* Center logo

* Replace icons

* Tweak spacing

* Tweak spacing

* Swap icon, sizing

* Buttonize, size

* Make menu same alignment on all screens

* Remove FeedsTab support, enable drawer swipe on MessagesTab

* Add note

* Vertically align header

* Swap in Pin

* Use hashtag icon

* Remove png

* Fix reference

* Ensure alignment with home and other screens
2024-06-11 11:08:06 -07:00
Hailey fac5f6cdac register the push token after request has been approved on android (#4481)
* register the push token after request has been approved on android

* use a `0` string for badge count

* Revert "use a `0` string for badge count"

This reverts commit efac398618.

* temporary fix
2024-06-11 10:28:48 -07:00
Hailey c73ad43a80 stop using addPushTokenListener (#4467)
* stop using push token listener

* cleanup the hack

* add a comment

* remove test code

* Fix patch

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-11 03:16:21 +02:00
Hailey c05d5aa38c merge main 2024-06-10 13:20:05 -07:00
Hailey f938fb8bd5 log event when following from starter pack list 2024-06-10 13:16:47 -07:00
Hailey f3356bc11c add event context 2024-06-10 13:02:05 -07:00
Hailey 5dd195bcb7 Check canAskAgain for notification permissions (#4460) 2024-06-10 12:14:00 -07:00
Hailey 60c3bc7677 merge main 2024-06-10 11:16:25 -07:00
Hailey f5df70b9f2 add long version of ago 2024-06-10 10:39:53 -07:00
dan 620ab88713 Ungate mobile web notification badge (#4459) 2024-06-10 18:17:26 +02:00
Francesco Lodovici b688da8d58 Fix (#4430): Use separate hooks for shell mode animated styles (#4451)
* Fix (#4430): Use separate hooks for shell mode animated styles

* Consolidate in one file

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-06-10 17:19:28 +02:00
Hailey 9e782626e8 log even on signup 2024-06-10 00:46:40 -07:00
Hailey 3da63d9481 pass starter pack in for editing 2024-06-09 16:47:45 -07:00
Hailey 1c11bc9879 Merge branch 'main' into starter-packs 2024-06-07 15:21:34 -07:00
Hailey 480a40862f Use the proper logic on iOS to increment the badge (#4233) 2024-06-07 15:15:33 -07:00
Hailey 81ac943450 use real data in landing 2024-06-07 01:00:00 -07:00