Commit Graph

712 Commits

Author SHA1 Message Date
Matilde Park
ee887caced link: additional safety checks in settings view 2020-03-10 17:10:41 -04:00
Matilde Park
7febf927fa chat, publish: avoid race condition in writeText 2020-03-10 17:03:18 -04:00
ixv
9d0fe998c1
Merge pull request #2410 from urbit/mp/os1/invite-launch
launch: subscribe to invite-view, show group invite count in tile
2020-03-10 12:17:34 -07:00
Matilde Park
078991864c chat: remove linking shortcodes to chatrooms
We use shortcodes for all channels now -- in general,
we don't want people to be joining them as chats.
2020-03-09 22:25:31 -04:00
Matilde Park
3f16359755 chat / publish: change clipboard API for safari
Safari doesn't support writeText(). I incorporate a PD polyfill
here to basically fill in the gap...
2020-03-09 22:23:24 -04:00
Matilde Park
ef9d5da931 publish: fix textarea padding on firefox
Firefox treats the padding as literal padding;
other browsers treat the padding as part of the writable
area. This sets it as an initial height.
2020-03-09 22:00:49 -04:00
Matilde Park
636d99b405 publish: fix note top matter on firefox
Firefox renders 'span' tags differently than other browsers.

This commit lines them up identically by making the spans inline-blocks.
2020-03-09 21:52:04 -04:00
Matilde Park
566ea49651 publish: prevent duplicates of new notes
Adds another disable catch and more elaborate
logic for preventing duplicate note submissions.
2020-03-09 21:39:09 -04:00
Matilde Park
d59d205af9 publish: resequence spinner for new.js 2020-03-09 21:38:09 -04:00
Matilde Park
49775f81e5 publish: add fallback values to note.js 2020-03-09 21:24:02 -04:00
Matilde Park
fb42bf4374 publish: dark mode border on invite items 2020-03-09 21:21:22 -04:00
Matilde Park
81899320d7 publish: dark mode dropdown buttons in subscribers 2020-03-09 21:17:07 -04:00
Matilde Park
c4948f1ed7 chat: leave button gets border in dark mode 2020-03-09 21:14:31 -04:00
Matilde Park
d274120fcc link: line up title across views; dark mode button
(Settings had a button that had a border of the same colour as
the background, so this steps it up a shade.)
2020-03-09 21:06:27 -04:00
Matilde Park
b6b4f7cf5d link: pass 'popout' to skeleton in settings view
(Otherwise, the OS1 chrome will stay showing.)
2020-03-09 21:05:35 -04:00
Matilde Park
e8b087ea87 clock: revert removal of initial media query check
This commit restores a small check for a match of the query,
so that when you load in dark mode, the clock loads in dark(ly).
Without this commit, it would only shift modes as part of a media query
change.
2020-03-09 20:57:13 -04:00
Matilde Park
f4a06589c0 clock: prevent canvas draw smears
Trying to use a transparent background revealed constant
redraws each second -- this commit returns a color
declaration to the background, changing with the media query.
2020-03-09 20:52:53 -04:00
Matilde Park
4275f7fc94 clock: use addListener for media query
Previously, we used addEventListener, which was returned by the
media query as an inheritance from the window object.
Safari doesn't support this, but it, and all browsers,
support an alias that uses function-based checks.

This commit uses that alias.
2020-03-09 20:51:20 -04:00
ixv
dc2d7fe64d
Merge pull request #2425 from urbit/mp/os1/groups/settings-truncation
groups: add max-width for group titles
2020-03-09 16:28:38 -07:00
ixv
cd2e57a9c2
Merge pull request #2426 from urbit/mp/os1/edit-publish
publish: edit notebook settings
2020-03-09 16:28:20 -07:00
Matilde Park
07b0652064 publish: add shortcode copying, API call for edits
Also adds 'comments' setting to the reducer for editing notebooks.
2020-03-09 17:21:54 -04:00
ixv
d60d9d2845
Merge pull request #2415 from urbit/mp/os1/invite-group-titles
invite search: surface group metadata in results
2020-03-09 14:10:32 -07:00
Matilde Park
0f2d4417da groups: add max-width for group titles 2020-03-09 16:40:59 -04:00
Matilde Park
447be345ea launch: place group invitations in header 2020-03-09 16:15:29 -04:00
Matilde Park
7fbe0c9318 various: amend invite copy on creation front-ends 2020-03-09 15:36:00 -04:00
Matilde Park
a889706758 groups: sidebar, additional check for safety
When accepting an invite, the sidebar would crash the application
because we were accessing 'metadata' of undefined -- accessing
too many nested property levels without enough safety.

This commit just adds a check for the intermediate property.
2020-03-09 00:28:42 -04:00
Matilde Park
d62712748a publish: add front-end fields for editing notebook 2020-03-06 23:56:20 -05:00
Matilde Park
2afd0e63fe publish: route group metadata to new screen 2020-03-06 23:10:23 -05:00
Matilde Park
15a8c4f115 link: route group metadata to new screen 2020-03-06 23:10:13 -05:00
Matilde Park
dd7e15b131 chat: route group metadata to new screen 2020-03-06 23:10:04 -05:00
Matilde Park
9176ff104b invite search: surface group metadata 2020-03-06 23:09:49 -05:00
Matilde Park
114ca1e862 groups: invite items get white styling in dark mode 2020-03-06 22:08:12 -05:00
Matilde Park
ac5f266e75 groups: spell 'trumpeter' correctly 2020-03-06 22:01:59 -05:00
Matilde Park
067ebed56b launch: reduce invites 2020-03-06 22:01:49 -05:00
Matilde Park
289a0ae61a groups: add invite count to tile 2020-03-06 17:53:06 -05:00
Matilde Park
95acca9acb launch: subscribe to invite-view, pass invite data
This commit adds a new subscription to launch and retain the current
tile data prop structure by initialising the data prop as an object
and always appending the invite information to it.
2020-03-06 17:38:49 -05:00
Matilde Park
b374ff790d groups: hide back to channels mav on /me card 2020-03-06 17:03:06 -05:00
Matilde Park
60d853e895 groups: tweak contact card header 2020-03-06 16:59:46 -05:00
ixv
a219014949
Merge pull request #2405 from urbit/mp/os1/metadata-restructure
OS1: metadata restructuring across applications, group metadata editing
2020-03-06 13:14:27 -08:00
Matilde Park
48c636ab8e chat: pending messages blend correctly 2020-03-06 16:08:13 -05:00
Matilde Park
ed9794817b groups: fix details + settings routing overwrites 2020-03-06 16:08:06 -05:00
Matilde Park
07dde3efb2 groups: add contact - dark mode fixes 2020-03-06 16:07:32 -05:00
Matilde Park
a8c95a348d publish: remove "pointer" if new button disabled 2020-03-06 15:51:51 -05:00
Matilde Park
f3cbfdbbbd link: safety check in metadata reducer 2020-03-06 15:50:11 -05:00
Matilde Park
d46b271ba2 publish: safety check in metadata reducer 2020-03-06 15:50:03 -05:00
Matilde Park
8166115751 chat: style and safety fixes for nested objects 2020-03-06 15:48:21 -05:00
ixv
af98e6e6ca
Merge pull request #2406 from urbit/mp/os1/publish/join-disabler
publish: disable button after joining book
2020-03-06 12:31:59 -08:00
Jared Tobin
8b6710c360
Merge branch 'mp/os1/invite-search-blend' (#2400)
* origin/mp/os1/invite-search-blend:
  invite search: proper padding, blending of group name

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-06 13:44:05 +04:00
Matilde Park
075dd3aa73 publish: disable button after joining book 2020-03-05 22:57:21 -05:00
Matilde Park
0014a48d74 publish: add groups metadata to store, reducers 2020-03-05 22:33:53 -05:00
Matilde Park
d73d60b73b groups: add descriptions, group settings 2020-03-05 22:26:42 -05:00
Matilde Park
831b93dc4e link: add 'lh-solid' to headers 2020-03-05 21:01:30 -05:00
Matilde Park
7ec75dcd62 link: rewrite metadata structure for consistency 2020-03-05 20:26:03 -05:00
Matilde Park
12cae5dda8 groups: sidebars polish, lining up vertically 2020-03-05 19:54:55 -05:00
Matilde Park
b539c3e24e groups: nav back to group details page from card 2020-03-05 19:54:37 -05:00
Matilde Park
3f95084eb5 groups: new buttons made consistent, dark mode 2020-03-05 19:54:12 -05:00
Matilde Park
9127b17b5c Merge branch 'master' into mp/os1/metadata-restructure 2020-03-05 19:16:37 -05:00
Matilde Park
9f45554047 chat: surface chat title in header 2020-03-05 19:15:49 -05:00
Matilde Park
1dd78ef413 chat: associations data structure -> nested object
Before this, it was a Map. But because we want to store multiple app
metadata stores -- and because maps are specialised objects -- this
commit restructures the store, reducers, and rewrites behaviour first.
2020-03-05 18:39:06 -05: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
ixv
a16e40228d
Merge pull request #2399 from urbit/publish-metadata
publish: integration with metadata
2020-03-05 11:56:03 -08:00
Fang
9a3f1be1b3
link fe: fix various display issues 2020-03-05 16:05:05 +01:00
Fang
6966aa0df3
link fe: support empty unmanaged groups 2020-03-05 15:53:44 +01:00
Fang
c71e5315e9
link fe: implement members & settings pages 2020-03-05 15:52:44 +01:00
Jared Tobin
2bf46d7d26
Merge branch 'mp/os1/metadata-remove' (#2401)
* origin/mp/os1/metadata-remove:
  groups: reduce metadata updates, removal
  chat: reducer handles metadata removal

Signed-off-by: Jared Tobin <jared@tlon.io>
2020-03-05 14:35:01 +04:00
Matilde Park
01c4909393 groups: reduce metadata updates, removal 2020-03-04 19:58:46 -05:00
Matilde Park
56d1630888 chat: reducer handles metadata removal 2020-03-04 19:45:02 -05:00
Matilde Park
ef386302bf invite search: proper padding, blending of group name 2020-03-04 18:57:31 -05:00
Logan Allen
3ace135c18 publish: integration with metadata 2020-03-04 15:56:48 -08:00
Matilde Park
cf7c7fd852 groups: exclude group metadata from channels list 2020-03-04 18:26:00 -05:00
Matilde Park
76c2f49054 groups: set and surface group name metadata 2020-03-04 18:20:32 -05:00
Matilde Park
061deb94a8 groups: remove dummy 'share' flow, 'default' group 2020-03-04 16:13:19 -05:00
Matilde Park
aee2496588 contacts: rename, migrate '~contacts' to '~groups' 2020-03-04 16:13:12 -05: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
Logan
f457c0e568
Merge pull request #2394 from urbit/mp/os1/chat/contact-polling
chat: pull room contacts from associated group
2020-03-03 18:33:20 -08:00
Matilde Park
92dbc4805e chat: pull room contacts from associated group 2020-03-03 21:02:45 -05:00
Matilde Park
2426343566 chat: spell 'permanent' correctly 2020-03-03 20:19:33 -05:00
Matilde Park
2a9d570b6c chat: settings inputs add borders on focus 2020-03-03 17:13:39 -05:00
Fang
9816ed69b3
link fe: remove unused "active" prop 2020-03-03 22:08:00 +01:00
Fang
8568ecff9d
link fe: refactor route paths
We change route paths back to their more-sane ordering, giving up
support for /longer/resource/paths.

The makeRoutePath utility constructs a route path for the given resource,
that optionally points to a specific page, or item, etc.

Also removes unused uuid utility.
2020-03-03 21:35:40 +01:00
Fang
10842ecd92
link fe: remove references to chat & security 2020-03-03 18:31:08 +01:00
Fang
316cacf73b
link fe: support /join route 2020-03-03 16:44:28 +01:00
Fang
a72c74d74d
link fe: navigate to collection post-create 2020-03-03 16:26:42 +01:00
Logan
ba76de8e7b
Merge pull request #2388 from urbit/mp/os1/chat/settings
chat: settings — edit channel metadata, shortcode copying
2020-03-02 20:31:05 -08:00
Matilde Park
92e8bba2c9 chat: remove console.log from metadataAction 2020-03-02 23:30:44 -05:00
Matilde Park
869f19c8f8 chat: style fixes during review, use metadata-hook 2020-03-02 23:27:07 -05:00
Matilde Park
e3e7c9e80c chat: edit description, color settings 2020-03-02 22:30:32 -05:00
Matilde Park
88b34c2ba7 chat: add update-metadata to metadata reducer 2020-03-02 22:30:32 -05:00
Matilde Park
4637587afd chat: revise api.js to match data structures 2020-03-02 22:30:32 -05:00
Matilde Park
eb2d914b23 chat: construct settings page for metadata 2020-03-02 22:30:26 -05:00
Matilde Park
ec089b4648 chat: correct bottom border on join links 2020-03-02 22:30:04 -05:00
Matilde Park
71d6937848 chat: copy shortcodes 2020-03-02 22:29:58 -05:00
Matilde Park
6464dc89ce chat: linkify unmanaged chats 2020-03-02 20:37:31 -05:00
Matilde Park
6dd84b467e contacts: add bg-gray0 to root page 2020-03-02 18:38:30 -05: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
Logan
057d5996d1
Merge pull request #2379 from urbit/la-managed-chat-integration
chat + contacts: integrate managed groups with metadata
2020-03-02 11:27:59 -08:00
Logan
f29bc2389d
Merge pull request #2381 from urbit/ed/qa-contacts-buttonfix
contacts: changed color + copy of "add to group" button
2020-03-02 10:10:02 -08:00
édouard
ebaecc3fd1 contacts: changed color + copy of "add to group" button
I changed the copy and appearance (color only) of the "Invite" button previously located in Contacts, as it looked like a non-interactive label.
2020-03-02 12:57:54 -05:00
Logan Allen
8b2398b3e2 contact-js: removed console.log 2020-03-01 15:49:31 -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
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
Logan
4ade3884bd
Merge pull request #2370 from urbit/mp/os1/dark
os1: dark mode pass
2020-02-29 16:34:44 -08:00
Matilde Park
7535dd2e03 chat: display metadata titles in sidebar 2020-02-28 23:26:17 -05:00
Matilde Park
26ba8d3181 chat: initiate associations in store 2020-02-28 23:26:00 -05:00
Matilde Park
c3d14daff3 chat: add metadata-update reducer 2020-02-28 23:25:48 -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
Matilde Park
bc072790ec publish: add dark mode 2020-02-28 01:26:01 -05:00
Matilde Park
909a2ebf05 invite search: adjust dark mode hover background 2020-02-28 01:03:05 -05:00
Matilde Park
c91b67028b contacts: dark mode pass 2020-02-28 00:47:02 -05:00
Matilde Park
cf6460c5b5 invite search: blend names, filter empty nicknames 2020-02-28 00:46:06 -05:00
Matilde Park
94c90f640e link: add dark mode bottom border to sidebar 2020-02-28 00:19:11 -05:00
Matilde Park
2c301c0b80 chat: integrate invite search on members page 2020-02-28 00:15:55 -05: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
édouard
6bc4f489d4 links: edit/update sidebar styling to match chat
Using existing styling classes found in chat, I've edited the Links module to retain an appearance/sizing that is more uniform with our Chat module interfaces
2020-02-27 18:58:28 -05:00
Matilde Park
82d4cdea47 contacts: fix routing of details view, sidebars 2020-02-27 18:03:08 -05:00
édouard
afcb46caaa chat, links: add 'lh-solid' to header text
This commit fixes a text and icon alignment issue noted by @matildepark. I've simply appended a class of `lh-solid` to items in module tab bars, and removed one case of v-top.
2020-02-27 17:54:53 -05: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
édouard
308ebea599 publish: add vertical padding to comment-field component
Prior to this commit, the commmenting component had a styling value of `mt9`, which spaced it properly away from the bottom of the post text, but rendered it with zero spacing from the bottom of the viewport in the case of no comments, and pushed right up against new comments or page navigation in an unsightly manner. This value has been edited to `mv9`, to give the comments component proper breathing room from other components.
2020-02-27 17:48:15 -05:00
Matilde Park
6ae5143cf0 contacts: style fixes and empty catch for channels 2020-02-27 17:29:49 -05: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
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
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
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