Commit Graph

1973 Commits

Author SHA1 Message Date
Fang
a155da6dec
Merge pull request #2587 from urbit/m/dbug-cleaner-subs
dbug: subscription searching & printing improvements
2020-03-24 10:40:45 +01:00
Liam Fitzgerald
ca8f436fd0 chat-fe: fix incorrect property in css 2020-03-24 11:01:46 +10:00
Liam Fitzgerald
302c3dc4cc chat-fe: improve name legibility in autocomplete 2020-03-24 10:50:53 +10:00
Philip Monk
1599937c81
clay: add option to skip queue
Makes it so that |cancel %force skips the next thing in the queue if
you're not in the middle of something.  If you are in the middle of
something, it skips the thing you're in the middle of (just like naked
|cancel).

This should resolve issues where |cancel doesn't drain the queue.
2020-03-23 15:53:18 -07:00
Fang
7415a2f66a
Merge pull request #2589 from urbit/m/de-purl-com
zuse: allow com in de-purl query parsing
2020-03-23 20:20:05 +01:00
Fang
f2986af4b3
Merge pull request #2582 from urbit/m/chat-backlog-limit
chat-view: limit initial scrollback to 25 msgs
2020-03-23 19:14:26 +01:00
Fang
303b4b2756
zuse: better ethereum abi data type
Considering some of the options here were atoms, not cells, $% wasn't
appropriate, and led to *etyp:abi:ethereum resulting in ford %ride execution
failure. Simply using $? instead would result in a fish-loop, so here we split
the atom cases from the tagged union ones with a $@.
2020-03-23 12:43:40 +01:00
Fang
87dd953136
zuse: allow com in de-purl query parsing 2020-03-22 01:21:03 +01:00
Fang
c0f93c7306
dbug: allow easily printing all subs
We had no easy way to print all %incoming or %outgoing subscriptions.
Now, passing ~ instead of [%ship ~zod] or similar, will match all.
2020-03-21 18:32:39 +01:00
Fang
50f7dc85fa
dbug: cleaner subscription printing
Previously, the pretty-printing for %incoming and %outgoing results was hanging
on to and displaying irrelevant type information: "_list_ of subscriptions",
"wire with _head and tail_", and so on.

Here, we move to producing tangs, instead of vases, and print those. For the
%incoming and %outgoing cases, we print a line for every subscription, sorting
them by path and wire respectively, and giving clean, easily readable output.
2020-03-21 18:29:33 +01:00
Liam Fitzgerald
6c403f5135 chat-fe: match autocomplete to designs 2020-03-21 13:52:41 +10:00
Liam Fitzgerald
9c759a7e68 chat-fe: autocomplete nicknames in message input 2020-03-21 13:49:57 +10:00
Philip Monk
184a0f52a5
gall: add |gall-sear 2020-03-20 15:32:23 -07:00
Fang
376af254af
chat-view: limit initial scrollback to 25 msgs
Provided "load backlog on-scroll" actually works, you don't really need
all that much on initial load.
2020-03-20 20:47:15 +01:00
Isaac Visintainer
e5f701e4a5 launch: add startup bool 2020-03-20 12:06:10 -07:00
ixv
9f997fb5b8
Merge pull request #2579 from urbit/m/chat-hook-cleanup-subs
chat-hook: clean up pre-OS1 subscriptions
2020-03-20 11:35:15 -07:00
Fang
1e1c26e306
chat-hook: clean up pre-OS1 subscriptions
If chats with identical resource paths were created, that would result
in chat-hook seeing updates twice.

These "/mailbox wire sub to local chat-store" subscriptions aren't
created by the current logic anymore, and as such any existing ones
should be eradicated.
2020-03-20 17:56:17 +01:00
Liam Fitzgerald
14399777e0 chat-fe: ignore comets in autocomplete 2020-03-20 15:30:04 +10:00
Isaac Visintainer
a645f939ad release: urbit-os-v1.0.5 2020-03-19 16:40:17 -07:00
Philip Monk
5972dc50a3
gall: remove printf and add pill 2020-03-19 11:34:19 -07:00
Isaac Visintainer
83fc700d41 release: urbit-os-v1.0.4 2020-03-19 11:19:30 -07:00
Fang
bee7f67d45
Merge pull request #2518 from urbit/m/chat-hook-watch-nack
chat-hook: clear all subscriptions on watch-nack
2020-03-19 15:35:26 +01:00
Fang
a162ab0e73
chat-hook: handle watch-nack for /store wires too
Similar to /backlog wires, we want to emulate %remove behavior on-nack.
2020-03-19 15:32:40 +01:00
Jared Tobin
7a7fe45677
Merge branch 'm/chat-groupify-extra' (#2546)
* origin/m/chat-groupify-extra:
  chat-view: %delete even without association
  frontend: apply ec6c2ed69 to link, publish, groups
  chat fe: clarify copy
  chat fe: support adding chat to existing group
  chat fe: invite search with/out ships
  chat-view: allow %groupify into existing group
  chat-view: add docs for %create action

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-19 14:35:59 +04:00
Jared Tobin
2b794da987
Merge branch 'philip/goad-force' (#2539)
* origin/philip/goad-force:
  goad: run with %force on kernel change

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-19 14:34:07 +04:00
Philip Monk
cf9ef764f1
gall: remove pending messages from breached ship
When a ship breaches, we remove all messages that have yet to be
delivered to an app (eg if it's not yet started).  We also add
|gall-sear to do this manually, but this shouldn't be needed in normal
operation.

Finally, to unblock ~zod and ~bus on mainnet, we sear one particular
ship automatically on loading hood.  It cannot be done manually because
no userpace changes can be made until it's unblocked.
2020-03-18 21:05:06 -07:00
Fang
d823448635
chat-view: %delete even without association
Previously, running %delete had a hard dependency on a (metadata-store)
association being present for the chat. If a remotely-hosted chat got
deleted, that would delete the association, preventing us from deleting
the chat for ourselves.

Now, we simply neglect to do related metadata deletions if no
association was present in the first place.
2020-03-19 01:33:33 +01:00
Fang
54eece11af
chat-view: allow %groupify into existing group
Will add the chat to an existing group, optionally adding chat members
who aren't part of the group yet to the group.
2020-03-18 21:54:28 +01:00
Fang
64e60b6b57
chat-view: add docs for %create action 2020-03-18 21:40:14 +01:00
Isaac Visintainer
a9f8a2bd88 release: urbit-os-v1.0.3 2020-03-17 18:04:34 -07:00
ixv
867dbe08ab
Merge pull request #2538 from urbit/philip/bar-stack
arvo: Multi-stack drifting
2020-03-17 17:38:14 -07:00
ixv
4cb9d64623
Merge pull request #2534 from urbit/philip/ames-verb
ames: print num-fragments in packet verbage
2020-03-17 17:07:08 -07:00
Philip Monk
b830cf1486
goad: run with %force on kernel change
In many cases running without %force is insufficient because ford
crashes while unsubscribing.  This should fix some cases of OTAs being
received but not processed.
2020-03-17 17:06:48 -07:00
Fang
04b6ff9704
Merge pull request #2510 from urbit/m/chat-update-numbers
chat-store: include msg sequence nrs in update
2020-03-18 01:02:31 +01:00
Philip Monk
7d7f4133a6
arvo: add bar stack to hoon stack trace
We have three stacks: the hoon stack, bar stack, and duct stack.  This
turns the bar stack to a list of ducts and adds it to the hoon stack.
This tells you the ducts of the moves that caused the move where you
crashed.

See:

recover: dig: intr
crud: %belt event failed
bail: intr
  bar-stack
~[
  ~[/g/use/spider/~zod/build/~.dojo_0v5ogno.5anji.vn3f6.4gs7t.6r2ft /d //term/1]
  ~[/d //term/1]
  ~[/g/use/spider/~zod/find/~.dojo_0v5ogno.5anji.vn3f6.4gs7t.6r2ft /d //term/1]
  ~[/g/use/dojo/~zod/out/~zod/spider/drum/wool /d //term/1]
  ~[/d //term/1]
  ~[/g/use/dojo/~zod/drum/hand /d //term/1]
  ~[/g/use/hood/~zod/out/~zod/dojo/drum/phat/~zod/dojo /d //term/1]
  ~[/d //term/1]
  ~[//term/1]
]
call: failed
/~zod/home/~2020.3.17..23.14.11..50e0/sys/vane/ford:<[6.128 3].[6.220 5]>
/~zod/home/~2020.3.17..23.14.11..50e0/sys/vane/ford:<[6.129 3].[6.220 5]>
/~zod/home/~2020.3.17..23.14.11..50e0/sys/vane/ford:<[6.132 3].[6.220 5]>
...
2020-03-17 16:31:38 -07:00
Philip Monk
3b9f7249d3
ames: print num-fragments in packet verbage
Gives you a poor man's progress bar.  For example, to determine how much
of an OTA you've downloaded from your sponsor, run:

|ames-sift (sein:title our now our)
|ames-verb %rcv

and then to turn it off:

|ames-verb
2020-03-17 14:03:48 -07:00
Fang
9498d9afa5
chat-cli: skip catch-up if chat-store not booted
This way we don't just crash on the scry that follows.
2020-03-17 15:49:01 +01:00
Jared Tobin
80ab15e7b6
Merge branch 'pkova/master' (#2423)
* pkova/master:
  hoon: fix ket not working past tistar
2020-03-17 16:56:39 +04:00
Isaac Visintainer
9c495aa38a release: urbit-os-v1.0.2 2020-03-16 17:55:56 -07:00
ixv
254c3cf3a7
Merge pull request #2527 from urbit/ixv/publish-foreign-group-fix
publish: fix permissions issue
2020-03-16 17:28:46 -07:00
ixv
abc39cdc04
Apply suggestions from code review
Co-Authored-By: Fang <git@fang.io>
2020-03-16 17:05:23 -07:00
Isaac Visintainer
3f882b5a90 publish: fix permissions bug when notebook is associated with a foreign hosted group 2020-03-16 16:45:00 -07:00
Fang
be53e26d15
Merge pull request #2524 from urbit/m/chat-cli-shortcode
chat-cli: absolute parity wrt "shortcodes"
2020-03-17 00:38:27 +01:00
Fang
4b5a02fac8
Merge pull request #2480 from urbit/m/chat-groupify
chat: groupify
2020-03-16 18:37:29 +01:00
Fang
db5475b1ae
chat-cli: absolute parity wrt "shortcodes"
Downgrades unmanaged chat paths to their uglified versions, as used by
web chat. Removes "group-based" indicators and makes them implicit in
shorter paths instead.
2020-03-16 17:46:58 +01:00
Fang
6ac52b5523
chat-cli: set sane display width, if zero
Under mysterious conditions, chat-cli might get into a state where its
rendering width is set to zero. This makes sure we set it back to 80
if that's the case.

This commit is mostly just precaution.
2020-03-16 17:43:46 +01:00
Jared Tobin
1dd2b77222
release: urbit-os-v1.0.1 2020-03-16 15:10:58 +04:00
Jared Tobin
c0cc4a1db8
Revert "Merge branch 'liam-fitzgerald/hoon-spot' (#2247)"
This reverts commit 046506f9d4, reversing
changes made to 6ef08962ef.

I'm reverting this as we're moving to a new branch/release model in
which breaching changes (as this one is) will live on a long-running
'next' branch, rather than alongside non-breaching changes in master.

This revert should itself be reverted on the 'next' branch.
2020-03-16 10:51:00 +04:00
Fang
62dfc5fd3c
chat-hook: clear all subscriptions on watch-nack
We would remove the entry from state, but not clean up its mailbox subscription.
2020-03-15 17:37:57 +01:00
Fang
9b5bc80016
chat-store: include msg sequence nrs in update
It was filling the number.envelope prior to adding the envelope to the
mailbox, but wasn't actually including that change in the %message(s)
update that was getting sent out.

This makes +append-envelope return both the updated mailbox _and_ the
modified envelope, which we then use in our outgoing update.
2020-03-14 23:15:41 +01:00
Fang
123213b3be
chat-cli: ensure bound map is sorted
During upgrade, we gassed _in_ a map, instead of _by_, causing it to use
set-style sorting, leading to incorrect lookups.

This fixes that upgrade logic, and re-builds the map for existing instances.
2020-03-13 21:45:49 +01:00
Logan Allen
43e4ca149e contact-hook: re-establish connection to group-store if subscription failed during ota 2020-03-13 19:32:28 +00:00
Fang
9793dccef0
chat-view: support %groupify
This upgrades an existing, unmanaged village chat into a full-fledged
group plus chat.
2020-03-13 18:15:34 +01:00
Fang
b77ab0f122
chat-view: add scry helper 2020-03-13 18:15:34 +01:00
yosoyubik
b8d5227c21 hoon: +apt:by check for duplicate keys
Fixes https://github.com/urbit/urbit/issues/2413
2020-03-13 05:19:10 +01:00
pkova
0d079b537c hoon: fix ket not working past tistar 2020-03-13 00:37:33 +02:00
ixv
54d1e7eb63
Merge pull request #2450 from urbit/m/dbug-state-slapper
dbug: allow complex, hoon-based state queries
2020-03-12 11:09:26 -07:00
Philip Monk
2ea8800710
behn: drop drip failures
Restores previous behavior.  This is wrong, but without it we fail when
vanes (specifically Ford) crash on goof.
2020-03-12 09:39:27 -07:00
Fang
9a6bde765b
dbug: allow complex, hoon-based state queries
+dbug [%state 'some-hoon'] now allows you to run some-hoon against the
application's state. That hoon has access to the bowl and stdlib for
more dbugging convenience.
2020-03-12 16:40:35 +01:00
Jared Tobin
3d40f3196c
Merge branch 'philip/breach-time' (#2433)
* origin/philip/breach-time:
  eth-watcher: reduce required number of confirmations

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-12 11:24:10 +04:00
Jared Tobin
edbc9ba553
Merge branch 'arvo-no-print-loop' (#2422)
* origin/arvo-no-print-loop:
  arvo: removes looping crash printf

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-12 11:24:10 +04:00
ixv
33c422fca6
Merge pull request #2447 from urbit/la-unsubscribed-state
chat-hook: added ability to subscribe to chat-hook state from the front-end
2020-03-11 23:36:42 -07:00
Logan Allen
a0a39b87dc chat-hook: watch-ack successfully for store subscripttion kills 2020-03-11 23:13:31 -07:00
Isaac Visintainer
ba43f03726 chat-hook: resubscribe when kicked from chat-store 2020-03-11 22:21:56 -07:00
Logan Allen
84a9f23af6 chat-hook: fix ota chat backlog duplication 2020-03-11 20:43:41 -07:00
Logan Allen
cac98b2284 chat-hook: don't send invites upon on-load 2020-03-11 20:33:38 -07:00
Logan Allen
872c620c5a chat-js: styled the resubscribe element 2020-03-11 20:33:01 -07:00
Fang
55aa0cb610
apps: augment with /lib/dbug 2020-03-12 01:33:48 +01:00
Logan Allen
64a62df461 chat-hook: removed comments 2020-03-11 16:45:03 -07:00
Logan Allen
51eebf3407 chat-hook: send updates to synced every time the object changes 2020-03-11 16:45:01 -07:00
Logan Allen
64938e24e9 chat-hook: added ability to subscribe to chat-hook state from the frontend 2020-03-11 16:44:15 -07:00
ixv
d835cdbe0d
Merge pull request #2445 from urbit/m/link-proxy-initial
link-proxy-hook: correctly scry initial response
2020-03-11 16:31:19 -07:00
ixv
7ef54a1f09
Merge pull request #2442 from urbit/chat-ota-fix
chat-hook: ota fix and improvement on backlog fetching
2020-03-11 16:30:15 -07:00
Fang
f765b34459
link-proxy-hook: correctly scry initial response
Was using "manual" scries, and incorrect ones at that. Would crash, causing
subscriptions to not go through. Now uses the helper function and correct paths.
2020-03-11 23:38:09 +01:00
ixv
10f1e7e667
Merge pull request #2434 from urbit/m/chat-cli
chat-cli: support group-based chats
2020-03-11 14:11:07 -07:00
Fang
064131e530
chat-cli: render incoming invites
Also removes message from invites sent from chat-cli,
and refactors a scry.
2020-03-11 21:52:26 +01:00
Logan Allen
10e0dca58c chat-hook: ota fix and improvement on backlog fetching 2020-03-11 12:12:51 -07:00
édouard
4aadbccfae contacts, publish: fixed/edited Tile icons
Turned the assets into ones that will play nice with dark mode (will properly invert their coloration without having weird visual zones)
2020-03-11 15:03:41 -04:00
Fang
dfacd619eb
chat-cli: more-conventional state naming 2020-03-11 00:42:04 +01:00
Fang
22cc6ae629
chat-cli: support un- *and* managed chats
Re-enables chat creation, touches up invite logic, and makes everything
work with the new "un/managed" attribute of chats.

Changes the +target type, so requires state transition. We use that
opportunity to clean up our messages mirror (memory reclamation).

"Unmanaged" chats should work the same as they did before.
Group-based chats are secondary citizens, but supported by prepending
"group " to whatever target you want to use. ie:
;join group ~marzod/secret-club  ::  join a group-based chat
;group ~marzod/secret-club       ::  target a group-based chat

The latter case should be rarely needed, as glyphs remember this
attribute of their bound target.

Creating a group alongside a chat is supported through:
;create village-with-group /cool-kids

You can then invite to that group (and by extension the associated chat)
by doing:
;invite group /cool-kids ~rinsed-walrus
2020-03-11 00:40:21 +01:00
Philip Monk
9375616335
eth-watcher: reduce required number of confirmations
To 30 blocks + 30 blocks + 0-5 minutes == about 15 minutes total.
Further reduction should be possible, but requires changing the
algorithm a bit.  We don't want to reduce the number of confirmations
below about 30, though, since we don't handle reorganizations well.

See #2414.
2020-03-10 16:12:56 -07:00
Fang
4740fdd493
chat-cli: use example of state instead of type
This prepares us for versioned state, and is more consistent with modern
app code style.
2020-03-10 23:56:24 +01:00
Fang
2c1539742b
chat-cli: add scry helper 2020-03-10 23:31:18 +01:00
Isaac Visintainer
5114cebfd7 publish: stop adding newlines, and fix post snippet on edit 2020-03-10 15:08:56 -07:00
Isaac Visintainer
0e9ea8c039 publish: fix notebook deletion card flushing bug 2020-03-10 15:08:38 -07:00
ixv
073fc4be34
Merge pull request #2429 from urbit/eyre-login
eyre: upon login redirect parameter being empty, redirect to /
2020-03-09 20:44:23 -07:00
ixv
305a4874e2
Merge pull request #2428 from urbit/remote-pub-metadata
publish: update remote metadata group properly and only send invites …
2020-03-09 20:43:44 -07:00
Logan Allen
bd947421ca eyre: upon login redirect parameter being empty, redirect to / 2020-03-09 17:16:43 -07:00
Logan Allen
9a6a7b147d publish: update remote metadata group properly and only send invites for unmanaged notebooks 2020-03-09 17:05:06 -07:00
Logan Allen
17bea9a5bd chat: only send invites for unmanaged chats 2020-03-09 16:44:16 -07:00
Logan Allen
e0583be364 Merge branch 'merge-la-ota-work' of github.com:urbit/urbit into merge-la-ota-work 2020-03-09 12:40:43 -07:00
Logan Allen
e8c95157d4 chat-hook: emit cards upon upgrade AND store cards to be sent later upon chat-store trigger to support either order of updating 2020-03-09 12:40:04 -07:00
Logan
e160f0b0f4
Update pkg/arvo/app/contact-hook.hoon
Co-Authored-By: Fang <git@fang.io>
2020-03-09 12:29:49 -07:00
Joe Bryan
eb05e71d60 arvo: removes looping crash printf 2020-03-09 00:41:04 -07:00
Logan Allen
3824402200 chat: upgraded chat-hook to move old chats to /~/chat-path
chat: ota attempt

chat: ota triggers chat-store to tell chat-hook to send cards to update chat-store's state

contact-view: commented out avatars and base64

chat: cleaned up commits
2020-03-08 13:05:10 -07:00
Jared Tobin
6ccc843165
Merge branch 'arvo-errors' (#2366)
* origin/arvo-errors: (35 commits)
  pill: all
  vane: jet-hints all vanes for profiling
  arvo: refines crash printfs
  arvo: fix wire (and adapt old) for %vega reset notification
  arvo: removes all vase literals from |va
  arvo: removes all traces of meta-meta card reduction
  arvo: cleanup per review
  arvo: removes vestigial |is core
  arvo: remove refactoring comments
  arvo: replace $milt with $meta
  arvo: replace $mill with $maze
  worker: sends new error-notification events
  arvo: removes %gave, generalizes %hurl
  vane: prints error notifications where not handled
  behn: forward %drip error notifications, refactor %crud handling
  ames: downcast %hear error notification to %hole
  vane: downcast all error notifications to %crud
  arvo: removes (commented out) legacy event routing
  test: updates vane calling convention
  dill: "downcast" +call error notification to %crud
  ...

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-06 13:45:33 +04:00
ixv
3e4d73d9e1
Merge pull request #2403 from urbit/publish-meta-ota
publish: check if metadata-store has started before scrying it
2020-03-05 20:35:27 -08:00
ixv
5b21dbce25
Merge pull request #2402 from urbit/ota-meta-hook
drum: start metadata-hook on OTA
2020-03-05 20:34:39 -08:00
Isaac Visintainer
21e44f6c5d Merge branch 'ota-meta-hook' (#2402)
* ota-meta-hook:
  drum: start metadata-hook on OTA

Signed-off-by: Isaac Visintainer <isaac.visintainer@gmail.com>
2020-03-05 20:33:18 -08:00
Logan Allen
2ce60e9f0d drum: start metadata-hook on OTA 2020-03-05 15:50:18 -08:00
Logan Allen
1a8dfccf22 publish: check if metadata-store has started before scrying it 2020-03-05 15:43:12 -08:00
Logan Allen
b8987f6988 drum: start metadata-hook on OTA 2020-03-05 15:20:44 -08:00
ixv
3c039bce39
Merge pull request #2378 from urbit/m/link-meta
link: metadata integration
2020-03-05 15:09:59 -08:00
Fang
fd9c6cee5d
link fe: various ui/ux fixes based on feedback
Also sneaks in a grammar correction for link-listen-hook documentation.
2020-03-05 22:42:02 +01:00
Joe Bryan
67cef638c4 Merge branch 'master' into arvo-errors
* master: (484 commits)
  king: Slight CLI cleanup and fix test build.
  king: Add command-line flags to configure HTTP and HTTPS ports.
  groups: reduce metadata updates, removal
  chat: reducer handles metadata removal
  groups: exclude group metadata from channels list
  groups: set and surface group name metadata
  groups: remove dummy 'share' flow, 'default' group
  contacts: rename, migrate '~contacts' to '~groups'
  sh/release: rename vere release tarballs
  vere: patch version bump (v0.10.3 -> v0.10.4.rc1) [ci skip]
  pills: updated brass and solid
  chat: pull room contacts from associated group
  chat: spell 'permanent' correctly
  eyre: remove padding from 'access' input
  chat: only delete metadata for a chat if you created it
  chat: settings inputs add borders on focus
  vere: disables gc on |mass in the daemon process
  chat: remove console.log from metadataAction
  chat: style fixes during review, use metadata-hook
  chat: edit description, color settings
  ...
2020-03-05 11:56:49 -08:00
ixv
a16e40228d
Merge pull request #2399 from urbit/publish-metadata
publish: integration with metadata
2020-03-05 11:56:03 -08:00
Logan Allen
37820e5f51 publish: fill in title and description when importing, style 2020-03-05 11:44:34 -08:00
Logan Allen
3ace135c18 publish: integration with metadata 2020-03-04 15:56:48 -08:00
ixv
ab793f1f70
Merge pull request #2397 from urbit/mp/os1/contacts-groups
contacts: prune unmanaged "share" flow, rename to "groups"
2020-03-04 14:42:41 -08:00
Matilde Park
aee2496588 contacts: rename, migrate '~contacts' to '~groups' 2020-03-04 16:13:12 -05:00
Fang
3e7f0dd9d8
link-view: support %delete and %invite actions
%delete tries to be as local as possible in its impact.
%invite deals with un/managed branching for you.
2020-03-04 22:11:54 +01:00
Fang
1f4e14f38a
link-view: include missing %create steps
Expose the metadata and set up a permission set for the group.
2020-03-04 22:06:24 +01:00
Fang
353f61cdd3
link: avoid duplicate entries when merging lists
Otherwise we might store entries we had already heard previously.
2020-03-04 21:22:04 +01:00
Fang
396d13ee1a
Merge branch 'os1-rc' of https://github.com/urbit/urbit into m/link-meta 2020-03-04 18:55:29 +01:00
Jared Tobin
a1d489d977
Merge branch 'os1-rc' (#2365)
* origin/os1-rc: (439 commits)
  pills: updated brass and solid
  chat: pull room contacts from associated group
  chat: spell 'permanent' correctly
  eyre: remove padding from 'access' input
  chat: only delete metadata for a chat if you created it
  chat: settings inputs add borders on focus
  chat: remove console.log from metadataAction
  chat: style fixes during review, use metadata-hook
  chat: edit description, color settings
  chat: add update-metadata to metadata reducer
  chat: revise api.js to match data structures
  metadata-json: add json to action parsers
  chat: construct settings page for metadata
  chat: correct bottom border on join links
  chat: copy shortcodes
  chat: linkify unmanaged chats
  metadata-hook: support group members other than host creating shared resources
  contacts: add bg-gray0 to root page
  chat + contact views: updated for style and to assert that group-path must be equal to app-path if there are ships in the members set
  contacts: changed color + copy of "add to group" button
  ...
2020-03-04 15:48:05 +04:00
Logan
75a702c5b8
Merge pull request #2392 from urbit/mp/os1/launch-pad
eyre: remove padding from 'access' input
2020-03-03 18:31:09 -08:00
Matilde Park
dd402e315f eyre: remove padding from 'access' input 2020-03-03 19:52:04 -05:00
Logan Allen
3210eac7e6 chat: only delete metadata for a chat if you created it 2020-03-03 16:10:54 -08:00
Joe Bryan
6322639436 vane: jet-hints all vanes for profiling 2020-03-03 14:17:42 -08:00
Joe Bryan
c94b5c25cb arvo: refines crash printfs 2020-03-03 14:17:42 -08:00
Joe Bryan
066e994567 arvo: fix wire (and adapt old) for %vega reset notification 2020-03-03 12:58:56 -08:00
Logan
d5b382e80a
Merge branch 'os1-rc' into foreign-metadata 2020-03-03 12:37:27 -08:00
Fang
10842ecd92
link fe: remove references to chat & security 2020-03-03 18:31:08 +01:00
Fang
e524ffbdf6
link-view: use metadata-hook as advised in #2387 2020-03-03 16:47:07 +01:00
Fang
950023e448
link-view: in mark, use terms for +of cases 2020-03-03 16:26:08 +01:00
Matilde Park
15b5395f3c metadata-json: add json to action parsers 2020-03-02 22:30:32 -05:00
Logan Allen
eb1561cfc4 metadata-hook: support group members other than host creating shared resources 2020-03-02 16:50:20 -08:00
Fang
a382f7d41b
Merge branch 'os1-rc' of https://github.com/urbit/urbit into m/link-meta 2020-03-03 00:16:41 +01:00
Fang
111333ec93
link: can create managed groups for new collections
Just defers to contact-view for managed group creation.
2020-03-03 00:12:05 +01:00
Joe Bryan
3444e20a92 test: use %ford pit-shortcircuit instead of cache-priming 2020-03-02 12:20:53 -08:00
Joe Bryan
18f199b2c3 ford: restores pit-shortcircuit, but only during boot 2020-03-02 12:20:21 -08:00
Logan Allen
b8614cc7d8 chat + contact views: updated for style and to assert that group-path must be equal to app-path if there are ships in the members set 2020-03-02 11:10:29 -08:00
Logan Allen
e66fd1cbd6 chat-view: send invites when creating chat and group already exists 2020-03-01 17:08:16 -08:00
Logan Allen
5915840237 contacts + chat: move permission-hook syncing for managed groups to contact-view so everyone can depend on it 2020-03-01 16:38:46 -08:00
Logan Allen
bb0f56f17a chat + contacts: integrate managed groups with metadata 2020-03-01 15:40:49 -08:00
Fang
0539f3ca1f
link fe: metadata integration
- finds resources & displays details using metadata-store
- supports creating new collections for groups
- supports creating new collections with new unmanaged group
- supports receiving invites for new (unmanaged) collections
2020-03-01 02:10:35 +01:00
Fang
115fd1c14c
metadata-store: never crash fetching group metadata
In order to track & respond to all group-related metadata, hooks may
want to subscribe to the metadata-store in response to group creation.
In that case it is possible that there are no entries for the group-path
in group-indices yet.

This makes us fall back to the empty set in case group-indices has no
entry for the group-path yet.
2020-03-01 02:09:25 +01:00
Fang
0658367aaf
link hooks: discover resources with metadata-store
Instead of assuming groups to be singular resources, now depends on
metadata-store to discover %link resources, and the groups associated
with those.
2020-03-01 02:09:25 +01:00
Fang
068a8c98d6
metadata: add helper lib for common queries 2020-03-01 02:09:24 +01:00
Logan
3e235146ee
Merge pull request #2371 from litpub/bug/scroll-to-bottom-on-new-chat
chat: Fixes #2347 pushes chat to bottom on <Chat> mount
2020-02-29 16:35:38 -08:00
Jared Tobin
9c1d3090c9
Merge branch 'lukechampine/crypto-tests' (#2222)
* lukechampine/crypto-tests:
  test: add bip32 vectors
  test: add scrypt vectors
  test: add hmac vectors
  test: add ed25519 vectors
  test: add expect arm
  test: add AES SIV mode vectors
  zuse: split sivb keys at correct offset
  test: add AES-CMAC vectors
  test: add AES CTR mode vectors
  test: add AES CBC mode vectors
  test: add AES ECB mode vectors
2020-02-29 19:39:35 +04:00
édouard
5474680e5c soto: swap out tile images
The previous Tile.png for the Dojo module (Soto) was a stylized rendering of "barcen" and could be seen as confusing. Fixing up the image to appear more *actually* glyph-like.
2020-02-28 16:16:37 -05:00
~litpub
701f83bc21 Fixes #2347 pushes chat to bottom on <Chat> mount 2020-02-28 13:02:31 -08:00
Logan
1cfd176434
Merge pull request #2369 from urbit/unmanaged-chats-rc
Unmanaged Chats Work Properly and Support Metadata Syncing
2020-02-28 11:52:54 -08:00
Logan Allen
c960075a11 chat: set metadata properly and incorporate fixes 2020-02-28 11:52:17 -08:00
Jared Tobin
bd2d90440f
Merge branch 'ted/ford-no-pit' (#2322)
* origin/ted/ford-no-pit:
  pills: update solid
  http.c: revert timeout to original ~m10
  tests: prime ford %reef cache
  http.c: bump timeout from ~m20 to ~m30
  http.c: bump timeout from ~m10 to ~m20
  tests: fix ford tests for no %reef short-circuit
  ford: remove pit short-circuit
2020-02-28 20:48:24 +04:00
lukechampine
f214ac8191 test: add bip32 vectors 2020-02-28 11:47:43 -05:00
lukechampine
0688c31d8a test: add scrypt vectors 2020-02-28 11:47:43 -05:00
lukechampine
58cdceafd6 test: add hmac vectors 2020-02-28 11:47:43 -05:00
lukechampine
b300a97ca4 test: add ed25519 vectors 2020-02-28 11:47:43 -05:00
Jared Tobin
046506f9d4
Merge branch 'liam-fitzgerald/hoon-spot' (#2247)
* liam-fitzgerald/hoon-spot:
  hoon: toggle spot typehints on flag
  hoon: support %spot hint in xray
  hoon: add %spot typehint

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-02-28 20:02:39 +04:00
Joe Bryan
eae7b71048 arvo: removes all vase literals from |va 2020-02-28 00:34:29 -08:00
Joe Bryan
cec9240771 arvo: removes all traces of meta-meta card reduction 2020-02-28 00:34:29 -08:00
Joe Bryan
d783b8902a arvo: cleanup per review 2020-02-28 00:34:29 -08:00
Logan Allen
2b15010e66 chat: removed extraneous prints 2020-02-27 16:16:38 -08:00
Logan Allen
14b28a3d82 chat: unmanaged chats can be joined, have their title/description set, and send invites properly 2020-02-27 16:14:07 -08:00
édouard
f8bb003243
Merge branch 'os1-rc' into ed/qa-header-spacing-fixes 2020-02-27 19:06:33 -05:00
Logan
6587bc318d
Merge pull request #2367 from urbit/mp/os1/group/details
contacts: add group details page, metadata-store reducer
2020-02-27 15:28:44 -08:00
Fang
e7cbccbbf5
metadata-store: never crash fetching app metadata
In order to track & respond to all app-related metadata, hooks may want to
subscribe to the metadata-store as the first thing they do on-init. In that case
it is exceedingly likely that there are no entries for the app-name in
app-indices yet.

This makes us fall back to the empty set in case app-indices has no entry for
the app-name yet.
2020-02-28 00:16:09 +01:00
édouard
e8fdf3713d chat, contacts, dojo, links, publish: edited existing padding/margins/color/font-size of tab/header components
Basically, this PR includes a collection of edits made to the headers across each of our OS1 modules.
I flattened the font sizing, fixed edge margins/padding, and fixed some button copy in the case of the Contacts app.
2020-02-27 17:54:13 -05:00
Logan Allen
7abb371a20 chat: unmanaged chats are cleaned up and sync down metadata properly 2020-02-27 14:54:03 -08:00
Isaac Visintainer
4c2cf0e463 base64: revert unnecessary syntax change 2020-02-27 12:43:46 -08:00
Joe Bryan
16bcff978c arvo: removes vestigial |is core 2020-02-26 20:25:24 -08:00
Joe Bryan
835e34d57f arvo: remove refactoring comments 2020-02-26 20:25:24 -08:00
Joe Bryan
ba753e3d36 arvo: replace $milt with $meta 2020-02-26 20:25:24 -08:00
Joe Bryan
bf23110edc arvo: replace $mill with $maze 2020-02-26 20:25:24 -08:00
Matilde Park
8ae2cc2680 metadata-store: fix 'associations' typo for /all 2020-02-26 22:43:40 -05:00
Isaac Visintainer
c502474942 Merge branch 'master' into os1-rc 2020-02-26 19:18:17 -08:00
Joe Bryan
796478ada7 arvo: removes %gave, generalizes %hurl 2020-02-26 16:56:17 -08:00
Joe Bryan
53d9798cda vane: prints error notifications where not handled 2020-02-26 16:56:17 -08:00
Joe Bryan
e59d56aa7a behn: forward %drip error notifications, refactor %crud handling 2020-02-26 16:56:17 -08:00
Joe Bryan
93eaff7401 ames: downcast %hear error notification to %hole 2020-02-26 16:56:17 -08:00
Joe Bryan
4cae84d9ac vane: downcast all error notifications to %crud 2020-02-26 16:56:17 -08:00
Joe Bryan
8e6dc992da arvo: removes (commented out) legacy event routing 2020-02-26 16:56:17 -08:00
Joe Bryan
c38222de9f test: updates vane calling convention 2020-02-26 16:56:17 -08:00
Joe Bryan
fa71cc2ae4 dill: "downcast" +call error notification to %crud 2020-02-26 16:56:17 -08:00
Joe Bryan
7b4ef1ff55 arvo: clear error state on each loop iteration 2020-02-26 16:56:17 -08:00
Joe Bryan
9915e7f645 arvo: supports both old and new %crud events 2020-02-26 16:56:17 -08:00
Joe Bryan
df970ed417 arvo: passes errors to all vanes 2020-02-26 16:56:17 -08:00
Joe Bryan
5f0f32d96a arvo: moves most new structures to top level 2020-02-26 16:56:17 -08:00
Joe Bryan
b118147700 arvo: adds errors to |me 2020-02-26 16:56:17 -08:00
Joe Bryan
25a983ad44 arvo: adds errors to $wind and |le 2020-02-26 16:56:17 -08:00
Joe Bryan
eb6b99d9b5 arvo: use cached reflexives over explicit vases 2020-02-26 16:56:17 -08:00
Joe Bryan
02d811f6de arvo: groups and refactors (most) top-level arvo structures 2020-02-26 16:56:17 -08:00
Joe Bryan
8187c58ee5 arvo: removes obsolete engines 2020-02-26 16:56:17 -08:00
Joe Bryan
624a40331c arvo: restore original %xeno wires 2020-02-26 16:56:17 -08:00
Joe Bryan
9b09689d53 arvo: refactor relationships between engines 2020-02-26 16:56:17 -08:00
Joe Bryan
f5d8a3f8a6 arvo: enables new event-loop and vane engines 2020-02-26 16:56:17 -08:00
Joe Bryan
201ffd173d arvo: adds new vane and event-loop engines 2020-02-26 16:56:17 -08:00
Joe Bryan
6d8261a867 arvo: refactors and enables neo dynamic analysis 2020-02-26 16:56:17 -08:00
Joe Bryan
e2f03a63ab arvo: adds dynamic analysis from neo 2020-02-26 16:56:17 -08:00
Isaac Visintainer
8cd6160c55 publish: don't reset post dates on notebook import 2020-02-26 16:04:49 -08:00
Isaac Visintainer
8616bf06bf publish: ignore updates from old version 2020-02-26 16:04:42 -08:00
Isaac Visintainer
da31b74521 publish: don't leave notebooks on OTA 2020-02-26 16:02:39 -08:00
Isaac Visintainer
762bf136eb publish: set tile-num after OTA 2020-02-26 16:02:24 -08:00
Isaac Visintainer
db65ff546f publish: don't require a new notebook to trigger upgrading the old 2020-02-26 16:02:15 -08:00
Logan
c5f1f0f7d2
Merge pull request #2356 from urbit/os1-chat-integration
apps: main backend integration between metadata and chat
2020-02-26 14:51:36 -08:00
Logan Allen
eada785c2c chat-js + view: updated new page to work properly with group creation / selection 2020-02-26 14:21:20 -08:00
Logan Allen
0d69e17f3b apps: main backend integration between metadata and chat 2020-02-26 14:10:32 -08:00
matildepark
a1b9e34290
Merge pull request #2353 from urbit/mp/os1/publish/edit
publish: add 'edit note' functionality
2020-02-26 16:29:48 -05:00
Matilde Park
e6b38a1b47 publish: allow direct join from URL 2020-02-25 21:07:06 -05:00
Liam Fitzgerald
8c6ae6f917 Merge branch 'master' into hoon-spot 2020-02-26 09:29:54 +10:00
Liam Fitzgerald
df51577022 hoon: toggle spot typehints on flag
Hides %spot typehints behind a compiler flag. Adds ++mind:ut to
expose this flag conveniently.
2020-02-26 08:07:02 +10:00
Isaac Visintainer
9581a0535c publish: add publish invite path 2020-02-25 13:43:06 -08:00
Logan
1272a61443
Merge pull request #2324 from urbit/m/chat-ota
OS1 OTA: chat groups & permissions
2020-02-25 13:17:56 -08:00
Ted Blackman
44b3c9b2a3 tests: prime ford %reef cache 2020-02-25 15:53:08 -05:00
Fang
82292cc152
chat-hook: on-migrate, only send invites for whitelists
Instead of also sending invites to blacklisted ships, which is obviously
incorrect.
2020-02-25 21:06:44 +01:00
Fang
53bc1d1996
chat-hook: on-migrate, send fresh invites
Accepting these post-upgrade should re-establish all the required
subscriptions. (But doesn't as of this commit, work still pending.)
2020-02-25 21:02:05 +01:00
Matilde Park
a81018a5b6 publish: add wildcard route for note endpoints
We take in /edit parameters (and possibly others) on notes,
so we let the front-end handle the routing regardless of the additional
params in the URL.
2020-02-25 14:19:15 -05:00
matildepark
1c87e329d3
Merge pull request #2345 from urbit/jy/copy
Copy changes to publish and contacts
2020-02-25 13:14:31 -05:00
Fang
d6da23f8c4
chat-hook: style touch-ups 2020-02-25 16:56:10 +01:00
Ted Blackman
af04767dfe tests: fix ford tests for no %reef short-circuit 2020-02-24 18:11:47 -05:00
Fang
51f1f9e3a2
chat-hook: on-migrate, delete permission-hook entry
If we don't host a group, we can't (locally) delete it, but we do still
have a permission-hook entry we want to clean up. This does that
deletion, but still relies on the permission-hook logic to clean it up
in the local group case.
2020-02-24 22:52:40 +01:00
Jimmy
e5be10dcc9 publish: sidebar dropdown copy change
update copy on contact

sidebarjs: sort dropdown copy change
2020-02-24 11:57:46 -08:00
~litpub
3f3a0b42e5 Firefox scroll support for chat 2020-02-24 11:40:14 -08:00
matildepark
f8dd807ae8
Merge pull request #2340 from urbit/mp/os1/soto/spinner
soto: add light/dark mode, spinner, prevent overflow
2020-02-24 13:58:39 -05:00
Jared Tobin
024908dd6a
Merge branch 'm/dbug-default' (#2343)
* origin/m/dbug-default:
  dbug: default to %state

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-02-24 13:44:10 +04:00
Fang
a61718fd51
dbug: default to %state 2020-02-23 01:46:26 +01:00
Logan
f64d720795
Merge pull request #2326 from urbit/os1-metahook
metadata-hook: a hook for sending metadata over the network
2020-02-21 20:05:07 -08:00
Logan
204ad1420d
Merge pull request #2342 from urbit/mp/os1/launch/dark
launch: dark mode
2020-02-21 19:14:30 -08:00
Logan
170003789a
Merge pull request #2316 from litpub/fixes-dom-nesting
chat: Fixes dom nesting warning on <Message>
2020-02-21 19:02:52 -08:00
Matilde Park
12b2d4756e eyre: add dark mode styling to sign-in 2020-02-21 21:56:25 -05:00
Matilde Park
79ad3fa12c soto: add spinner, fix overflow case 2020-02-21 19:52:01 -05:00
Matilde Park
08e511db87 soto: add light theme 2020-02-21 19:32:08 -05:00
Logan Allen
cf21ada1c2 metadata: style fixes, some bug fixes 2020-02-21 16:14:57 -08:00
Fang
e5525b7d9e
chat-hook: on-migrate, configure permission-hook also
Permissions for the new group need to be exposed to the members of those
new groups. This makes the on-migrate logic poke the permission-hook for
that.
2020-02-21 23:57:58 +01:00
Fang
c3becc9f5f
chat-hook: fall back if metadata-store not live
This temporary, upgrade-oriented logic depends on two assumptions:
- If the metadata-store is not running, we are still in the process of
  applying the upgrade.
- If the above is true, all chats are /~host/name, all groups are
  /~/~host/name, and they have a strict one-to-one relation.

Armed with those assumptions, we can deduce groups from chats and vice
versa without depending on the metadata-store, allowing us to carry on
as if it were already running.
2020-02-21 23:57:57 +01:00
Fang
337dc03f6b
permission-group-hook: support /lib/dbug interface 2020-02-21 23:57:57 +01:00
ixv
d1c54a7c2d
Merge pull request #2333 from urbit/ixv/publish-ota
OS1: fix publish ford OTA issues
2020-02-21 14:25:03 -08:00
Isaac Visintainer
09b381e8c6 ford: add state version and perform flush on migration between versions 2020-02-21 14:10:16 -08:00
Logan
fee50ff9e7
Merge pull request #2325 from pkova/os1-rc
chat-store: immediate handle-read on our %message
2020-02-21 13:45:50 -08:00
Isaac Visintainer
f7aa1298bb ford: explain +load change in comment 2020-02-21 13:29:59 -08:00
Fang
d80b5d24bc
permission-hook: clean up access-control on %delete
If we %add-owned, then we add an entry to the access-control jug matching the
data we put into the synced map. When a permission gets deleted, we remove it
from synced, but previously neglected to clean up the matching access-control
entry.

This ensures that if a permission was deleted, and we had it registered as
owned, that the relevant access-control entry is removed from state.
2020-02-21 21:45:04 +01:00
Isaac Visintainer
19e70368e8 ford: flush state on upgrade 2020-02-21 11:12:33 -08:00
Isaac Visintainer
6e8643000b fixed call to make-groups in outer core 2020-02-21 11:11:38 -08:00
matildepark
910f19c21d
Merge pull request #2328 from urbit/mp/os1/link/spinner
link-fe: add spinner, behaviour
2020-02-21 09:42:35 -05:00
Matilde Park
2e1ff70fb0 link-fe: add spinner, behaviour
Also refactors the header bar back into the skeleton to pass the
spinner.
2020-02-20 20:11:12 -05:00
Matilde Park
ca9bc45511 contacts: use invite-search for new.js 2020-02-20 18:56:25 -05:00
Fang
4a45d2caa6
chat-hook: implement group/permission migration
We want to move from group/permission paths of the form /chat/~host/name
to /~/~host/name, merging the ./read and ./write permission paths into a
single permission matching the group path.
(The leading /~ signifies an "unmanaged" group, one used by apps
internally, and not explicitly exposed to the user as a contacts group.)

This upgrade logic does roughly the following, for every chat path, to
accomplish the migration:
1. delete ./read and ./write groups associated with the chat
2. create a new group containing an approximate "uni" of the old groups
3. register the chat + new group with the metadata-store
4. hook the group up to its matching permission set

Note that because existing groups are hooked up through the
permission-group-hook, doing step 1 deletes the associated permissions.
Step 4 then re-establishes that relation for the newly created group.

The logic here scries into the metadata-store, and as such depends on
that having been started prior to this upgrade process.
2020-02-21 00:50:17 +01:00
Fang
491ac5689f
chat-hook: use metadata-store for permission checks
When permissions change, find out which chats are impacted (on the
assumption that permission paths are group paths), then perform actions
wrt that chat accordingly.

When a chat is interacted with, find out which groups the chat is
associated with, then use those to perform permission checks. If the
check passes for any group, permission is granted.
2020-02-21 00:50:17 +01:00
Fang
9a9aaaaf17
chat-hook: add scry helper 2020-02-21 00:50:16 +01:00
Fang
16886c4876
metadata-store: support /lib/dbug interface 2020-02-21 00:50:16 +01:00
Fang
5a029967b7
drum: start metadata-store on-upgrade 2020-02-21 00:50:15 +01:00
Logan Allen
5ef4cd50ac metadata-hook: implemented watch, kick, added group-scry to store 2020-02-20 14:55:46 -08:00
pkova
2062c9c92e chat-store: immediate handle-read on our %message 2020-02-21 00:27:35 +02:00
Ted Blackman
d917eebe56 ford: remove pit short-circuit 2020-02-20 16:38:21 -05:00
matildepark
f78f53525a
Merge pull request #2317 from urbit/mp/os1/publish-progress
publish: add spinner, transition behaviours
2020-02-20 15:05:13 -05:00
édouard
5a6b859a07 Replacing the nonexistent soto tile image depicting "tiscen" with "barcen" 2020-02-20 13:43:48 -05:00
Matilde Park
108f3d9e4a publish: move header into skeleton, add spinner 2020-02-20 00:10:18 -05:00
Logan Allen
99663fec50 metadata-hook: handle metadata facts 2020-02-19 17:56:36 -08:00