-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implements the editor title in RN for Gutenberg. #10794
Merged
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b1edb4a
WIP: migrating the post title to RN for Gutenberg posts.
diegoreymendez d04cf87
WIP: Implementing the post title editing in RN for Gutenberg.
diegoreymendez 633caad
Removes the native title from Gutenberg.
diegoreymendez ca3d72d
Updates the Gutenberg pod to the latest version.
diegoreymendez 29c858f
Updates the Gutenberg pod.
diegoreymendez 8f2ea88
Updates the gutenberg-mobile pod and fixes title updates.
diegoreymendez d071928
rake lint:autocorrect
diegoreymendez 98b8253
Updates the Gutenberg pod.
diegoreymendez daf7394
Updates the Gutenberg pod.
diegoreymendez 552131a
Merges the latest from develop.
diegoreymendez db55ec8
Update the gutenberg-mobile version.
diegoreymendez 36aa7b1
Merges the latest from develop.
diegoreymendez c4dd274
Updates the Gutenberg reference.
diegoreymendez bb38fbe
Updates the Gutenberg pod to make sure the app builds.
diegoreymendez 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
35 changes: 0 additions & 35 deletions
35
WordPress/Classes/ViewRelated/Gutenberg/GutenbergContainerView.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,5 @@ | ||
import UIKit | ||
|
||
class GutenbergContainerView: UIView, NibLoadable { | ||
|
||
@IBOutlet weak var titleTextField: UITextField! | ||
@IBOutlet weak var separatorView: UIView! | ||
@IBOutlet weak var editorContainerView: UIView! | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
configureTitleTextField() | ||
configureSeparatorView() | ||
} | ||
|
||
func configureTitleTextField() { | ||
titleTextField.borderStyle = .none | ||
titleTextField.font = Fonts.title | ||
titleTextField.textColor = Colors.title | ||
titleTextField.backgroundColor = Colors.background | ||
titleTextField.placeholder = NSLocalizedString("Title", comment: "Placeholder for the post title.") | ||
titleTextField.autocapitalizationType = .sentences | ||
} | ||
|
||
func configureSeparatorView() { | ||
separatorView.backgroundColor = Colors.separator | ||
} | ||
} | ||
|
||
private extension GutenbergContainerView { | ||
|
||
enum Colors { | ||
static let title = UIColor.darkText | ||
static let separator = WPStyleGuide.greyLighten30() | ||
static let background = UIColor.white | ||
} | ||
|
||
enum Fonts { | ||
static let title = WPFontManager.notoBoldFont(ofSize: 24.0) | ||
} | ||
} |
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
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.
Forgive me if you already know about this, there's a recent agreement about not depending on commit numbers anymore even on develop branch. So I think we'll need to update the commit dependencies to a beta tag before merging our PRs
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.
That's correct, but I'd suggest to publish a tag once the review process is complete to avoid multiple tags per PR.
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.
was already agreeing on that sorry if I wasn't clear
Anyway after chatting on this, this conversation might even be outdated