Commit Graph

2744 Commits

Author SHA1 Message Date
Matilde Park
6ae5143cf0 contacts: style fixes and empty catch for channels 2020-02-27 17:29:49 -05:00
Isaac Visintainer
4c2cf0e463 base64: revert unnecessary syntax change 2020-02-27 12:43:46 -08:00
Matilde Park
55fe08ed55 contacts: mobile pass on group detail 2020-02-27 00:25:45 -05:00
Matilde Park
6caa1d1467 contacts: add group detail view 2020-02-27 00:11:39 -05:00
Matilde Park
ad678c5799 contacts: add metadata to store, subscription 2020-02-27 00:11:23 -05:00
Matilde Park
76c66a9a2f contacts: add metadata reducer 2020-02-27 00:10:37 -05:00
Matilde Park
8ae2cc2680 metadata-store: fix 'associations' typo for /all 2020-02-26 22:43:40 -05:00
Matilde Park
3fc4826da1 contacts: add mh4 to 'delete'
The delete button was flush against the margin,
which looked messy; this gives some horizontal
space while retaining the distance from
the other options.
2020-02-26 22:43:18 -05:00
Isaac Visintainer
c502474942 Merge branch 'master' into os1-rc 2020-02-26 19:18: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
matildepark
9efa2290fe
Merge pull request #2360 from urbit/mp/os1/invite-search-contacts
invite search: fuzzy search ships by nicknames, show ship nicknames
2020-02-26 18:16:05 -05:00
Matilde Park
db0fc609d8 various: dedupe invites to ships in search 2020-02-26 18:13:03 -05:00
Matilde Park
dca7f6f8a7 publish: fuzzy search contacts in invite search 2020-02-26 18:08:23 -05:00
Matilde Park
b976abdca5 contacts: fuzzy search contacts in invite search 2020-02-26 18:05:08 -05:00
Matilde Park
ab926af427 chat: invite search style fix 2020-02-26 18:04:49 -05: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
Matilde Park
6536def638 chat: search, show contacts info in invite search 2020-02-26 17:33:22 -05: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
41ebaad86b publish: only original author can edit notes 2020-02-26 16:10:29 -05:00
Matilde Park
6a08262b90 publish: blend stranger sigils
If a user is a member of a group, but not a contact,
blend their sigil, unstyled, into the background.
2020-02-26 01:25:08 -05:00
Matilde Park
f59b8dd494 link-fe: blend stranger sigils
If a user is a member, but not a contact, their sigil is unstyled,
blending with the background.
2020-02-26 01:20:30 -05:00
Matilde Park
69f0fff800 link-fe: fix responsive truncate for short titles
If titles were shorter, they would still take up full-width.
I used too many "flex-autos", clearly, and this commit seems to create
the desired behaviour for both title lengths.
2020-02-26 01:19:40 -05:00
Matilde Park
e6b38a1b47 publish: allow direct join from URL 2020-02-25 21:07:06 -05:00
Matilde Park
6ac641899c publish: join.js proper catch and UI transition 2020-02-25 20:51:03 -05:00
Matilde Park
30022e84cc publish: join.js style changes and button polish 2020-02-25 20:50:20 -05:00
Matilde Park
c8fe63dddc publish: catch duplicate note titles 2020-02-25 18:31:50 -05:00
Matilde Park
ec15d2dccb publish: add conditional "edit" link in note.js 2020-02-25 18:05:39 -05:00
Matilde Park
e3e63ff337 publish: inline style -> class changes 2020-02-25 17:51:36 -05:00
Matilde Park
b0e05d912e publish: add edit post component 2020-02-25 17:50:12 -05:00
Matilde Park
c3c73990df publish: remove spinner console.log 2020-02-25 17:49:56 -05: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
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
Jimmy
36f53f9eea contact-card: removing border on buttons 2020-02-25 10:10:58 -08:00
Fang
d6da23f8c4
chat-hook: style touch-ups 2020-02-25 16:56:10 +01: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
matildepark
96c4b30587
Merge pull request #2339 from urbit/mp/os1/publish/truncate-titles
publish: wrap or truncate title / snippet overflow
2020-02-24 13:26:13 -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
be19135a02 weather: add dark mode styles to tile 2020-02-21 21:58:40 -05:00
Matilde Park
fa5e8ecdab soto: add dark mode styles to tile 2020-02-21 21:58:29 -05:00
Matilde Park
ab0ad9f7d0 publish: add dark mode styles to tile 2020-02-21 21:58:22 -05:00
Matilde Park
395bec28a8 link: add dark mode styles to tile 2020-02-21 21:58:12 -05:00
Matilde Park
d75b1d3023 contacts: add dark mode styles to tile 2020-02-21 21:58:02 -05:00
Matilde Park
71ca2ec419 clock: add dark mode event listener, hex colors 2020-02-21 21:57:46 -05:00
Matilde Park
05d820fcba chat: add dark mode style to tile 2020-02-21 21:57:27 -05:00
Matilde Park
2aa49589f8 launch: add dark mode classes 2020-02-21 21:57:05 -05:00
Matilde Park
12b2d4756e eyre: add dark mode styling to sign-in 2020-02-21 21:56:25 -05:00
Matilde Park
931821d2d5 publish: inputs have black border on focus 2020-02-21 20:44:01 -05:00
Matilde Park
20e58eea82 link-fe: inputs have black border on focus 2020-02-21 20:35:48 -05:00
Matilde Park
ea84da77ab contacts: inputs have black border on focus 2020-02-21 20:25:39 -05:00
Matilde Park
82fa934c37 chat: inputs have black border on focus 2020-02-21 20:21:39 -05:00
matildepark
0578abfbc0
Merge pull request #2337 from urbit/mp/os1/truncate-titles
link-fe: truncate titles properly
2020-02-21 19:57:55 -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
Matilde Park
5b2d58bd22 publish: wrap or truncate title / snippet overflow 2020-02-21 19:03:38 -05:00
Matilde Park
382a4da4b1 chat: remove spinner.css from index.css 2020-02-21 18:42:16 -05:00
Matilde Park
657dc5b408 link-fe: truncate titles properly 2020-02-21 18:33:55 -05: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
Logan
75644a2c38
Merge pull request #2329 from urbit/mp/os1/contacts/share-with-group-redirect
contacts: redirecting share view, sigil color fix
2020-02-21 13:26:07 -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
Matilde Park
366c4e671a link-fe: remove header-bar from index.js 2020-02-21 15:32:02 -05: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
4770d78198 contacts: pass "#" prefix to sigil colour 2020-02-20 21:39:46 -05:00
Matilde Park
61e26c8fc2 contacts: redirect from 'share' option correctly 2020-02-20 21:39:31 -05:00
matildepark
2c39e70cc0
Merge pull request #2327 from urbit/mp/os1/contacts/invite-polish
contacts: add spinner, invite-search, and blend unknown sigils
2020-02-20 21:09:03 -05:00
Matilde Park
14d2275054 link-fe: remove spinner.css from index.css 2020-02-20 20:50:39 -05:00
Matilde Park
805a7c444d contacts: remove spinner.css from index.css 2020-02-20 20:49:55 -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
748a9059e1 contacts: use invite-search for adding contacts 2020-02-20 18:56:30 -05:00
Matilde Park
b2404d0cdc chat: add groupResults prop, fix peer set 2020-02-20 18:56:30 -05:00
Matilde Park
f2434f288c publish: add groupResults prop, fix peer set 2020-02-20 18:56:30 -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