Page MenuHomePhabricator

Adding a calendar preview panel to people profile
ClosedPublic

Authored by lpriestley on May 5 2016, 4:17 PM.
Tags
None
Referenced Files
F13088627: D15851.diff
Thu, Apr 25, 1:30 AM
F13079960: D15851.diff
Wed, Apr 24, 3:39 AM
Unknown Object (File)
Fri, Apr 19, 4:37 PM
Unknown Object (File)
Thu, Apr 11, 9:01 AM
Unknown Object (File)
Thu, Apr 11, 2:36 AM
Unknown Object (File)
Sat, Mar 30, 11:59 AM
Unknown Object (File)
Sat, Mar 30, 1:48 AM
Unknown Object (File)
Fri, Mar 29, 6:59 PM
Subscribers

Details

Summary

Ref T9606

Test Plan

Open people profile for a user with events today/tomorrow, see a panel under badges panel with event list

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lpriestley retitled this revision from to Adding a calendar preview panel to people profile.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
lpriestley edited edge metadata.

This particular change was for testing and doesn't seem right anyways.

epriestley edited edge metadata.

This looks good to me, except that in Safari, this element looks a bit weird: broken right border (should be solid, like other panels), odd spacing at the bottom:

Screen Shot 2016-05-08 at 10.54.16 AM.png (426×340 px, 18 KB)

Might just need some extra CSS rules for when it renders on a profile, or to make whatever rules are creating the weirdness only activate on the main calendar view?

src/applications/people/controller/PhabricatorPeopleProfileViewController.php
202–204

Maybe just use withIsCancelled(false) on the query?

This revision now requires changes to proceed.May 8 2016, 6:00 PM
lpriestley edited edge metadata.

Css change to make week preview on day view border better

This fixed the border on the panel:

Screen Shot 2016-05-23 at 9.38.34 AM.png (495×385 px, 25 KB)

but this means that the week panel in day view is going to be max width. Personally, I think it looks okay, but maybe there's a reason not to do this?
Screen Shot 2016-05-23 at 9.38.17 AM.png (781×1 px, 77 KB)

lpriestley edited edge metadata.

Query for events that were not cancelled instead of filtering out cancelled events later.

Feel free to check in something somewhat decent looking and I can come through and clean up / rework if needed.

epriestley edited edge metadata.

Yeah, this is good. It doesn't look "obviously broken" to me anymore, and the view in Calendar a lot less weird looking to me, too.

This revision is now accepted and ready to land.May 23 2016, 5:31 PM
This revision was automatically updated to reflect the committed changes.