Page MenuHomePhabricator

Add Next and Previous UI to PhamePostView
ClosedPublic

Authored by chad on Dec 31 2015, 9:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 10, 2:50 AM
Unknown Object (File)
Sun, Sep 8, 5:58 PM
Unknown Object (File)
Sat, Sep 7, 9:08 PM
Unknown Object (File)
Sat, Aug 31, 6:41 AM
Unknown Object (File)
Mon, Aug 26, 12:50 AM
Unknown Object (File)
Sun, Aug 25, 7:36 AM
Unknown Object (File)
Sun, Aug 25, 4:28 AM
Unknown Object (File)
Fri, Aug 23, 10:54 PM
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.