about summary refs log tree commit diff
path: root/src/state/messages
Commit message (Collapse)AuthorAgeFilesLines
* Remove error for refresh, not necessary (#4034)Eric Bailey2024-05-151-11/+0
|
* [🐴] Better retry styling (#4032)Eric Bailey2024-05-152-28/+27
| | | | | | | | | | | | | * 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
* Reset after 5 min (#4026)Eric Bailey2024-05-142-7/+27
|
* [🐴] Message drafts (#3993)Samuel Newman2024-05-142-1/+87
| | | | | | | | | | | * drafts * don't throw if no convo ID * Remove labs package --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Make status checks easier, fix load state (#4010)Eric Bailey2024-05-143-79/+137
| | | | | | | | | * Make status checks easier, fix load state * Make naming more clear * Split up types for easier re-use * Replace hacky usage
* [🐴] Swap in new package, update usages (#3992)Eric Bailey2024-05-146-75/+27
| | | | | | | * Swap in new package, update usages * Remove uneccessary patch * Override type in safe place
* [🐴] Simplify message passing, cleanup (#3952)Eric Bailey2024-05-103-87/+85
| | | | | * Simplify message passing * Setup/teardown events
* [🐴] Clean up after deleting message (#3950)Eric Bailey2024-05-102-8/+6
| | | | | * Clean up after removal * Remove console
* [🐴] Remove extra spinner states from chat screen (#3947)Hailey2024-05-101-1/+1
| | | | | | | | | | | * 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-32/+60
| | | | | * Handle errors, improve styling * Remove old UI
* Add retries to all handlers (#3935)Eric Bailey2024-05-092-73/+90
|
* [🐴] 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
* Move to requestPollInterval handling (#3914)Eric Bailey2024-05-082-23/+43
|
* [🐴] Reorg convo files (#3909)Eric Bailey2024-05-074-246/+264
| | | | | * Remove unused prop * Reorganize
* [🐴] Unread messages badge (#3901)Samuel Newman2024-05-071-2/+8
| | | | | | | | | | | | | | | | | | | | | * 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>
* [🐴] Integrate global event bus (#3904)Eric Bailey2024-05-073-1/+65
| | | | | * Conditionally run global event bus * Add current convo id context, bundle providers
* [🐴] State transitions (#3880)Eric Bailey2024-05-072-204/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-073-0/+644
| | | | | | | | | | | | | * 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
* [Clipclops] All my clops gone (#3850)Eric Bailey2024-05-062-80/+174
| | | | | | | | | * Handle two common errors, provide more clarity around error states * Handle failed polling * Remove unused error type * format
* [Clipclops] Delete message in dialog (#3849)Hailey2024-05-051-12/+12
| | | | | | | | | | | | | * delete and copy * add retry dialog if message send fails * add layout animation * fix `nextMessage` being incorrect --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Clipclop tweaks (#3851)Hailey2024-05-031-1/+1
| | | | | | | * scroll on input resize * add back the padding 🙊 * fix timestamps
* [Clipclops] Refactor message list (#3832)Hailey2024-05-031-24/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * rework the list for accessibility * Reverse reverse * progress * good to start testing * memo `MessageItem` * small hack * use our custom `List` impl * use `ScrollProvider` for `onScroll` event * remove use of `runOnJS` * actually, let's keep it * add some comments --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Clipclops] Moar error (#3837)Eric Bailey2024-05-031-34/+75
| | | | | | | * Add history error * Log error * Add period
* [Clipclops] External store, suspend/resume (#3829)Eric Bailey2024-05-023-146/+320
| | | | | | | | | | | | | * Initial working external store * Clean up WIP, explore suspend/resume * Clean up state, bindings, snapshots, add some logs * Reduce snapshots, add better logic check * Bump interval a smidge * Remove unused type
* [Clipclops] Deletions (#3824)Eric Bailey2024-05-021-23/+57
| | | | | * Handle message deletions * Handle failures
* [Clipclops] Clop menu, leave clop, mute/unmute clop (#3804)Samuel Newman2024-05-021-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * convo menu * memoize convomenu * add convoId to useChat + memoize value * leave convo * Create mute-conversation.ts * add mutes, remove changes to useChat and use chat.convo instead * add todo comments * leave convo confirm prompt * remove dependency on useChat and pass in props instead * show menu on long press * optimistic update * optimistic update leave + add error capture * don't `popToTop` when unnecessary --------- Co-authored-by: Hailey <me@haileyok.com>
* [Clipclops] Pending messages (#3803)Eric Bailey2024-05-011-10/+18
| | | | | | | * Make pending message like normal message * Remove getter * Make props public
* Retry clops (#3800)Eric Bailey2024-05-013-83/+213
| | | | | | | * Add convo retries, sketch out tests * Only append nextMessage to messages * Remove debug code
* [Clipclops] 2 Clipped 2 Clopped (#3796)Eric Bailey2024-05-013-0/+537
* Add new pkg * copy queries over to new file * useConvoQuery * useListConvos * Use useListConvos * extract useConvoQuery * useGetConvoForMembers * Delete unused * exract useListConvos * Replace imports * Messages/List/index.tsx * extract getconvoformembers * MessageItem * delete chatLog and rename query.ts * Update import * Clipclop service (#3794) * Add Chat service * Better handle deletions * Rollback unneeded changes * Better insertion order * Use clipclops * don't show FAB if error * clean up imports * Update Convo service * Remove temp files --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>