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, Dec 17, 2:44 PM
Unknown Object (File)
Mon, Dec 16, 7:05 PM
Unknown Object (File)
Fri, Dec 6, 6:40 AM
Unknown Object (File)
Tue, Dec 3, 7:41 AM
Unknown Object (File)
Nov 27 2024, 7:48 AM
Unknown Object (File)
Nov 23 2024, 11:26 AM
Unknown Object (File)
Nov 18 2024, 4:39 PM
Unknown Object (File)
Nov 15 2024, 1:57 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
Branch
phame-next (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9874
Build 11900: Run Core Tests
Build 11899: arc lint + arc unit

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.