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
F18881273: D12723.diff
Thu, Nov 6, 9:10 PM
F18878724: D12723.id.diff
Thu, Nov 6, 5:32 PM
F18824894: D12723.id30573.diff
Oct 23 2025, 6:30 PM
F18809091: D12723.id30572.diff
Oct 19 2025, 11:06 AM
F18749958: D12723.id30570.diff
Oct 4 2025, 5:53 AM
F18626643: D12723.diff
Sep 16 2025, 1:42 AM
F18587269: D12723.diff
Sep 11 2025, 8:54 PM
F18565958: D12723.id.diff
Sep 9 2025, 1:55 PM
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 5781
Build 5800: [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
258–264

And same here?

266–267

Also no more callsites?

266–274

No more callsites, I think?

267

Maybe call this $next?

267–274

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

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.