Page MenuHomePhabricator

Refactor logic for getting next/prev month and day on month and day views, respectively
ClosedPublic

Authored by lpriestley on May 5 2015, 8:08 PM.
Tags
None
Referenced Files
F15538564: D12723.id30572.diff
Thu, Apr 24, 8:01 PM
F15524884: D12723.id.diff
Mon, Apr 21, 10:59 AM
F15511991: D12723.id30570.diff
Thu, Apr 17, 7:11 AM
F15485194: D12723.diff
Wed, Apr 9, 10:28 PM
F15484934: D12723.id30570.diff
Wed, Apr 9, 9:03 PM
F15463708: D12723.diff
Apr 2 2025, 2:14 AM
F15417469: D12723.id30573.diff
Mar 20 2025, 5:11 PM
F15389710: D12723.id30572.diff
Mar 15 2025, 5:35 AM
Subscribers

Details

Summary

Ref T4393, Refactor logic for getting next/prev month and day on month and day views, respectively

Test Plan

Open Calendar search, search using month view, scroll next/prev months to observe correct navigation, repeat with day view.

Diff Detail

Repository
rP Phabricator
Branch
calendarsearchprevnextscrolling
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5779
Build 5798: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

lpriestley retitled this revision from to Refactor logic for getting next/prev month and day on month and day views, respectively.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.

Sorry, I reviewed this in the reverse order so my comments are backward

just pretend you are australian

src/view/phui/calendar/PHUICalendarDayView.php
281–287

And same here?

297–304

This is just $this->getDateTime(), right?

305

Maybe call this $next?

313–323

Also no more callsites?

324–333

No more callsites, I think?

src/view/phui/calendar/PHUICalendarMonthView.php
252

For that matter, can we simplify this class by adding a getDateTime()?

lpriestley marked 6 inline comments as done.
lpriestley edited edge metadata.

More refactoring

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 5 2015, 8:41 PM
This revision was automatically updated to reflect the committed changes.