Page MenuHomePhabricator

Subscriptions - make a dialog for massive subscription lists
ClosedPublic

Authored by btrahan on Mar 14 2014, 12:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 4:41 PM
Unknown Object (File)
Tue, Nov 19, 6:36 AM
Unknown Object (File)
Fri, Nov 15, 12:57 AM
Unknown Object (File)
Wed, Nov 13, 1:58 AM
Unknown Object (File)
Mon, Nov 11, 1:04 AM
Unknown Object (File)
Sun, Nov 10, 4:05 PM
Unknown Object (File)
Tue, Nov 5, 9:03 PM
Unknown Object (File)
Tue, Nov 5, 9:03 PM

Details

Summary

Ref T4430. This just deploys it on the property lists. (Help on how to do translations better? I tried a more traditional pht('%s, %s, %s, and %d other(s)') but I think the string lookup assumes the %d comes as the second param or something?)

Test Plan

Made a Maniphest Task with a hojillion subscribers and noted the working dialogue. Also made a Pholio Mock with lots of subscribers and it worked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Subscriptions - make a dialog for massive subscription lists.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

Nice! Couple of fluff inlines.

pht('%s, %s, %s, and %d other(s)')

I"d expect that to work, but the translation needs to look like:

'blah' => array(
  array(
    array(
      array(
        '%s, %s, %s, and %d other',
        '%s, %s, %s, and %d others',
      ),
   ),
 ),

...or something like that. Maybe that's the issue?

src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php
30–32

Oh yuck, are these still not on real edges? I thought I'd gotten further on this. :o

src/applications/subscriptions/events/PhabricatorSubscriptionsUIEventListener.php
111–113

This seems a little bit weird, maybe? Since we won't list other auto-subscribed users. But probably fine. Was there specific thinking behind it?

Maybe we should make isAutomaticallySubscribed() be getAllAutomaticallySubscribedPHIDs() or something instead.

src/applications/subscriptions/view/SubscriptionListDialogBuilder.php
62

If we just use a normal object list here, how bad does it look? Particularly, we can add profile pictures after T4400, and I'm hoping to get this into shape so we can show a list of users on the Project Members interface using standard UI. If it's okayish but just missing profile pictures, maybe do that for now and then we can pretty it up after T4400?

This revision is now accepted and ready to land.Mar 14 2014, 12:55 AM
webroot/rsrc/css/application/subscriptions/subscribers-list.css
32

Probably count make these much smaller, maybe 32 or 28?

44

prefer {$thinblueborder} or {$blueborder}

Screen_Shot_2014-03-14_at_11.12.13_AM.png (1×2 px, 655 KB)

on the translation, I put the '%d other(s)' into its own pht block. Since I need to make a link using the '%d other(s)' output I realized I can't do the whole thing at once and need to do it piece wise.

src/applications/subscriptions/controller/PhabricatorSubscriptionsListController.php
30–32

yeah, but its the only one I think so this was really easy

src/applications/subscriptions/events/PhabricatorSubscriptionsUIEventListener.php
111–113

I will remove this in the update and we can do the getAll thing later maybe.

When I was building this it seemed strange to have "You are automatically subscribed" in the actions and then have a subscriber list of None or see this dialog and not be present within it. Long term, I think we should do the getAll thing.

(Relatedly, building the dialog I realized we'll probably want to be able to manage subscriptions from it some day, and as such making sure the list is accurate seems important. I digress though.)

src/applications/subscriptions/view/SubscriptionListDialogBuilder.php
62

See screenshot. I am going to keep it as a normal object list since you seem to be digging at the 100 x 100 thing T4400 needs so it won't be long methinks.

webroot/rsrc/css/application/subscriptions/subscribers-list.css
32

Thanks for the feedback - I thought this looked not right and smaller would be better. Alas @epriestley's "use an object list" feedback makes your CSS feedback no longer applicable. :/

btrahan edited edge metadata.

changes as discussed

btrahan updated this revision to Diff 20250.

Closed by commit rPc7079b52a2f3 (authored by @btrahan).

this looks worse, haha. maybe just use "Plain List" instead?

I will put pix on it ok :3

and a bird