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
James Acklin
9587ccf5ca
links: prevent click in transcluded images, use hovered external arrow
2021-04-21 16:43:48 -04:00
James Acklin
b3f31516d2
chat: show clickable arrow action on remote image hover
2021-04-21 16:21:33 -04:00
James Acklin
4283aa93f5
chat: adjust ChatMessage color
2021-04-21 15:46:29 -04:00
James Acklin
d585c58b8f
chat: click name to copy ~patp in ProfileOverlay
2021-04-21 15:41:14 -04:00
James Acklin
efd088a372
chat: pointer cursor for attachment + dojo in input
2021-04-21 15:02:57 -04:00
James Acklin
3d40d37e80
interface: new messages icon
...
partially fixes urbit/landscape#560
2021-04-21 15:00:14 -04:00
James Acklin
6d9508abfc
chat: flush borders + round corners for images
2021-04-21 14:59:16 -04:00
James Acklin
8124f63215
chat: flush borders + round corners for images
2021-04-21 14:58:16 -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
156d0d380d
ColorInput: remove "#" from input value
...
Fixes urbit/landscape#803
2021-04-21 11:44:00 -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
d40a495328
SwipeMenu: make faster
2021-04-21 17:26:31 +10:00
Liam Fitzgerald
4489f6eee7
SwipeMenu: prevent wrong direction swipe
2021-04-21 16:45:16 +10: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
Liam Fitzgerald
45c0f3b8da
notifications: swipe to reveal dismiss menu
2021-04-20 13:08:58 +10:00
Liam Fitzgerald
3f56706dc3
interface: add mobile breakpoint to state
2021-04-20 13:05:50 +10:00
Liam Fitzgerald
c01a00bd6a
notifications: key notifications correctly
2021-04-20 12:53:41 +10:00
Liam Fitzgerald
a9d7584d64
interface: add SwipeMenu component
2021-04-20 12:47:49 +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
Logan Allen
87feb74184
interface: group feed no longer shows in omnibox
2021-04-19 12:53:26 -05:00
Logan Allen
9a61daaa69
interface: fix #591 message display by time-sent in chat
2021-04-19 12:37:40 -05:00
Liam Fitzgerald
c92753d1ed
ChannelPopover: cancel dismisses popover
2021-04-19 15:58:44 +10:00
Liam Fitzgerald
f1be29389a
settings: default tutorial to seen
...
Prevents a race condition where the tutorial prompt will always show
2021-04-19 15:47:35 +10:00
matildepark
9a7f90bb63
Merge pull request #4783 from urbit/lf/tut-island-fix
...
launch: fix reversed destructure
2021-04-19 01:35:50 -04:00
Liam Fitzgerald
4c02bd0698
launch: fix reversed destructure
...
This was causing the tutorial to never be shown. This change should be
deployed with a new pill, to ensure comets show the tutorial.
2021-04-19 15:32:44 +10:00
Liam Fitzgerald
6128c8d096
notifications: bring preferences to spec
2021-04-19 15:24:30 +10:00
Liam Fitzgerald
988e614db4
interface: correctly scroll lock document
...
Even if overflow is hidden, certain mobile browsers may interpret a
scroll event to be on the document root, leading to strange and
inconsistent scrolling behaviours. Addresses this by adding
touch-action: none, which explicitly instructs browers to ignore this
element in scroll calculations.
2021-04-19 14:28:51 +10:00
Liam Fitzgerald
0ef452f8b3
notifications: update dismiss action styling
2021-04-19 13:26:21 +10:00
Liam Fitzgerald
048bd02604
notifications: fix broken pagination
...
Fixes urbit/landscape#788
2021-04-19 13:15:46 +10:00
édouard
deeab71831
sidebar: provide more contrast to sidebar items
...
Reverting this back to a most contrasty state in answer to frequent complaints of being unable to tell which channels were unread
2021-04-16 21:44:48 -04:00
édouard
503a3a8a49
invite notifications: fix radius of mention line
2021-04-16 20:28:50 -04:00
Matilde Park
55c1da67c6
PostReplies: show parent author in parent postItem
...
If an item is top of view, and has a parent,
we now render the parent author we are
replying to.
Fixes an unfiled bug
2021-04-16 16:05:14 -04:00
Matilde Park
8b82aec6c2
MentionText: pass all ships with sigs
2021-04-16 12:28:06 -04:00
Matilde Park
cd6e44ac82
Merge branch 'release/next-js' into mp/landscape/indigo-bump
2021-04-16 12:12:08 -04:00
Matilde Park
290b8c7c38
notifications: add margins to each
...
Otherwise they are not distinguished apart.
2021-04-16 11:47:40 -04:00
Liam Fitzgerald
d5bbc58c2b
Merge remote-tracking branch 'origin/release/next-js' into lf/notif-v2
2021-04-16 16:03:07 +10:00
Liam Fitzgerald
83901ece22
notifications: refactor invites to match spec
2021-04-16 16:02:26 +10:00
Liam Fitzgerald
3bd1e06f0f
notifications: refactor inbox to match spec
2021-04-16 16:02:05 +10:00
Liam Fitzgerald
801ccdad6f
notifications: refactor notification to match spec
2021-04-16 16:01:52 +10:00
Liam Fitzgerald
8bfb7da796
notifications: update header to match spec
2021-04-16 16:01:38 +10:00
Liam Fitzgerald
711bb8d88c
notifications: refactor group notification to match spec
2021-04-16 16:01:19 +10:00
Liam Fitzgerald
992b607e3c
notifications: refactor graph notification to match spec
2021-04-16 16:01:05 +10:00
Liam Fitzgerald
08028efcd7
interface: add utilities, fix useLazyScroll
2021-04-16 16:00:36 +10:00
Liam Fitzgerald
86552306c2
interface: add getters for stores
2021-04-16 15:59:02 +10:00
Liam Fitzgerald
63b3a37d86
Timestamp: set line-height
2021-04-16 15:57:42 +10:00
Liam Fitzgerald
dd9dfc0a9f
Author: fix mono spacing
2021-04-16 15:57:19 +10:00
Matilde Park
1c1377ab7d
landscape: bump indigo-react to 1.2.20
2021-04-15 15:19:48 -04:00
James Acklin
e473b3031f
imageInput: adds clear button
...
fixes urbit/landscape#785
2021-04-14 21:36:01 -04:00
matildepark
9f98081452
Merge pull request #4752 from urbit/james/leap-selection
...
leap: deduplicate selection with mouse+keys
2021-04-14 18:53:28 -04:00
matildepark
05711cbe14
Merge pull request #4725 from urbit/james/image-input
...
interface: redesign ImageInput
2021-04-14 18:26:27 -04:00
James Acklin
95b4f4007b
imageInput: eliminate closures as components
...
fixes urbit/landscape#695
2021-04-14 16:31:21 -04:00
Tyler Brown Cifu Shuster
bbafcc6d6f
sidebar: typesafe notifications check
2021-04-14 13:03:36 -07:00
Matilde Park
2949701c7f
publish: tokenise content
...
Fixes urbit/landscape#284
2021-04-14 15:20:18 -04:00
James Acklin
8e866f3262
leap: belt-and-suspenders patp match
...
fixes urbit/landscape#598
2021-04-13 16:34:50 -04:00
Matilde Park
27ed29b257
landscape: fix s3 link
...
Fixes urbit/landscape#768
2021-04-13 16:06:33 -04:00
Matilde Park
80bc6c7054
GraphContent: allow titled links in textrenderer
...
Fixes urbit/landscape#752
2021-04-13 16:05:50 -04:00
Matilde Park
bd8590a80a
publish: fix cross-theme color mismatch
...
Fixes urbit/landscape#746
2021-04-13 15:59:33 -04:00
Matilde Park
b01f14d837
landscape: fix line-height of CommentItem
...
Fixes urbit/landscape#731
2021-04-13 15:55:20 -04:00
Matilde Park
103547ba3b
landscape: hide 'promote to admin' on pending patp
...
Fixes urbit/landscape#694
2021-04-13 15:42:53 -04:00
Matilde Park
421dc97a64
RemoteContent: redesign embedded content
...
Fixes urbit/landscape#693
2021-04-13 15:37:40 -04:00
Matilde Park
3245465281
JoinGroup: redirect if we have the group
...
Joining a group we have fails. We now redirect to the workspace.
Fixes urbit/landscape#683
2021-04-13 14:12:10 -04:00
Matilde Park
1ae61a0715
profile: pad and optimise on small viewports
...
Fixes urbit/landscape#658
2021-04-13 14:04:10 -04:00
Matilde Park
d9f8ebd5fe
landscape: Author copies patp on click
...
Fixes urbit/landscape#578
2021-04-13 13:57:11 -04:00
James Acklin
62ab69f319
leap: yank window.ship from contacts
...
fixes urbit/landscape#598
2021-04-13 08:22:39 -04:00
James Acklin
e80101ab0a
leap: yank own ~patp from results
...
fixes urbit/landscape#598
2021-04-12 22:23:19 -04:00
matildepark
26e70d8550
Merge pull request #4755 from urbit/lf/scroll-pos-reset-publish
...
landscape: grabbag
2021-04-12 19:45:42 -04:00
Liam Fitzgerald
505528c59b
launch: fix group notification display
...
Fixes urbit/landscape#720
Fixes urbit/landscape#656
2021-04-13 09:32:36 +10:00
Matilde Park
8f0c72ffa6
landscape: sidebar uses black100 for all synced
...
Fixes urbit/landscape#678
2021-04-12 17:05:22 -04:00
Matilde Park
bdefbcbcf2
ProfileOverlay: restore DM button
...
Dropped in a merge conflict resolution.
Fixes urbit/landscape#757
2021-04-12 17:00:24 -04:00
James Acklin
d6727c042c
profile: imageinput instance fixes
...
fixes urbit/landscape#695
2021-04-12 16:42:09 -04:00
James Acklin
cc0caa5aa5
Merge branch 'release/next-js' into james/image-input
2021-04-12 15:34:16 -04:00
James Acklin
92c39dc526
leap: hide pointer while navigating by keyboard
...
fixes urbit/landscape#598
2021-04-12 15:12:03 -04:00
James Acklin
1f70fdbf2d
leap: set selection on mousemove, not hover (account for scrolling)
...
fixes urbit/landscape#598
2021-04-12 14:51:41 -04:00
Matilde Park
75cbf96b2b
MentionText: inline mentions
...
Fixes urbit/landscape#763
2021-04-12 12:17:00 -04:00
matildepark
9bb3cfb90f
Merge pull request #4746 from urbit/lf/notifications-load
...
notifications: prevent race condition causing empty notifications
2021-04-12 11:32:12 -04:00
matildepark
0d8b1862cc
Merge pull request #4739 from urbit/lf/post-hark
...
Group Feed: unread counts
2021-04-12 11:09:38 -04:00
James Acklin
4a3bc6fa22
leap: set selection to currently-hovered item
...
fixes urbit/landscape#598
2021-04-11 21:58:25 -04:00
James Acklin
b42d54349f
leap: prettier js/tsx
...
fixes urbit/landscape#598
2021-04-11 17:26:35 -04:00
Logan Allen
0699c2c52c
interface: use font-display: swap;
2021-04-09 16:11:57 +00:00
Liam Fitzgerald
07d13b536b
RemoteContent: fix video, audio overflow
...
Fixes urbit/landscape#756
2021-04-09 12:14:50 +10:00
Liam Fitzgerald
7bbef74ffe
ShipSearch: fix error reporting
...
Fixes urbit/landscape#753
2021-04-09 12:05:02 +10:00
Liam Fitzgerald
3903ff8ad3
Publish: reset scroll on nav change
...
Fixes urbit/landscape#758
2021-04-09 11:53:56 +10:00
Liam Fitzgerald
027fd225a9
notifications: prevent race condition causing empty notifications
...
Fixes urbit/landscape#741
2021-04-09 11:42:09 +10:00
Liam Fitzgerald
7340f3f7e5
Merge pull request #4743 from urbit/james/group-forwarding
...
groups: forward to already-joined group from GroupLink
2021-04-09 11:22:37 +10:00
Liam Fitzgerald
1b1d7e9e80
FormGroup: address review
2021-04-09 10:22:44 +10:00
Liam Fitzgerald
0617a1ff55
Merge remote-tracking branch 'origin/release/next-js' into lf/form-merge
2021-04-09 10:04:04 +10:00
Liam Fitzgerald
1c2aa24c7a
PostContent: fix bottom spacing
2021-04-09 09:55:41 +10:00
Liam Fitzgerald
623e13bd3e
Merge remote-tracking branch 'origin/release/next-js' into lf/graph-unification
2021-04-09 09:53:59 +10:00
James Acklin
2477b2248e
groups: forward to already-joined group from GroupLink
...
fixes urbit/landscape#593
2021-04-08 17:27:57 -04:00
James Acklin
b19233633b
groups: set universal maxWidth of GroupDescription
...
fixes urbit/landscape#728
2021-04-08 16:36:08 -04:00
James Acklin
8b43984831
Merge branch 'release/next-js' into james/empty-group-home
2021-04-08 08:05:35 -04:00
Liam Fitzgerald
087103b3f4
GroupFeed: show unread count
2021-04-08 16:38:55 +10:00
Liam Fitzgerald
887a12ba0c
interface: surface and dismiss unread counts
2021-04-08 16:05:20 +10:00
Liam Fitzgerald
2e41b7657e
ChatMessage: prevent link overflow
...
Fixes urbit/landscape#732
2021-04-07 17:08:11 +10:00
Jōshin
8112c8a041
Merge pull request #4735 from urbit/jo/gcp/conf
...
gcp: isConfigured doesn't touch store
2021-04-06 22:18:57 -07:00
Liam Fitzgerald
8272902a7a
PostContent: use unified graph rendering
2021-04-07 14:27:38 +10:00
Liam Fitzgerald
d06fcc741d
CommentItem: use unified graph rendering
2021-04-07 13:15:24 +10:00
Liam Fitzgerald
156f91adb5
ChatMessage: refactor content rendering
2021-04-07 13:14:52 +10:00
Liam Fitzgerald
186ac17d5d
useHovering: memoize hooks
2021-04-07 13:13:39 +10:00
Liam Fitzgerald
5f8437dbad
useCopy: expose didCopy state
2021-04-07 13:11:56 +10:00
Liam Fitzgerald
6bae511b9d
Merge pull request #4731 from urbit/lf/edit-profile-crash
...
EditProfile: do not mutate contact
2021-04-07 12:01:00 +10:00
L
feafdfaf43
Merge pull request #4730 from urbit/lf/callback-capture
2021-04-06 20:13:29 -05:00
L
1d43fd9f0b
Merge pull request #4733 from urbit/lf/darkmode-publish-transclusion
2021-04-06 20:08:20 -05:00
Liam Fitzgerald
705ee08727
Merge pull request #4728 from urbit/lf/immer-orm
...
interface: mark BigIntOrderedMap compat with immer
2021-04-07 11:07:49 +10:00
Jōshin
78faf9ba25
Merge remote-tracking branch 'origin/release/next-js' into jo/gcp/conf
2021-04-06 22:31:01 +00:00
Liam Fitzgerald
9e5ecc303c
Merge pull request #4734 from urbit/jo/tsc
2021-04-07 08:14:41 +10:00
L
c69b15d3a5
Merge pull request #4729 from urbit/lf/sub-restart
...
subscription: clear opened subs before restart
2021-04-06 16:41:30 -05:00
Jōshin
4aa9bba5b3
gcp: isConfigured doesn't touch store
...
Makes the thread return a simple boolean; almost as simple as just
returning %.y or %.n.
gcpManager now stores whether GCP is configured as a private variable.
Also fixes some type errors in gcp.
2021-04-06 19:08:53 +00:00
Jōshin
272cc6905e
interface: no nullish assignment
...
Typescript as of 3.7 understands null coalescing (??), but nullish
assignment (??=) is not available until 4.0.
This broke `npm run tsc`, preventing other type errors from showing up.
2021-04-06 18:05:55 +00:00
Jōshin
2dba1d0504
interface: remove broken/unused MetadataForm
...
It was causing tsc to hard-fail due to an extra comma on L70.
2021-04-06 17:57:55 +00:00
Jōshin
88317eefe5
Merge pull request #4655 from urbit/jo/gcp/is-token
...
interface: type annotations, imports
2021-04-06 09:05:31 -07:00
Liam Fitzgerald
6da3877430
Invite: fix stale props in inviteAccept callback
...
Now that the store is immutable, callbacks that close over props will
see stale props because the reference is captured at instantiation. This
was not an issue previously, because the references would be directly
mutated. To remedy this, useRunIO has been added, which takes an async
function to run for the actual network processing, and a second
callback, which is able to see fresh props because it is not
instantiated until the async callback has resolved successfully.
Importantly, useRunIO does not resolve until the second callback has
finished, preserving the semantics of the callback for Formik handlers
and the like.
Fixes urbit/landscape#691
2021-04-06 15:50:21 +10:00
Liam Fitzgerald
f592b33d89
subscription: clear opened subs before restart
2021-04-06 14:33:56 +10:00
Liam Fitzgerald
c60a41b26d
publish: fix color in darkmode
...
Fixes urbit/landscape#736
2021-04-06 11:54:31 +10:00
Liam Fitzgerald
067991533a
EditProfile: do not mutate contact
...
Fixes urbit/landscape#698
2021-04-06 11:43:58 +10:00
Liam Fitzgerald
c398b2c0e4
interface: mark BigIntOrderedMap compat with immer
...
Fixes urbit/landscape#707
Fixes urbit/landscape#740
2021-04-06 08:28:53 +10:00
James Acklin
24ca01a10c
interface: adds clickable instructions to ImageInput, removes truncation in settings
...
fixes urbit/landscape#695 , fixes urbit/landscape#581
2021-04-03 17:30:18 -04:00
James Acklin
f0c3f37b0e
groups: resize group summary
...
fixes urbit/landscape#728
2021-04-03 12:04:01 -04:00
janeway-bot
9ccf490f5b
Merge 6ed5ccbc4e
into release/next-js
2021-04-03 01:09:18 +04:00
Matilde Park
e870c251cc
Merge branch 'mp/landscape/mention-overlays' ( #4718 )
...
* origin/mp/landscape/mention-overlays:
landscape: restore profile overlays on mention clicks
Signed-off-by: Matilde Park <matilde.park@gmail.com>
2021-04-02 16:51:24 -04:00
Matilde Park
39ce6f9d58
Merge branch 'mp/landscape/sidebar' ( #4719 )
...
* origin/mp/landscape/sidebar:
landscape: fix 'my channels' sidebar logic
Signed-off-by: Matilde Park <matilde.park@gmail.com>
2021-04-02 16:51:00 -04:00
Matilde Park
5305d0770f
invites: prevent from flexshrinking closed on safari
2021-04-02 15:39:40 -04:00
Matilde Park
a059f85952
commentItem: fix background on actions
2021-04-02 15:38:56 -04:00
Matilde Park
de8e7b5937
landscape: fix 'my channels' sidebar logic
2021-04-02 15:08:42 -04:00
Matilde Park
c4903fa1fd
landscape: restore profile overlays on mention clicks
2021-04-02 14:51:16 -04:00
James Acklin
c889fd5638
chat: rectify sigil corners
...
fixes urbit/landscape#725
2021-04-02 14:49:35 -04:00
janeway-bot
621bcc8be4
Merge 4bc7952d56
into release/next-js
2021-04-02 18:57:25 +04:00
Liam Fitzgerald
4bc7952d56
omnibox: update for new metadata
2021-04-03 00:56:48 +10:00
Liam Fitzgerald
7e1a6ae541
embeds: address review
2021-04-03 00:23:16 +10:00
Liam Fitzgerald
e52f8ab9e3
GroupSettings: show feed settings correctly
2021-04-02 21:51:28 +10:00
Liam Fitzgerald
72fc0f02c3
interface: do not wait for deletion before navigation
...
Fixes urbit/landscape#706
2021-04-02 21:50:45 +10:00
Liam Fitzgerald
0ef5c5b562
chat: focus at end of input
...
Fixes urbit/landscape#715
2021-04-02 21:46:20 +10:00
Liam Fitzgerald
bbf07c4139
interface: fix subscription reconnect
...
Fixes urbit/landscape#713
2021-04-02 21:46:19 +10:00
Liam Fitzgerald
f50bea444a
embeds: adjust scroll on load
2021-04-02 21:46:06 +10:00
Liam Fitzgerald
b552460a5e
RemoteContent: rescale replaced elements correctly
...
Fixes urbit/landscape#708
2021-04-02 20:40:23 +10:00
janeway-bot
80c68ab57e
Merge f322360dca
into release/next-js
2021-04-02 09:58:30 +04:00
Liam Fitzgerald
510524e3da
notifications: include custom avatar
...
Fixes urbit/landscape#710
2021-04-02 15:30:04 +10:00
Liam Fitzgerald
315804e698
PostInput: fix replying with a link
2021-04-02 15:19:39 +10:00