Page MenuHomePhabricator

Conpherence - Differentiate audience of Threads/Rooms with icon
ClosedPublic

Authored by btrahan on Mar 25 2015, 10:24 PM.
Tags
None
Referenced Files
F14315953: D12163.id29257.diff
Wed, Dec 18, 6:42 AM
Unknown Object (File)
Sun, Dec 15, 11:58 AM
Unknown Object (File)
Tue, Dec 10, 11:40 AM
Unknown Object (File)
Mon, Nov 25, 1:03 PM
Unknown Object (File)
Thu, Nov 21, 10:52 AM
Unknown Object (File)
Nov 17 2024, 5:50 AM
Unknown Object (File)
Nov 4 2024, 4:37 AM
Unknown Object (File)
Nov 4 2024, 4:32 AM

Details

Summary

Fixes T7629 plus an un filed bug that's breaking creating new threads since we need to add participants EVEN EARLIER than we were doing it now that policy is actually enforced.

Back to the main thrust of this, there is one UI corner case - in the main view if you go from 1:1 to 1:1:1 (i.e. add a 3rd recipient, or Nth in a row) the icon only updates on page reload. I figure this will get sorted out at a later refactor as we make the client better / share more code with durable column.

One other small behavioral oddity is in the main view sometime we start loading with no conpherence. in that case, rather than show some incorrect icon, we show no icon (and "no title") and then things change at load. Seems okay-ish.

Finally, @chad - the CSS is a very work-man-like "use the built in stuff you can specify from PHP" so I'm sure it needs some love.

Test Plan

made all sorts of rooms and threads and liked the icons. noted smooth loading action as i switched around

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Conpherence - Differentiate audience of Threads/Rooms with icon.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.
btrahan added a subscriber: chad.
btrahan updated this object.
epriestley edited edge metadata.

Maybe write a test for sending a new thread and creating a new room? I feel like that's broken a couple of times for similar policy-related reasons.

src/applications/conpherence/editor/ConpherenceEditor.php
224

Not sure if this is a bug, but:

  • I would expect adding one participant to set the recent PHIDs to just them;
  • this might wipe out older PHIDs?

For example, recents are (B, A). You add C and it becomes (C) but we'd expect it to become (C, B, A) or something like that?

244

"tne" => "the"

This revision is now accepted and ready to land.Mar 26 2015, 11:52 AM
src/applications/conpherence/editor/ConpherenceEditor.php
224

This is gated by getIsNewObject so it only runs on create.

btrahan edited edge metadata.

fix typo
add a pile of unit tests (create, adding participants X rooms, threads)
had to update celerity to pass lint?

This revision was automatically updated to reflect the committed changes.