about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [🐴] Simplify message passing, cleanup (#3952)Eric Bailey2024-05-103-87/+85
| | | | | * Simplify message passing * Setup/teardown events
* [🐴] Report message dialog (#3941)Samuel Newman2024-05-106-15/+309
| | | | | | | | | | | | | | | * message report dialog * report chat prompt * typo * 100% height sheet on android * messages-specific report options * restore unwanted sexual content * chat -> conversation
* remove 12hr time (#3954)Samuel Newman2024-05-101-2/+0
|
* Add icons to drawer (#3956)Eric Bailey2024-05-101-55/+41
|
* bump max width of message (#3955)Hailey2024-05-102-2/+2
|
* [🐴] Mutate data instead of invalidating queries when muting or unmuting ↵Hailey2024-05-105-97/+92
| | | | | | | | | | | | | | | | | | | | | (#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
* [🐴] Change up icons (#3938)Eric Bailey2024-05-1014-266/+234
| | | | | | | | | | | | | * Swap for chat icon * Replace icons in left nav * Replace icons in bottom bars * Ditch feeds, drop size * Fine tune * Swap bell icon, improve alignment and size
* [🐴] Clean up after deleting message (#3950)Eric Bailey2024-05-102-8/+6
| | | | | * Clean up after removal * Remove console
* [🐴] Move `KeyboardAvoidingView` up to the main screen (#3953)Hailey2024-05-102-44/+42
|
* [🐴] Adjust messages list styles (#3945)Hailey2024-05-103-100/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-103-32/+79
| | | | | | | | | | | * 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-104-78/+96
| | | | | * Handle errors, improve styling * Remove old UI
* [Session] Restore emailAuthFactor and emailConfirmed from last session (#3939)dan2024-05-091-4/+7
|
* Add retries to all handlers (#3935)Eric Bailey2024-05-092-73/+90
|
* [🐴] Rich text in messages (#3926)Samuel Newman2024-05-095-20/+75
| | | | | | | | | | | | | | | | | * 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
* lowcase ALT text (#3934)Samuel Newman2024-05-091-1/+1
|
* Handle push notifications for DMs (#3895)Hailey2024-05-099-109/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add gate, a:a swap onboarding state (#3930)Eric Bailey2024-05-093-9/+154
|
* [🐴] Add hover context menu for convo list on web (#3923)Hailey2024-05-094-43/+71
| | | | | | | | | | | | | | | | | | | | | * remove some unnecessary props * add hover trigger on web for convo list * lint * use `UserAvatar` to not affect accessibility * remove extra wrapper * add `label` * always show on mobile * adjust size of dots * make the message trigger dots the same size * ❓
* [🐴] Skeleton header (#3921)Samuel Newman2024-05-081-22/+45
|
* [🐴] Integrate event bus (#3915)Eric Bailey2024-05-085-126/+120
| | | | | | | | | | | | | * Integrate event bus * Fixes * Move events mgmt into Convo class * Clean up poll interval updates * Remove unused * Remove annoying log
* [🐴] Refactor event bus (#3919)Eric Bailey2024-05-084-257/+151
| | | | | * Refactor to singleton class outside react * Fix retry, remove debug logs
* Replace updateCurrentAccount() with refreshSession() (#3910)dan2024-05-089-257/+15
| | | Replace updateCurrentAccount() with resumeSession()
* [🐴] Adjust press and hold delay on messages (#3918)Hailey2024-05-081-5/+7
| | | | | * adjust press and hold delay on messages * adjust hit slop
* add sideborders prop (#3920)Samuel Newman2024-05-083-1/+5
|
* actually optimistic mark as read (#3917)Samuel Newman2024-05-082-5/+9
|
* Move to requestPollInterval handling (#3914)Eric Bailey2024-05-082-23/+43
|
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-085-8/+51
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Reorg convo files (#3909)Eric Bailey2024-05-078-278/+296
| | | | | * Remove unused prop * Reorganize
* Add session reducer tests (#3860)dan2024-05-082-0/+1644
|
* [Session] Code cleanup (#3854)dan2024-05-0811-503/+554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split utils into files * Move reducer to another file * Write types explicitly * Remove unnnecessary check * Move things around a bit * Move more stuff into agent factories * Move more stuff into agent * Fix gates await * Clarify comments * Enforce more via types * Nit * initSession -> resumeSession * Protect against races * Make agent opaque to reducer * Check using plain condition
* [🐴] Unread messages badge (#3901)Samuel Newman2024-05-075-8/+162
| | | | | | | | | | | | | | | | | | | | | * add badge * move stringify logic to hook * add mutation hooks * optimistic mark convo as read * don't count muted chats * Integrate new context * Integrate mark unread mutation * Remove unused edit --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Session] Remove global agent (#3852)dan2024-05-085-355/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove logs and outdated comments * Move side effect upwards * Pull refreshedAccount next to usage * Simplify account refresh logic * Extract setupPublicAgentState() * Collapse setStates into one * Ignore events from stale agents * Use agent from state * Remove clearCurrentAccount * Move state to a reducer * Remove global agent * Fix stale agent reference in create flow * Proceed to onboarding even if setting date fails --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Handle invalid service URLs (#3908)Eric Bailey2024-05-072-3/+19
|
* [🐴] Integrate global event bus (#3904)Eric Bailey2024-05-076-31/+112
| | | | | * Conditionally run global event bus * Add current convo id context, bundle providers
* Remove messages provider (#3902)Eric Bailey2024-05-072-41/+35
|
* [🐴] State transitions (#3880)Eric Bailey2024-05-074-208/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle init/resume/suspend/background and polling * Add debug and temp guard * Make state transitions sync * Make init sync also * Checkpoint: confusing but working state machine * Reducer-esque * Remove poll events * Guard fetchConvo (cherry picked from commit 8385579d31500bb4bfb60afeecdc1eb3ddd7e747) * Clean up polling, make sync (cherry picked from commit 7f75cd04c3bf81c94662785748698640a84bef51) * Update history handling (cherry picked from commit b82b552ba4040adf7ead2377541132a386964ff8) * Check for screen focus in app state listener * Get rid of ad-hoc status checks
* [🐴] Global event mgmt (#3897)Eric Bailey2024-05-075-41/+686
| | | | | | | | | | | | | * Add global event bus for messages logs * Add rev to state * Better handle error * Clean up polling, add backgrounding * Add trailConvo method * Extend polling until we're ready for this
* Run intl:extractPaul Frazee2024-05-0717-8276/+14285
|
* Remove unnecessary Trans tags (#3888)Minseo Lee2024-05-072-14/+10
|
* [GIFs] Restore default alt text (#3893)Samuel Newman2024-05-074-20/+84
| | | | | | | | | | | | | | | | | | | | | | | * restore default alt text * factor out gif alt logic + enable require alt text setting * rm console.log * don't prefill input + esc handling * typo * Nits * shorten user alt prefix * Remove unnecessary condition, rename for clarity * Add comment --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Update Feed.tsx (#3715)Minseo Lee2024-05-071-1/+5
|
* Update Feeds.tsx (#3719)Minseo Lee2024-05-071-1/+1
|
* Update Indonesian translation (#3891)kodebanget2024-05-071-1273/+449
| | | | | | | | | * Update Indonesian translation * Update id/messages.po --------- Co-authored-by: Indonesian <github-actions@github.com>
* Update WhoCanReply.tsx (#3720)Minseo Lee2024-05-071-6/+8
|
* fix bad bool check in action (#3885)Hailey2024-05-061-2/+1
| | | | | | | * fix bad bool check in action * add `fetch-depth` so we can get the commit hash * `.env` should be in `.easignore` 🙃
* Finnish translation update (#3755)Jan-Olof Eriksson2024-05-061-87/+49
| | | | | | | | | | | | | * Update messages.po Translated new strings (GIF's etc) and cleaned up deprecated ones. * Update messages.po resolve conflict * Update messages.po removed double quotes. Thanks @lapanti
* Improve localization marks (#3285)Minseo Lee2024-05-0612-66/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Lightbox.tsx * Change strings for easier localization * Update DeleteAccount.tsx * Update LabelsOnMeDialog.tsx * Update FeedCard.tsx * Update index.tsx * Update LabelsOnMeDialog.tsx * Update index.tsx * Update FeedCard.tsx * Update SelfLabel.tsx * Update Hashtag.tsx * Update index.tsx * Update Hashtag.tsx * Update ChangeHandle.tsx * Update index.web.tsx * Update index.web.tsx * Update index.tsx * Remove unnecessary `<Trans>` tags * Update Drawer.tsx
* Implement FeedFeedback API (#3498)Paul Frazee2024-05-0719-63/+505
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement onViewableItemsChanged on List.web.tsx * Introduce onItemSeen to List API * Add FeedFeedback tracker * Add clickthrough interaction tracking * Add engagement interaction tracking * Reduce duplicate sends, introduce a flushAndReset to be triggered on refreshes, and modify the api design a bit * Wire up SDK types and feedContext * Avoid needless function allocations * Fix schema usage * Add show more / show less buttons * Fix minor rendering issue on mobile menu * Wire up sendInteractions() * Fix logic error * Fix: it's item not uri * Update 'seen' to mean 3 seconds on-screen with some significant portion visible * Fix non-reactive debounce * Move methods out * Use a WeakSet for deduping * Reset timeout * 3 -> 2 seconds * Oopsie * Throttle instead * Fix divider * Remove explicit flush calls * Rm unused --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Protect against missing elementPaul Frazee2024-05-061-5/+4
|