Page MenuHomePhabricator

Add Next and Previous UI to PhamePostView
ClosedPublic

Authored by chad on Dec 31 2015, 9:00 PM.
Tags
None
Referenced Files
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
F13980809: D14919.id36051.diff
Sat, Oct 19, 12:39 PM
Unknown Object (File)
Oct 1 2024, 6:09 PM
Unknown Object (File)
Sep 20 2024, 7:00 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
Branch
phame-next (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9873
Build 11898: Run Core Tests
Build 11897: 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.