Page MenuHomePhabricator

Add Next and Previous UI to PhamePostView
ClosedPublic

Authored by chad on Dec 31 2015, 9:00 PM.
Tags
None
Referenced Files
F14063106: D14919.diff
Mon, Nov 18, 4:39 PM
F14053292: D14919.diff
Fri, Nov 15, 1:57 PM
F14038760: D14919.diff
Mon, Nov 11, 1:57 AM
F14022851: D14919.diff
Wed, Nov 6, 8:07 PM
F14011921: D14919.id36051.diff
Fri, Nov 1, 5:54 AM
F14011904: D14919.id36052.diff
Fri, Nov 1, 5:41 AM
F14005968: D14919.id36053.diff
Sun, Oct 27, 10:47 PM
F13983610: D14919.diff
Sun, Oct 20, 7:33 AM
Subscribers
Tokens
"Mountain of Wealth" token, awarded by epriestley.

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rPfe6224f5059e: Add Next and Previous UI to PhamePostView
Summary

Creates a new next/previous UI for PhamePosts, and adds a setFoot to PHUIDocumentViewPro for future use in other apps.

Test Plan

Test first, next, last posts on Phame in mobile, desktop, and tablet breakpoints.

pasted_file (606×894 px, 62 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Add Next and Previous UI to PhamePostView.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.

executeOne() will cause us to throw a policy exception if the first matching object isn't visible to the viewer. Repro instructions should be:

  • Create posts A and B on a blog.
  • Hide post A so you can't see it.
  • View post B.
  • Policy exception from executeOne().

You should still use execute(); you can pick the first item out with head(...).

This revision now requires changes to proceed.Dec 31 2015, 9:02 PM
src/applications/phame/controller/post/PhamePostViewController.php
259–263

These two execute() -> executeOne() changes, particularly.

chad edited edge metadata.
  • head
epriestley edited edge metadata.
This revision is now accepted and ready to land.Dec 31 2015, 9:09 PM
This revision was automatically updated to reflect the committed changes.