Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract mobile transition interactions #4044

Merged
merged 1 commit into from
Sep 16, 2014
Merged

Conversation

novaugust
Copy link
Contributor

Closes #4032, ref #3950's "epic goal"

  • Created "mobile" views: parent-view, content-view and index-view
  • mobile/parent-view has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user
  • content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate
  • fixed media queries for post content list from 800px to 900px
  • Created mobile-index-route to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute)
  • Extract mobile interactions from settings views to new mobile utility views
  • removed unused openEditor action from PostsRoute
  • removed unused mobile util "responsiveAction"

@novaugust
Copy link
Contributor Author

This PR brought to you by a late night and a bottle of red wine

@novaugust novaugust force-pushed the issue4032 branch 2 times, most recently from 8b498f1 to 4e664e4 Compare September 16, 2014 06:59
});
if (post) {
return self.transitionTo('posts.post', post);
}
else {

This comment was marked as abuse.

This comment was marked as abuse.

@halfdan
Copy link
Contributor

halfdan commented Sep 16, 2014

@novaugust Seems to be a good bottle :) Nice refactoring / implementation of mobile transitions.

@PaulAdamDavis
Copy link
Member

Epic! 😁

Closes TryGhost#4032
- Created "mobile" views: `parent-view`, `content-view` and `index-view`
- `mobile/parent-view` has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user
- content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate
- fixed media queries for post content list from 800px to 900px
- Created `mobile-index-route` to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute)
- Extract mobile interactions from settings views to new mobile utility views
- `js-` prefixed settings view transitions
- removed unused openEditor action from PostsRoute
- removed unused mobile util "responsiveAction"
@halfdan
Copy link
Contributor

halfdan commented Sep 16, 2014

LGTM! 👍

@ErisDS
Copy link
Member

ErisDS commented Sep 16, 2014

Not sure if I'm missing something, but I think there were a set of body classes described in #3792 for each of the different views. Is there a reason why these classes are different, or can we rename them and mark this PR as closes #3792 as well?

@novaugust
Copy link
Contributor Author

@ErisDS that's something completely separate from this, where each settings subroute has some complex logic to add and remove specific classnames. I don't think it belongs with this pr.

@ErisDS
Copy link
Member

ErisDS commented Sep 16, 2014

I totes misunderstood what was meant by

Created "mobile" views: parent-view, content-view and index-view

ErisDS added a commit that referenced this pull request Sep 16, 2014
Abstract mobile transition interactions
@ErisDS ErisDS merged commit 411e8dc into TryGhost:master Sep 16, 2014
@novaugust novaugust deleted the issue4032 branch September 19, 2014 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't redirect /ghost to a specific post on mobile
4 participants