Commit Graph

279 Commits

Author SHA1 Message Date
Matilde Park
dfe186b96e Merge branch 'release/next-js' into release/next-userspace 2021-03-15 13:18:04 -04:00
James Acklin
c35c9b790a chat: pads 16px-square sigils out to 24px effective
fixes urbit/landscape#460
2021-03-12 12:28:11 -05:00
Liam Fitzgerald
205e827024
Merge remote-tracking branch 'origin/release/next-js' into release/next-userspace 2021-03-11 12:08:35 +10:00
Tyler Brown Cifu Shuster
633bcefc44 interface: removed conditional hooks 2021-03-10 16:32:25 -08:00
Logan Allen
63cfbd2ca4 Merge branch 'master' into release/next-userspace 2021-03-09 13:20:22 -06:00
Tyler Brown Cifu Shuster
5328aae1a6 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-09 10:58:29 -08:00
matildepark
c3d7c6eaa1
Merge pull request #4568 from urbit/lf/tutorial-polish
Tutorial: polish for release
2021-03-09 12:41:57 -05:00
Tyler Brown Cifu Shuster
7864d91b14 interface: grabbag of fixes for state hook implementation 2021-03-09 08:32:55 -08:00
Matilde Park
8f8786ff26 tutorialModel: fix syntax error 2021-03-08 21:44:43 -05:00
Tyler Brown Cifu Shuster
e7e03b0956 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-08 17:46:03 -08:00
Liam Fitzgerald
f2ed4258ea
Tutorial: fix profile step 2021-03-09 10:55:23 +10:00
Jimmy Young
34dab77c4a tutorial: Chat copy edit to match design 2021-03-08 16:45:30 -08:00
Tyler Brown Cifu Shuster
22278f49e3 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-08 12:02:08 -08:00
matildepark
487cb75313
Merge pull request #4551 from urbit/jo/gcp-docs
interface: correct gcgManager comment
2021-03-05 11:56:47 -05:00
Matilde Park
5f24254793 Merge branch 'release/next-js' into release/next-userspace 2021-03-05 03:22:41 -05:00
Liam Fitzgerald
6cecfaf430
Merge remote-tracking branch 'origin/master' into release/next-js 2021-03-05 15:24:14 +10:00
Jōshin
a1a581c510
interface: correct gcgManager comment 2021-03-04 21:22:25 -08:00
matildepark
3ac19c34d8
Merge pull request #4537 from urbit/lf/invite-fixes
invites: don't pin to top
2021-03-04 14:23:20 -05:00
matildepark
1dcdfed9c6
Merge pull request #4461 from urbit/lf/tutorial-revive
tutorial: reenable
2021-03-04 12:24:09 -05:00
Tyler Brown Cifu Shuster
55a64fe23d interface: Updated withState signature 2021-03-04 07:00:14 -08:00
Tyler Brown Cifu Shuster
cddbc114b9 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-04 06:57:54 -08:00
Liam Fitzgerald
84a5e15f51
interface: dont pin invites to top
Fixes urbit/landscape#481
2021-03-04 13:18:54 +10:00
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
Liam Fitzgerald
0b1926294f
UnreadMarker: fix dismiss on idle 2021-03-04 09:26:55 +10:00
Tyler Brown Cifu Shuster
04e481f8e9 interface: addressed store feedback; cleaning up 2021-03-02 21:45:50 -08:00
Tyler Brown Cifu Shuster
6d8fe7d41f Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-03-02 20:58:28 -08:00
Liam Fitzgerald
7a3bdccf14
Merge remote-tracking branch 'origin/release/next-js' into lf/virtual-graph 2021-03-03 11:31:02 +10:00
Liam Fitzgerald
464d96916f
tutorial: show days remaining 2021-03-02 13:57:03 +10:00
Liam Fitzgerald
38968bde94
Merge remote-tracking branch 'origin/release/next-js' into lf/tutorial-revive 2021-03-02 13:11:43 +10:00
J
35089f6656 interface: basic error handling on upload failures 2021-03-01 22:28:29 +00:00
J
af9e829464 interface: correct useEffect memo 2021-03-01 22:14:41 +00:00
J
f85ef9fcb4 interface: storage prop unifying gcp and s3
N.B. this boldly assumes that store state will always contain a valid
storage element that will contain gcp and s3 elements. This seems like a
fair assumption.
2021-03-01 22:14:19 +00:00
J
ce1c69e0d1 interface: braces around if statements 2021-03-01 21:36:00 +00:00
Tyler Brown Cifu Shuster
bd3e00886c interface: abstracted stores, unified naming 2021-03-01 10:38:01 -08:00
Liam Fitzgerald
89f63ac443
virtualscroller: ios viable 2021-03-01 12:56:40 +10:00
J
c66c197936 interface: fix regression in canUpload 2021-02-27 00:25:17 +00:00
J
d8a7ee56e1 interface: fix field name that broke GCP support
Tests would be great, wouldn't they...
2021-02-27 00:08:51 +00:00
J
c1b259af5b interface, gcp: don't spam the console with 500s
Options here were: make the get-token thread try to return a unit, or
write a different thread to check whether GCP Storage seemed to be
configured and poll on that thread, or move the whole thing into a Gall
app.

The compromise between time-to-implement and overall cleanliness seemed
to be to write a different thread that just checks whether the settings
fields have been poked. Unfortunately this means GcpManager is now a
somewhat hefty JavaScript state machine.

Took out the logic to check whether S3 was configured in GcpManager,
since it was really only there to prevent spamming the console with
500s. If you have both S3 and GCP Storage configured for some reason,
you will now use GCP per the logic in useStorage.
2021-02-26 23:42:57 +00:00
J
040d8c06ae interface: fix S3 canUpload logic
s3.credentials is always set, but the fields are all '' if s3 is not
configured. So prior to this change, if the user had configured an
active bucket, they would always be shown an upload dialog even if they
had no storage configured.
2021-02-26 22:12:52 +00:00
J
347d51fde9 interface: cleaner API, robust GcpManager retry
GcpApi now acts like other APIs.

Since GcpManager can no longer get at the token exipry by inspecting the
raw update, it must depend on the global store instead. This also means
it can check whether the user has configured S3, and not try to refresh
the token in that case.

In the case where no storage is configured, this will spam the console
with request failures since the thread returns 500 if there is no token.
Perhaps this is a good argument for making  the thread return a unit.
2021-02-26 22:10:15 +00:00
J
723a5a050e interface: check accessKey !== undefined
Also make it type-level optional rather than using explicit null.

Perhaps one day we will want to use undefined to denote "the thread
hasn't returned yet" and null for "GCP Storage is not configured."
Perhaps.
2021-02-26 20:29:05 +00:00
J
6b3397bd9f interface: supports both S3 and GCP Storage
The S3 client has another layer of indirection we missed. To support it
expediently, we just make the promise() method on GcpUpload do all the
work in GcpClient.
2021-02-26 20:18:40 +00:00
J
6ec574d32b interface: GcpManager fixes 2021-02-26 20:18:07 +00:00
Tyler Brown Cifu Shuster
1685c484e0 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-02-26 12:09:49 -08:00
Tyler Brown Cifu Shuster
934689b049 interface: convert s3 store to zustand 2021-02-26 11:57:38 -08:00
Matilde Park
622c3c3547 Merge branch 'release/next-js' into lf/settings 2021-02-26 13:45:33 -05:00
Matilde Park
b4d82a9e8a leap, settings: store leap settings as array 2021-02-26 13:41:40 -05:00
matildepark
b5d5e32c98
Merge pull request #4430 from mirtyl-wacdec/patch-2
landscape: ignore punctuation tokenizing URLs
2021-02-26 13:30:09 -05:00
Matilde Park
26788d9998 leap: "Profile and Settings" -> "profile" 2021-02-26 13:26:32 -05:00
mirtyl-wacdec
3206cfdb4d landscape: ignore punctuation tokenizing URLs
Tiny fix to the URL regex so that it doesn't store punctuation marks (e.g. ",") inside the urls, breaking the links.
2021-02-27 00:56:45 +07:00
Tyler Brown Cifu Shuster
ff71947fe8 Merge branch 'release/next-js' of https://github.com/urbit/urbit into zustand-stores 2021-02-25 19:51:06 -08:00
Tyler Brown Cifu Shuster
12645644f7 interface: covert contact store to zustand 2021-02-25 19:46:45 -08:00
Liam Fitzgerald
6fa0cd29e2
settings: migrate 2021-02-26 13:05:31 +10:00
J
92dd46b176 GcpClient: remove unused BASE_URL 2021-02-26 00:49:57 +00:00
J
1c0d8e524e interface: thread gcp through props
Basically just a grep for 's3', and I added gcp wherever it looked like
I ought to.
2021-02-26 00:38:01 +00:00
J
11a58115b0 interface: implement useStorage and withStorage
useS3 and withS3 are now gone. Storage should work with both GCP and S3,
preferring GCP if available and falling back.
2021-02-26 00:07:15 +00:00
J
4814d61c48 interface: unnecessary const 2021-02-25 23:08:41 +00:00
J
a6d4c3a431 interface: proof-of-concept GCP upload
As of this commit, the Links app uploads files to GCP storage.

(Note that it no longer uploads to S3. Still need to support both.)
2021-02-25 22:52:18 +00:00
matildepark
c63ffbdb73
Revert "landscape: allow most patp punctation in tokenize" 2021-02-25 13:24:05 -05:00
Liam Fitzgerald
355c22b564
virtualscroller: teleport scroll manipulation 2021-02-25 11:05:40 +10:00
J
9fa086e0d3 interface: extract GcpManager
Now the API is just an API. (I did still have it produce an expiry time,
since it makes the refresh loop easier to do.)

Not yet storing the token now.
2021-02-25 00:31:39 +00:00
Liam Fitzgerald
3147625d6d
Merge remote-tracking branch 'origin/release/next-js' into lf/settings 2021-02-23 13:52:18 +10:00
Liam Fitzgerald
13f0ea755b
settings: sidebar layout 2021-02-23 13:32:41 +10:00
Liam Fitzgerald
02ec8159a6
settings: add leap config 2021-02-22 16:58:52 +10:00
Liam Fitzgerald
b6fb575ebc
settings: CalmEngine on settings-store 2021-02-22 15:37:03 +10:00
Matilde Park
8f63b5dcf1 Merge branch 'release/next-js' into lf/tutorial-revive 2021-02-19 17:53:04 -05:00
Liam Fitzgerald
a67abe44cb
tutorial: sort tutorial group first 2021-02-19 14:27:58 +10:00
Liam Fitzgerald
a373559626
tutorial: revive in omnibox 2021-02-19 14:23:39 +10:00
Liam Fitzgerald
2ac9919f41
tutorial: dynamic height 2021-02-19 13:22:39 +10:00
Liam Fitzgerald
a58c2a143e
leap: add category blacklist 2021-02-17 16:48:05 +10:00
Tyler Brown Cifu Shuster
1b19a95fea interface: cleaning up imports 2021-02-14 14:11:27 -08:00
Liam Fitzgerald
cefa80cee5
Omnibox: Add Messages to results 2021-02-12 11:00:24 +10:00
Liam Fitzgerald
a8f560f952
Tutorial: disable 2021-02-12 08:04:22 +10:00
Matilde Park
1961b606f3 Merge branch 'release/next-userspace' into lf/tutorial-fixes 2021-02-11 12:17:22 -05:00
Liam Fitzgerald
8c3a9a2546
ViewProfile: left align pinned groups
Fixes urbit/landscape#394
Fixes urbit/landscape#388
2021-02-11 18:08:13 +10:00
Liam Fitzgerald
1f251667cb
Omnibox: conditionally show channel create on permissions
Fixes urbit/landscape#386
2021-02-11 16:22:02 +10:00
Liam Fitzgerald
fe22d33696
Tutorial: bring into line with designs 2021-02-11 16:13:59 +10:00
Liam Fitzgerald
76de225b4a
interface: untangle event propagation in modals 2021-02-11 16:08:40 +10:00
Liam Fitzgerald
7568ecc2b4
tutorial: launch from omnibox 2021-02-11 10:42:11 +10:00
Liam Fitzgerald
0995019ef9
interface: correct modal stacking behaviour 2021-02-10 17:17:14 +10:00
Liam Fitzgerald
303dc6b3bd
chat-fe: pretty group joining link 2021-02-10 16:27:49 +10:00
Liam Fitzgerald
548f2143f8
Merge pull request #4388 from urbit/lf/tutorial
interface: add overlay tutorial
2021-02-09 13:31:06 +10:00
matildepark
05c1f286a3
Merge pull request #4399 from urbit/lf/profile-tweaks
Profile: tweak sigil size
2021-02-08 21:43:56 -05:00
Liam Fitzgerald
a2cd566dd2
sigil: turn padded into padding and take number 2021-02-09 12:24:28 +10:00
Liam Fitzgerald
ab470960eb
tutorial: adjust for mobile 2021-02-09 12:10:06 +10:00
Liam Fitzgerald
a07b8cc0b5
Merge remote-tracking branch 'origin/release/next-userspace' into lf/hark-loading 2021-02-09 11:25:51 +10:00
Liam Fitzgerald
003738f95a
Inbox: make useLazyScroll account for archived notifications
useLazyScroll was not accounting for the case where a notification would
be archived. This would mean that archiving a lot of notifications
without scrolling would erroneously not load more. Accounts for this
case by passing a count argument to useLazyScroll, which is then
compared against its previous value. If the previous value is greater
than the new value, (i.e. a notification was archived) then check if we
should load more.
2021-02-08 14:04:55 +10:00
Liam Fitzgerald
71ae452132
interface: add usePreviousValue hook 2021-02-08 14:04:43 +10:00
Liam Fitzgerald
07518e5cff
interface: inject location of tutorial group at compile tim 2021-02-08 11:02:52 +10:00
Liam Fitzgerald
2a7ee29dc5
interface: display tutorial interface 2021-02-08 10:32:45 +10:00
Liam Fitzgerald
cca47cc3e7
interface: sketch out tutorial state 2021-02-08 10:29:47 +10:00
matildepark
45cadff09f
Merge pull request #4382 from urbit/lf/fe-fixes
interface: all assigned QA bugs
2021-02-04 19:28:36 -05:00
Liam Fitzgerald
d9ab3c9fba
interface: stop propagation reshowing modal 2021-02-05 09:23:18 +10:00
Logan Allen
fb7db5244b interface: fix Profile and Settings link in omnibox 2021-02-04 15:12:41 -06:00
Matilde Park
1dd08d8504 Merge branch 'release/next-js' into release/next-userspace 2021-02-03 19:08:08 -05:00
Matilde Park
67f7ebbf8a links, publish: use tokenizeMessage for comments
Fixes urbit/landscape#271.
2021-02-03 18:13:03 -05:00
Logan Allen
ea2d740d1c interface: fix group joining and display of share profile view 2021-02-03 13:09:39 -06:00
Liam Fitzgerald
60b53ccbd5
Omnibox: rewrite in hooks, add direct ship jump 2021-02-03 16:30:28 +10:00
Matilde Park
f0033ab02f landscape: add "messages" workspace and logic 2021-02-02 18:45:40 -05:00
Matilde Park
378ad0690f landscape: "DMs + Drafts" -> "My Channels" 2021-02-02 15:38:12 -05:00