Commit Graph

4397 Commits

Author SHA1 Message Date
André Fincato
5634e08da5 groups: set font-size=1 to list block
this set the correct size to a list item which contains for eg only a
link child (as link child has the prop  fontSize="inherit").
2022-04-19 09:04:42 +02:00
André Fincato
db6130146b groups: avoid extra node in plain link URL
This still leaves an empty root node which does not take up visual
space though. A more comprehensive approach would be to filter out
plain URL links from the graph, eg from the function

```
t[1].children.map(c => {
    if (c?.children) {
      let links = [];
      c.children.filter(k => {
        if (k.type === 'link') {
          links.push({
            type: 'root',
            children: [
              {
                type: 'graph-url',
                url: k.url
              }
            ]
          })
        }
      })

      c.children.push(...links);
    }
  });
```
2022-04-19 09:04:19 +02:00
André Fincato
dedacabb53 groups: add graph-url block below plain URL block
this commit suggests a possible UI to put back the rich embed URL
right below (aka in context) the block where the plain URL has been
inserted. in this way when pasting a URL the formatting does not break
and yet a richer UI is still rendered.
2022-04-19 09:03:58 +02:00
André Fincato
96482ca99c groups: correctly display blockquote content in full
as of now, a blockquote would discard any other content after
a URL and would put it on a new line.

eg '> some text https://urbit.org this is urbit' would be rendered as

```
> some text https://urbit.org

this is urbit
```

this commit joins all content inside of a blockquote as one block.
2022-04-19 09:03:41 +02:00
André Fincato
0a03e44632 groups: convert URL from graph-url to plain link
this change removes rich embed URLs in order to not break text flow. eg
when writing a sentence with a URL, before this commit the UI would
display the URL as its own block on a new line, plus anything
afterwards it (originally on the same line of text), would be
displayed on a new line as well.
2022-04-19 09:02:53 +02:00
André Fincato
f03397f301 groups: don't render plain URL 2022-04-19 09:02:12 +02:00
Liam Fitzgerald
0eb1295f7b interface: use object-fit:cover
This aligns image embeds with the wishes of the design team, by zooming
and cropping the image to fill the entire container
2022-04-04 12:24:23 -05:00
Patrick O'Sullivan
a6e196a0fd groups: fix sort order in notifications 2022-04-01 17:18:32 -05:00
Patrick O'Sullivan
c650d1d477 groups: fix issue with wrapping urls in notes 2022-04-01 14:23:23 -05:00
Hunter Miller
c3b491ddb0 groups-pane: refining loading strategy to be more efficient 2022-04-01 12:18:43 -05:00
Hunter Miller
65e05fbf25 api: turn off verbose 2022-03-31 17:26:06 -05:00
Liam Fitzgerald
185ee5f661 interface: fix reconnect logic 2022-03-31 14:55:03 -06:00
Hunter Miller
1d1b9ae863
Merge branch 'next/groups' into lf/landscape-floor 2022-03-31 12:28:29 -05:00
Liam Fitzgerald
58cd0bd4f3 interface: address hunter review 2022-03-31 10:56:45 -06:00
Patrick O'Sullivan
7108bfa7c7 groups: remove debug statement from chatinput 2022-03-31 11:39:54 -05:00
Hunter Miller
1949174f63
Merge pull request #5682 from urbit/po/fix-silent-s3-failures
groups: fix silent s3 failures
2022-03-31 11:26:40 -05:00
Patrick O'Sullivan
0d3f4ec554 groups: clear s3 error state on succesful upload 2022-03-31 11:23:52 -05:00
Hunter Miller
9b59f26c6c bootstrap: moving data calls to relevant component so it always loads 2022-03-31 11:07:08 -05:00
Hunter Miller
687b23e519 useFileUpload: fixing stale closure 2022-03-31 11:06:38 -05:00
Patrick O'Sullivan
846fe48e7a groups: lift uploadError state to ChatPane, refactor nested ternary 2022-03-31 11:04:24 -05:00
Patrick O'Sullivan
cc1048dd21 groups: add padding to error box in collections 2022-03-31 10:52:31 -05:00
Patrick O'Sullivan
ff65c17376 groups: remove fixed height from s3 error portal 2022-03-31 10:50:10 -05:00
Hunter Miller
6dc763a7d1 s3client: adding missing promise call to trigger 2022-03-31 09:42:10 -05:00
Hunter Miller
b1aab5bc36 Merge branch 'next/groups' into hm/fix-missing-channel-state 2022-03-30 15:29:32 -05:00
Patrick O'Sullivan
9db2024676 groups: handle s3 upload failures in chat 2022-03-30 15:04:01 -05:00
Patrick O'Sullivan
836cdb2478 groups: handle s3 upload failures in collections 2022-03-30 14:12:13 -05:00
Patrick O'Sullivan
2b784caffc groups: remove TODO about harkbody def, fix in separate PR 2022-03-29 09:18:57 -05:00
Liam Fitzgerald
75a2c2b979 interface: static height for embedded images 2022-03-28 14:44:02 -06:00
Liam Fitzgerald
41d42da34c interface: fix group feed unread count
Fixes urbit/landscape#1258
2022-03-28 13:54:37 -06:00
Patrick O'Sullivan
952a05a901 groups: fix notification order 2022-03-28 14:52:28 -05:00
Liam Fitzgerald
e31c194a20 interface: fix group chat join overflow
fixes urbit/landscape#1105
2022-03-28 12:49:43 -06:00
Liam Fitzgerald
a7906641a7 interface: cap maxHeight of ShipSearch
Fixes urbit/landscape#1393
2022-03-28 12:30:19 -06:00
Liam Fitzgerald
7a6cb8ae6d interface: do not show recently joined if already left
Fixes urbit/landscape#1407
2022-03-28 12:19:19 -06:00
Patrick O'Sullivan
de493a6482 groups:Remove useEffect for setting prot. handler from Content 2022-03-28 09:24:51 -05:00
Patrick O'Sullivan
c896349246 groups:Remove button for registering prot. handler in settings 2022-03-28 09:23:44 -05:00
Patrick O'Sullivan
ef77aaf802 groups: Use garden's prot. hand. prefs to determine app link 2022-03-25 14:30:26 -05:00
Patrick O'Sullivan
1399ef9fa5 groups: Add useGardenSettings store to groups 2022-03-25 14:28:07 -05:00
Patrick O'Sullivan
df280daee3 groups: Set browserId in local state on mount of app 2022-03-25 14:27:30 -05:00
Patrick O'Sullivan
0a5cd0041d groups: Add browserId to local state 2022-03-25 14:26:18 -05:00
Patrick O'Sullivan
66451c9089 groups: Add fingerprintjs 2022-03-25 14:25:07 -05:00
Hunter Miller
60d5d4ffcf bootstrap: optimizing order a little more 2022-03-25 12:55:54 -05:00
Hunter Miller
78a0796a74 bootstrap: removing unnecessary clear and moving hark a little higher 2022-03-25 11:42:42 -05:00
Hunter Miller
a93c3975d7 any-ascii: lazy load for code-splitting 2022-03-24 19:22:47 -05:00
Hunter Miller
6a5b0e3a83 s3: lazy load aws sdk for code splitting 2022-03-24 19:21:56 -05:00
Hunter Miller
e3b2e166d7 bootstrap: moving and reordering, adding scries
This undoes some of the code-splitting done previously as it didn't
affect performance enough, and was actively hurting it in some ways.
Instead this moves the subscription initiation higher and adds scries
for critical data. This also shuffles the calls in App's useEffect so
that they are more colocated with relevant concerns.
2022-03-24 19:18:45 -05:00
Hunter Miller
edb4094301 groups: fixing bad prod build and missing react-refresh 2022-03-24 19:13:36 -05:00
Hunter Miller
1e29177b2a interface: improving channel load time/ordering 2022-03-22 19:05:24 -05:00
Patrick O'Sullivan
dfcc0bf7c3 groups: remove debug statement 2022-03-22 15:20:16 -05:00
Patrick O'Sullivan
abd7e7f853 groups: Handle notifs received without links (like group updates) 2022-03-22 15:16:16 -05:00
Hunter Miller
ef4131061e Merge branch 'master' into next/groups 2022-03-21 18:20:51 -05:00