Commit Graph

3506 Commits

Author SHA1 Message Date
Liam Fitzgerald
9304409e8b
ChatResource: cap initial backlog 2021-04-27 11:33:45 +10:00
Liam Fitzgerald
26d822c3b2
ChatMessage: remove dead props 2021-04-26 17:06:33 +10:00
Liam Fitzgerald
88a9d9ad1c
ChatResource: remove unnecessary props 2021-04-26 17:06:14 +10:00
Liam Fitzgerald
ae840659da
ChatWindow: remove unnecessary props 2021-04-26 17:05:57 +10:00
Liam Fitzgerald
6308579588
interface: remove dead pendings 2021-04-26 17:05:00 +10:00
Liam Fitzgerald
7a6b2eb015
virtualContext: drop useLayoutEffect 2021-04-26 17:04:36 +10:00
Liam Fitzgerald
aaea592cfc
VirtualScroller: rework for less memory use, faster speeds 2021-04-26 17:04:14 +10:00
Liam Fitzgerald
c1f055d46e
interface: make BigIntOrderedMap immutable 2021-04-26 16:59:38 +10:00
Liam Fitzgerald
c039f1e142
interface: remove unnecessary routing props 2021-04-26 16:35:11 +10:00
matildepark
bd81b4408e
Merge pull request #4816 from urbit/mp/landscape/banner-tweak
chat: prevent shrinking of share banner
2021-04-24 21:54:54 -04:00
Matilde Park
789c5de615 landscape: fix un-set avatars in participants list 2021-04-24 16:05:12 -04:00
Matilde Park
6d37c23ae8 VirtualScroller: avoid unsafe null access 2021-04-24 14:50:49 -04:00
matildepark
a8ee7fcfe4
Merge pull request #4817 from urbit/lf/virt-perf
VirtualScroller: performance, memory leaks
2021-04-23 23:11:56 -04:00
Liam Fitzgerald
f79e489d67
ChatResource: prevent unnecessary state update 2021-04-24 12:23:45 +10:00
Liam Fitzgerald
47c19b60c0
VirtualScroller: only rerender on scroll lock if necessary 2021-04-24 12:22:44 +10:00
Liam Fitzgerald
2e7b1cd41d
VirtualScroller: lock scroll less aggressively
Prevents incorrect scroll adjustment
2021-04-24 12:22:08 +10:00
Liam Fitzgerald
6a1f0e2ac9
VirtualScroller: aggressively cleanup refs
Prevents a memory leak, as it appears React holds onto the class
instance after unmounting
2021-04-24 12:20:42 +10:00
Liam Fitzgerald
bc4f26b2b3
VirtualScroller: rework scroll initialisation
Calling restore if the scroll is locked simply resets the scroll,
instead of using the usual adjustment algorithm
2021-04-24 12:19:33 +10:00
matildepark
6a106b1703
Merge pull request #4815 from urbit/mp/publish/comment-codes
landscape: move transcluded comments to graphcontentwide
2021-04-23 22:13:00 -04:00
matildepark
9ad12777ae
Merge pull request #4786 from urbit/la/fix-omnibox
interface: group feed no longer shows in omnibox
2021-04-23 15:45:40 -04:00
Matilde Park
a7ed122c5c chat: prevent shrinking of share banner 2021-04-23 15:43:53 -04:00
Matilde Park
794af89ec2 landscape: flex comments to container width
Prevents horizontal overflow.
2021-04-23 15:39:44 -04:00
Matilde Park
7ac71c64a3 landscape: move transcluded comments to new render
Fixes urbit/landscape#814
Fixes urbit/landscape#813
2021-04-23 15:39:21 -04:00
Logan Allen
27e5a6aef4 omnibox: add maybe operators 2021-04-23 14:34:39 -05:00
matildepark
b78e7583db
Merge pull request #4812 from urbit/mp/landscape/indigo-bump
landscape: update indigo-react to 1.2.21
2021-04-23 09:46:28 -04:00
Matilde Park
a13542dfa7 interface/logic: revert group-update type change
It broke tags, needs a redo.
2021-04-22 21:21:44 -04:00
Matilde Park
04f46eefe5 landscape: update indigo-react to 1.2.21 2021-04-22 19:46:43 -04:00
Matilde Park
236b7a047f Merge branch 'release/next-js' into mp/landscape/indigo-bump 2021-04-22 19:43:47 -04:00
matildepark
5c5aefa9fc
Merge pull request #4806 from urbit/lf/fix-virt-scroller
VirtualScroller: fix race conditions and excessive scroll adjusting
2021-04-22 17:50:19 -04:00
matildepark
94435de867
Merge pull request #4807 from urbit/lf/offsettop-crash
Dropdown: check ref exists
2021-04-22 17:10:27 -04:00
matildepark
906f513959
Merge pull request #4808 from urbit/lf/flex-shrink-typings
interface: fix flex-shrink typings
2021-04-22 17:09:39 -04:00
janeway-bot
423613eed0
Merge b46f2e24e6 into release/next-js 2021-04-22 14:33:43 +04:00
Liam Fitzgerald
08452efef8
interface: fix flex-shrink, grow typings pt.2 2021-04-22 16:35:44 +10:00
Liam Fitzgerald
a7afaf065d
interface: fix flex-shrink, grow typings 2021-04-22 16:30:13 +10:00
Liam Fitzgerald
24259dab87
Dropdown: check ref exists
Fixes urbit/landscape#805
2021-04-22 15:16:04 +10:00
Liam Fitzgerald
6f7ed005ae
VirtualScroller: fix race condition in ref deletion
A callback ref is called after the component is mounted, but before the
component is unmounted. However, we might still be adjusting scroll
position based on a component that is going to be remounted. Previously,
we delayed the deletion until the next tick with setTimeout. With the
faster ordered map implementation, the component may be remounted
before the next tick, leading to the deletion of a ref that is still
mounted. To work around this, we store a set of 'orphans' and clear the
map of orphans on an interval, and only clear the map if we are not
currently adjusting our scroll position. Also includes fixes for jumpy
scroll behaviour on initial mount.
2021-04-22 15:04:38 +10:00
Liam Fitzgerald
f80ca5a3da
virtualContext: fix useVirtualResizeProp 2021-04-22 15:02:21 +10:00
Liam Fitzgerald
77fded3dab
GraphNotification: safe property access 2021-04-22 11:02:23 +10:00
Matilde Park
75f06a7c9e landscape/logic: type safety adjustments 2021-04-21 17:22:08 -04:00
matildepark
1a01e58b7b
Merge pull request #4798 from urbit/mp/landscape/action-bg
landscape: pass background colors to actions
2021-04-21 14:38:39 -04:00
matildepark
62e2ea39c2
Merge pull request #4794 from urbit/lf/fast-ordered-map
interface: fast BigIntOrderedMap
2021-04-21 12:06:07 -04:00
Matilde Park
ab6239bf59 landscape: pass background colors to actions
Fixes urbit/landscape#802
2021-04-21 11:20:14 -04:00
Liam Fitzgerald
f9cf711c69
Merge remote-tracking branch 'origin/release/next-js' 2021-04-20 14:53:28 +10:00
Liam Fitzgerald
f038176169
Merge remote-tracking branch 'origin/la/font-display-swap' 2021-04-20 14:52:41 +10:00
Liam Fitzgerald
fc955ab83e
interface: new BigIntOrderedMap
New ordered map implementation that is faster and more space
efficient. Stores the map and keys as a flat POJO, sorting them upon
iteration. The sorting cost is only typically paid once per render
however as the sorted array is cached until the map is mutated. This
implementation appears to play nicer with immer's structural sharing,
reducing the incidence of 'props are equal by value, but not by
reference'.
2021-04-20 13:31:57 +10:00
Liam Fitzgerald
1ab925f84c
interface: unify BigIntOrderedMap imports 2021-04-20 13:11:39 +10:00
matildepark
110bcaa6ce
Merge pull request #4785 from urbit/la/fix-591
interface: fix #591 message display by time-sent in chat
2021-04-19 17:28:55 -04:00
matildepark
b090311964
Merge pull request #4689 from urbit/lf/form-merge
ChannelSettings: unify form handling
2021-04-19 17:22:16 -04:00
matildepark
fe61b8b7a9
Merge pull request #4782 from urbit/lf/notif-fixes
notifications: preferences screen, fix pagination
2021-04-19 17:18:03 -04:00
L
f26e63421e
Merge pull request #4777 from urbit/mp/group-feed/show-parent-if-parent
PostReplies: show parent author in parent postItem
2021-04-19 14:03:41 -05:00