Hailey
eb55bdf172
[ 🐴 ] List Adjustments ( #3857 )
2024-05-04 13:22:14 -07:00
Samuel Newman
c223bcdaf7
Assorted clipclop fixes ( #3853 )
...
* empty state for new chat dialog
* use terniary
* dark mode pending state
* copy message text option
* fix service url input (scrollview ftw)
* whoops, fix equality
* slightly reduce horizontal message padding
2024-05-04 01:49:49 +01:00
Hailey
feff55a14a
Clipclop tweaks ( #3851 )
...
* scroll on input resize
* add back the padding 🙊
* fix timestamps
2024-05-03 15:08:59 -07:00
Hailey
876816675e
[Clipclops] Refactor message list ( #3832 )
...
* 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>
2024-05-03 14:18:01 -07:00
Samuel Newman
6a4199febb
[Clipclops] Pending message style with layout animation ( #3844 )
...
* decrease group gap to 3 mins
* pending style with layout animation
* make pending state lighter
2024-05-03 20:19:48 +01:00
Samuel Newman
55f3df5596
reenable tabs ( #3847 )
2024-05-03 20:14:10 +01:00
Hailey
19a6bdcc86
Version bump ( #3848 )
2024-05-03 11:21:02 -07:00
Samuel Newman
ce02a41163
add focus refresh + polling ( #3846 )
2024-05-03 17:57:20 +01:00
dan
4a2d4253e5
[Session] Align state and global agent switchpoints ( #3845 )
...
* Adopt synced accounts unconditionally
* Remove try/catch around resuming session
* Move to login form on resume failure
* Restructure code flow for easier reading
---------
Co-authored-by: Eric Bailey <git@esb.lol>
2024-05-03 17:57:09 +01:00
dan
85b34418ef
Don't clear toasts when changing users ( #3843 )
...
* Move ThemeProvider to the top
* Move RootSiblingParent above the remounted part
* Move ToastContainer outside the remounted part
* Remove setTimeout around toasts
* Consistently handle dropped session
2024-05-03 16:36:58 +01:00
Samuel Newman
aeed4786db
make service url gate friendlier ( #3841 )
2024-05-03 16:32:20 +01:00
Samuel Newman
67b0cdf649
remove broken keyboard offset code ( #3842 )
2024-05-03 16:14:25 +01:00
Samuel Newman
997e621ce3
[Clipclops] Header tweaks ( #3839 )
...
* wrap text
* add dividers to convo menu
2024-05-03 15:55:35 +01:00
Samuel Newman
a5511e3c22
update date logic to account for timezones ( #3840 )
2024-05-03 15:55:24 +01:00
Eric Bailey
051e897a2b
[Clipclops] Moar error ( #3837 )
...
* Add history error
* Log error
* Add period
2024-05-03 09:39:40 -05:00
dan
1e484c6318
[Session] Reset global agent on expire ( #3838 )
2024-05-03 13:46:34 +01:00
dan
cdf7a1957a
[Session] Rely on agent session change event for persisting resumed session ( #3836 )
...
* Rely on agent session change handler for resumption
* Add a fast path for noop resumes
2024-05-03 03:47:11 +01:00
Eric Bailey
c9cf608f78
[Clipclops] External store, suspend/resume ( #3829 )
...
* 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
2024-05-02 20:57:51 -05:00
dan
c13685a0cf
[Session] Fix stale emailAuthFactor and emailConfirmed on the client ( #3835 )
...
* Fix account refresh to not clobber falsy values
* Use ?? in more places
2024-05-03 02:52:37 +01:00
dan
0f827c3213
[Session] Track agent in state ( #3833 )
...
* Expand currentAccountDid into currentAgentState
* Inline all callsites of upsertAccount
* Inline all internal callsites of clearCurrentAccount
* Add agent to currentAgentState
* Collapse extra setStates
* Add TODOs
2024-05-03 02:04:36 +01:00
Samuel Newman
a9af83692c
visually align icon ( #3831 )
2024-05-03 01:28:03 +01:00
dan
6405ad7cba
[Session] Call persist handler directly ( #3828 )
2024-05-02 23:05:53 +01:00
dan
b86c3b486f
Improve account switcher pending state ( #3827 )
...
* Protect against races
* Reduce UI jank when switching accounts
* Add pending state to selected account
* Disable presses while pending
2024-05-02 21:55:50 +01:00
Hailey
8ba1b10ce0
[Clipclops] Message actions for native and web ( #3807 )
...
* haptic on long press
* add animation to press and hold
* eslint disable for now
* adjust styles
* dont trigger if animation is cancelled
* organize
* add a delete menu
* reset scale automatically
* message actions dialog
cleanup
center the trigger
handle focus/unfocus better
make triggers accessible
weg dropdown menu
add a wep specific wrapper
decrease press delay
add report button
improve shrink logic
use `self_end` instead of `margin: auto`
rm extra `?`
move `MessageItem` to `components`
add delete button
* rm some padding
* update after merge
* fix merge
* web only types
* fix crash
* add an explanation
* fix web types
---------
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-05-02 13:54:17 -07:00
Samuel Newman
6da18e3dcf
Only run "disable min shell on foregrounding" behaviour if on the home screen ( #3825 )
...
* change useEffect to useFocusEffect
* v2 -> v3
2024-05-02 21:27:54 +01:00
Samuel Newman
96c5db3e69
create keyboardverticaloffset hook ( #3823 )
2024-05-02 21:05:11 +01:00
Samuel Newman
aca55cb192
rename "MessagesList" to "Messages" ( #3826 )
2024-05-02 21:02:45 +01:00
Eric Bailey
a20fe4c9a0
[Clipclops] Deletions ( #3824 )
...
* Handle message deletions
* Handle failures
2024-05-02 13:12:34 -05:00
dan
1a07e23192
[Session] Extract selectAccount out ( #3812 )
2024-05-02 18:25:09 +01:00
dan
5ec945b762
[Session] Extract resumeSession out ( #3811 )
2024-05-02 18:17:53 +01:00
Samuel Newman
dadf27fd2f
[Clipclops] Minor web tweaks ( #3822 )
...
* add a11y + onPress to web send button
* only adjust leading on web, due to overflow issue
2024-05-02 18:00:42 +01:00
Samuel Newman
bff055f618
[Clipclop] Input polish ( #3819 )
...
* tweak input styles + add min-shell mode
* android tweaks + hitslop
2024-05-02 17:08:41 +01:00
Hailey
e977c99c96
[Clipclops] rm `<Trans>` from header ( #3818 )
2024-05-02 08:54:12 -07:00
Eric Bailey
c2062753c5
Allow unmuting and unblocking of curate lists, but not the opposite ( #3817 )
2024-05-02 10:17:17 -05:00
aliamanuba
1d8fdbcc34
Add Preload for Web - Update base.html
2024-05-02 19:38:33 +08:00
aliamanuba
c303df5bd6
Added Preload for Web
...
- Bluesky logo in the center when a new visitor or shift+refresh by browser client
2024-05-02 19:24:35 +08:00
Hailey
cc9727a844
[Clipclops] Remove viewability config ( #3805 )
...
* remove viewability config
* use `onScroll` for keeping track of content offset
2024-05-01 16:26:19 -07:00
Samuel Newman
e19f882450
[Clipclops] Clop menu, leave clop, mute/unmute clop ( #3804 )
...
* 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>
2024-05-02 00:15:10 +01:00
Paul Frazee
d3fafdc066
Fix: put label defs provider above moderation opts provider ( #3806 )
2024-05-01 15:59:19 -07:00
Eric Bailey
5148b957b7
[Clipclops] Pending messages ( #3803 )
...
* Make pending message like normal message
* Remove getter
* Make props public
2024-05-01 16:29:34 -05:00
Samuel Newman
e2556d9f40
[Clipclops] Replace 🐴 with real icon ( #3802 )
...
* replace 🐴 with paper plane icon
* replace envelope with plus
2024-05-01 21:49:10 +01:00
Eric Bailey
fc0eab2d03
Retry clops ( #3800 )
...
* Add convo retries, sketch out tests
* Only append nextMessage to messages
* Remove debug code
2024-05-01 15:24:56 -05:00
Hailey
333ccdad39
[Clipclops] Dynamic input height ( #3778 )
...
* input max height/scrollability
* remove unused imports
* add a web-specific version
* enter and shift enter for web
* missing onSubmit for native
* missing attributes
* improve layout of input on web
* use the correct text color in the input
* trim messages
* remove `onSubmit`
* move prop up
* trim message on web
* remove extra function call
---------
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
2024-05-01 20:42:11 +01:00
Hailey
6f9993ca55
[Clipclops] Fix list, rework structure ( #3799 )
...
* proper min index
* move keyextractor out of react
* move onSendMessage out
* don't render the flatlist conditionally
* add loader
* rework structure
* remove some unneeded logic
2024-05-01 11:48:19 -07:00
Samuel Newman
8304ad91ac
add header to empty chat list view ( #3791 )
2024-05-01 18:43:54 +01:00
Eric Bailey
538ca8dff1
[Clipclops] 2 Clipped 2 Clopped ( #3796 )
...
* 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>
2024-05-01 10:14:41 -07:00
dan
d61b366b26
[Session] Derive currentAccount from accounts + currentAccountDid ( #3795 )
...
* Derive currentAccount from accounts and currentAccountDid
* Add TODOs for divergence with __globalAgent
2024-05-01 17:35:27 +01:00
dan
df9af92eb2
[Session] Use flag on state for persistence ( #3793 )
...
* Move isInitialLoad and isSwitchingAccounts out of main state
* Remove spreads, order object keys
* Track need to persist on state object
* Reoder state variables
2024-05-01 17:26:33 +01:00
Samuel Newman
a6061489ff
replace getDate with toIsoString().slice(0,10) ( #3792 )
2024-05-01 15:50:30 +01:00
Samuel Newman
80a1687dae
exclude bskyweb bskyembed and web-build ( #3790 )
2024-05-01 15:29:30 +01:00