about summary refs log tree commit diff
path: root/src/screens
Commit message (Collapse)AuthorAgeFilesLines
...
* [🐴] don't include blocked convos in unread count (#4082)Samuel Newman2024-05-171-5/+7
| | | | | | | | | | | | | * don't include blocked convos in unread count * Use moderateProfile * Handle blocked state in chat list * Fix logic formatting, add todo --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] NUX (#4062)Samuel Newman2024-05-172-3/+4
| | | | | | | | | | | | | | | | | | | | | | | * remove type assertion * DMs NUX * delete button for testing * tweak styles and copy * rm log * style tweaks * reduce amount of words * Fix not showing on first load * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Reduce header size (#4078)Samuel Newman2024-05-172-38/+49
| | | | | | | * make text input container smaller * make header much smaller * improve web styling
* [🐴] Additional tweaks to the message list (#4075)Hailey2024-05-172-85/+57
| | | | | | | | | | | | | | | | | | | * more cleanup and little fixes another nit nit small annoyance add a comment only use `scrollTo` when necessary remove now unnecessary styles * move `setHasScrolled` to `onContentSizeChanged` * account for block footer
* [🐴] 60 FPS Keyboard (#4066)Hailey2024-05-161-32/+45
| | | | | | | | | | | | | | | | | * use `scrollTo` * let the animated reaction handle keyboard scroll * no need for `requestAnimationFrame` now * 'worklet' * nit * fixes * more nits * bool check
* [🐴] Input hover and focus styles (#4064)Hailey2024-05-162-11/+36
| | | | | | | * styles for native input * web focus/hover * nit
* Fix error styles (#4063)Eric Bailey2024-05-161-9/+5
|
* don't show individual labels on own profile, only "have been placed..." (#4057)Hailey2024-05-161-2/+3
|
* [🐴] Tweak header styles (#4053)Eric Bailey2024-05-161-13/+17
| | | | | | | | | * Tweak desktop header styles * Tweak mobile * Bump icon size * Remove unused else
* [🐴] Error recovery (#4036)Eric Bailey2024-05-162-44/+36
| | | | | | | | | | | | | | | | | | | | | * Handle block state when sending messages * Handle different pending failures * Use existing profile data to handle blocks * Better cleanup, leave room for more * Attempt recover upon next send * Reset pending failure * Capture unexpected error * Gracefully handle network errors and recovery * Re-align error components and types * Include history fetching in recoverable states
* [🐴] Only scroll down one "screen" in height when foregrounding (#4027)Hailey2024-05-161-12/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maintain position after foreground * one possibility * don't overscroll when content size changes. * ignore the rule on 1 item * fix * [🐴] Pill for additional unreads when coming from background (#4043) * create a pill with some animatons * add some basic styles to the pill * make the animations reusable * bit better styling * rm logs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * import --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [🐴] Remove keyboard controller lib (#4038)Hailey2024-05-163-68/+89
| | | | | | | | | | | | | | | | | | | * remove library * implement using just reanimated * always return false for `keyboardIsOpening` on web * undo comment * handle input focus scroll more elegantly * add back minimal shell toggle on mobile web * adjust initialnumtorender * oops * nit
* [🐴] use Toggle component in settings screen (#4048)Samuel Newman2024-05-161-26/+62
| | | | | * use Toggle component * nits + notifs sounds native only
* [🐴] Tweak padding of web input (#4033)Hailey2024-05-161-3/+8
| | | | | * tweak more * nit
* [🐴] Copy tweaks (#4042)Hailey2024-05-162-2/+2
| | | | | | | | | * `notifications` -> `conversation` * `users` -> `people` * `other participants` -> `the other participant` * rename
* [🐴] Disable hover card when blocked or blocking (#4041)Hailey2024-05-161-0/+1
|
* [🐴] A few tweaks to message input on native (#4035)Hailey2024-05-161-1/+9
| | | | | | | | | * tweaks * only apply the padding on ios * use a hitslop of 10 instead * version bump
* Add push notification extensions (#4005)Hailey2024-05-151-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add wav * add sound to config * add extension to `updateExtensions.sh` * add ios source files * add a build extension * add a new module * use correct type on ios * update the build plugin * add android handler * create a patch for expo-notifications * basic android implementation * add entitlements for notifications extension * add some generic logic for ios * add age check logic * add extension to app config * remove dash * move directory * rename again * update privacy manifest * add prefs storage ios * better types * create interface for setting and getting prefs * add notifications prefs for android * add functions to module * add types to js * add prefs context * add web stub * wrap the app * fix types * more preferences for ios * add a test toggle * swap vars * update patch * fix patch error * fix typo * sigh * sigh * get stored prefs on launch * anotehr type * simplify * about finished * comment * adjust plugin * use supported file types * update NSE * futureproof ios * futureproof android * update sound file name * handle initialization * more cleanup * update js types * strict js types * set the notification channel * rm * add silent channel * add mute logic * update patch * podfile * adjust channels * fix android channel * update readme * oreo or higher * nit * don't use getValue * nit
* [🐴] Tweak list on mobile web (#3958)Hailey2024-05-153-9/+20
| | | | | | | | | | | | | * mobile web tweaks chat screen * revert a change * remove unnecessary prop * Spacing tweaks --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Better retry styling (#4032)Eric Bailey2024-05-152-8/+1
| | | | | | | | | | | | | * Pass whole object to MessageItem for clarity * Add retry to pending-message * Style send failure, retry * Group pending messages * Remove todos * Fix types with fake message
* [🐴] Show if user can be messaged in new chat search (#4021)Samuel Newman2024-05-151-9/+9
| | | | | | | | | | | | | * show if user can be messaged * allow 2 lines in handle field due to new text * cannot -> can't * rework canBeMessaged logic and move to new file --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Make more localizable (#3962)Minseo Lee2024-05-141-11/+11
| | | | | | | | | | | | | | | | | * Update ProfileList.tsx * Update NoFollowingFeed.tsx * Update LabelsOnMeDialog.tsx * Update LabelsOnMeDialog.tsx * Update NoFollowingFeed.tsx * Update SavedFeeds.tsx * Revert "Update SavedFeeds.tsx" This reverts commit db128eb27d76d27dffa87e0e70e34f603da75778.
* [🐴] change `Follows Only` to `People I Follow` (#4028)Hailey2024-05-141-1/+1
|
* [🐴] Block states, read only (#4022)Eric Bailey2024-05-143-57/+129
| | | | | | | | | | | * Refactor ChatListItem for mod state * Refactor Conversation Header for mod state * Invalidate query for list when blocking/unblocking * Remove unused prop, restore border * Add mutations, hook up profile shadow to list query, use shadow-aware query for convo (#4024)
* remove serviceurl gate (#4019)Samuel Newman2024-05-142-112/+0
|
* [🐴] show deleted account for `missing.invalid` (#4014)Hailey2024-05-142-14/+26
| | | | | * show deleted account for `missing.invalid` * sigh
* [🐴] use "Chats" instead of "Messages" (#4013)Samuel Newman2024-05-141-2/+2
| | | | | | | * use "Chats" instead of "Messages" * chats to chat * use messages in the header
* 100vh settings screen (#4015)Samuel Newman2024-05-141-1/+1
|
* [🐴] Settings screen (#3830)Samuel Newman2024-05-142-24/+70
| | | | | | | | | * create settings screen + api * update api package * use putrecord API with validate false * create new RadioGroup component
* [🐴] Message drafts (#3993)Samuel Newman2024-05-142-4/+20
| | | | | | | | | | | * drafts * don't throw if no convo ID * Remove labs package --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix dep (#4011)Eric Bailey2024-05-141-1/+1
|
* [🐴] Make status checks easier, fix load state (#4010)Eric Bailey2024-05-142-17/+15
| | | | | | | | | * Make status checks easier, fix load state * Make naming more clear * Split up types for easier re-use * Replace hacky usage
* [🐴] Chat muted state (#3988)Samuel Newman2024-05-142-184/+212
| | | | | * separate out chatlistitem and add muted icon * move bell icon to the right of the timeelapsed
* [🐴] Swap in new package, update usages (#3992)Eric Bailey2024-05-141-1/+1
| | | | | | | * Swap in new package, update usages * Remove uneccessary patch * Override type in safe place
* add a `Login` notifications request (#4006)Hailey2024-05-131-0/+3
|
* [Reduced Onboarding] Fix forward/backward nav with profile step (#3997)Eric Bailey2024-05-133-4/+34
| | | | | | | | | | | | | * WIP * Fix forward-backward to profile step * [Reduced Onboarding] Add avatar metric (#3999) * Add prop to finished event * Fix type * Use separate event
* dont send message if >1000 graphemes (#3995)Samuel Newman2024-05-132-4/+17
|
* Remove profile step from old onboarding (#3989)Eric Bailey2024-05-132-18/+5
|
* Move request for notifications permissions to `HomeReadyScreen` (#3977)Hailey2024-05-132-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cleanup the current logic * add statsig logs * implement requests for permissions where needed * oops * let `addPushTokenListener` handle the token registration * place new log event type with the other `notifications` type * place registration next to handler * more organization * only call `gate()` if permission is not yet granted * be more specific to prevent gate pollution * nit * make `token` non-optional in `registerToken` * remove `prevDid`, move `registerPushToken` into `useEffect` * keep it outside actually * nit
* Onboarding fixes (#3966)dan2024-05-111-20/+35
| | | | | | | | | | | | | | | * Ensure prefs are up-to-date before leaving onboarding * Parallelize upsertProfile call * Don't upsertProfile if no image * Don't waterfall blob upload * Fix useProfileUpdateMutation to parallelize uploads * Invalidate user profile before leaving onboarding * Ungate setting the pic
* [Reduced Onboarding] Add profile step (#3933)Eric Bailey2024-05-1111-37/+831
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Onboarding avatar creator or upload (#2860) * add screen to onboarding flow * update base * add icon * fix icon * fix after merge * create flatlist * add emoji list * add state context, pressables * select/update * add camera icon * add photo selection button * image selection * cleanup * add most needed icons * fix icon naming * add icons * export path strings for emoji * canvas drawing for web * types * move breakpoints to individual steps * create canvas * canvas working 🎉 * update state * it works! * working on both platforms * remove comments * remove log * remove unused web canvas * animate picture selection/removal * compress images on web correctly * add times icon * scrollable horizontal flatlist on web * prefetch * adjustments * add more assets * remove unused smiles * add all the icons * adjust color options * animate grow/shrink selections * change layout on tablet/desktop * better web layout * fix path * adjust web layout * organize * organize imports and cleanup styles * make generated images smaller * implement design changes use row for buttons on web use RNGH FlatList random color at start improve logic update dialog for web update dialog style on mobile some more progress create dialog simplify context start implementing design * rm change * cleanup imports * trigger a pr label * Formatting --------- Co-authored-by: Eric Bailey <git@esb.lol> (cherry picked from commit 087186e3867b0eefb11a056b0b644f5585fa16bd) * UI tweaks * Revert layout change * Gate avi upload * Support returning to profile step * Add Statsig --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Reduced Onboarding] Add new step, new state to reducer (#3931)Eric Bailey2024-05-114-76/+132
| | | | | * Add new step, new state to reducer * Don't set default feeds
* Movable following feed (#3593)Eric Bailey2024-05-115-9/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle home algo with backwards compat * Remove todo, fix pwi view * Simplify filter logic * Handle edge case * Handle home algo in FeedSourceCard * Fix handling of pinned feed if home algo is disabled * Handle home algo on ProfileFeed screen * Rename * Fix pinned feeds key * Improve perf of pinned feeds with primary algo * Update statsig API * Revert unneeded changes * Support following feed as well * Better formatting * Clarify primary algo usage * Better comment * Handle saved feed screen edge case * Restore Feeds sparkle, fix line height * Move gate call down * Filter out primary algo from feeds page * Filter dupe from Feeds screen * Simplify logic * Missing following handling * Hide primary feed setting outside exp * Revert testing change * Migrate usePinnedFeedInfos * Migrate FeedSourceCard * Migrate Feeds screen * Migrate SavedFeeds screen * Handle timeline in feed infos * Finish migrating ProfileFeed, FeedSourceCard * Migrate ProfileList * Finalize mutation hooks * Allow unsaving lists * Handle following feed on Feeds screen * Handle following on SavedFeeds * Get rid of deprecated interface usages * Handle no pinned feeds * Handle no feeds on Feeds screen * Reuse component on SavedFeeds screen * Handle no following feed * Remove primary algo references * Migrate to new plural APIs * Remove unused event * Prevent duplicate keys * Make handling much more clear * Dedupe useHeaderOffset * Filter unknown feed types at source * Use just following * Immprove key handling * Resume from last tab * Bump sdk * Revert Gemfile * Additional protection in FeedSourceCard * Fix ProfileList save/unsave handling * Translate * Translate * Match existing handling post-signup * Ensure onboarding results in correct selected feeds * Some testing tweaks on create/onboarding * Revert primary algo consderations * Remove comment * Handle default feed setting * Rm unnecessary type cast * Remove premature gate check * Remove nullable check in onPageSelecting, assume the pager checks bounds * Use null for default selected feed * Rm unrelated change * Remove the concept of __key__ I don't think this concept is consistent. It's introduced on FeedSourceInfo which is used both by pinned feeds and by useFeedSourceInfoQuery. Pinned feeds use the pinning ID there. But there is no pinning ID for useFeedSourceInfoQuery. So this means this field is sometimes one thing and sometimes some other thing. That is a decent sign that it shouldn't be on that type at all. It's not used anywhere except the desktop feed enumeration. It seems reasonable to assume there that we wouldn't want to show the same feed URL twice. (And if it does occur in the array twice, IMO we should solve that at the API level and dedupe it on read or next write.) So I think we should just use the URL in that place. (I used the descriptor, which is equivalent.) * Dedupe pinned feeds by URL on read * Filter timeline out of mergefeed sources * Put FeedDescriptor into FeedSourceInfo * Group saved info with feed for pins This removes a loop within a loop within a loop. * Fix Feeds link on native --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [🐴] Mutate data instead of invalidating queries when muting or unmuting ↵Hailey2024-05-101-16/+11
| | | | | | | | | | | | | | | | | | | | | (#3946) * mutate for mutes * mutate data for mutes * add initial data, `useConvoQuery` in `ConvoMenu` * `useInitialData` * don't use `identifier` for notifications, use `dates` instead * better implementation * simplify * simplify * fix types
* [🐴] Move `KeyboardAvoidingView` up to the main screen (#3953)Hailey2024-05-102-44/+42
|
* [🐴] Adjust messages list styles (#3945)Hailey2024-05-102-97/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * some initial tweaks * tweaks * more tweaks * tweak chat header * properly align placeholders * tweak web header * one more... * remove extra loading states from chat * limit line count for display name * Tweaks styles (#3949) * Adjust sizing * Consistent font size * Adjust header * oops * fix accessibility in list * don't use `identifier` for notifications, use `dates` instead --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Remove extra spinner states from chat screen (#3947)Hailey2024-05-102-31/+78
| | | | | | | | | | | * remove extra loading states from chat * nits * fix scrolling animation to bottom * nit * move spinner to top
* [🐴] Handle errors, improve styling (#3937)Eric Bailey2024-05-102-46/+36
| | | | | * Handle errors, improve styling * Remove old UI
* [🐴] Rich text in messages (#3926)Samuel Newman2024-05-091-3/+23
| | | | | | | | | | | | | | | | | * add facets to message * richtext messages * undo richtexttag changes * whoops, don't redetect facets * dont set color directly * shorten links and filter invalid facets * fix link shortening * pass in underline style
* Handle push notifications for DMs (#3895)Hailey2024-05-092-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add some better handling for notifications prep merge move `useNotificationsListener` into shell progress better structure only show messages notifications while using app if it is the current account progress only emit on native current chat emitter only show alerts for the current chat type add logs setup handlers * remove event emitter * just needs cleanup * oops * remove unnecessary `queryClient` param * few fixes * cleanup * nit * remove folds * remove comment * simplify if * add back invalidate * comment out other navigations for now * rename type * handle various navigation cases * push to conversation from notification * update badge in all cases except `chat-message` * ensure no duplicate notifications * rm unused `animationOnReplace` * revert to using `goBack` in the conversation header * add todo comment