-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Editor: Mobile editor redesign #4456
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
cbba98c
Refactored EditorSidebarHeader component to be a React class component.
DanReyLop d6ca0ab
Remove mobile-specific code from the EditorSidebarHeader component
DanReyLop c3c2917
Extracted the desktop sidebar to its own component
DanReyLop 93f5ab4
First approach to the new metadata/editor panels on mobile
DanReyLop 1aebe7f
Implemented the switch between editor and metadata
DanReyLop 2435867
Extracted the primary editor button (publish/update) to its own compo…
DanReyLop 357afff
Re-applied changes lost in the rebase with master
DanReyLop d738c4d
Fixed tests, moved the relevant GroundControl tests to the EditorPubl…
DanReyLop f71bffa
Moved the primary button to the navigation bar, only in mobile
DanReyLop 6136f6c
Added the proper styles to the mobile navigation bar
DanReyLop 05f0c35
Improved the Date picker button in mobile so it shows the selected date
DanReyLop ddd5885
Implemented the changes requested in the comments of #4456
DanReyLop 10cf63c
Fixed white background below the post drawer on mobile
DanReyLop 72f10e0
Fixed opening and closing preview leaving the tabs in an inconsistent…
DanReyLop 3a72d0e
Renamed canSchedulePost function to canPublishPost to make it more clear
DanReyLop ae7c1a8
Removed the state in the EditorMobileNavigation component, make it re…
DanReyLop ea7ba8d
Make the publish button always blue (primary), even in mobile
DanReyLop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't make a mixin out of this. What is the purpose? To switch a button style based on viewport? That seems like something we should do programatically like:
Switching the CSS seems very fragile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this redesign, all the changes between mobile and desktop are made using CSS media queries, so the UI can change accordingly even if the user resizes the window (very uncommon, but probably will be more common with the side-by-side app mode in tablets). This particular mixin is not pretty, but it would be worse changing only this one thing on JS code.