Skip to content

Issue/fix material theme conflicts#11570

Merged
khaykov merged 571 commits intofeature/material-themefrom
issue/fix-material-theme-conflicts
Apr 2, 2020
Merged

Issue/fix material theme conflicts#11570
khaykov merged 571 commits intofeature/material-themefrom
issue/fix-material-theme-conflicts

Conversation

@khaykov
Copy link
Copy Markdown
Contributor

@khaykov khaykov commented Mar 31, 2020

This PR fixes conflicts between feture/material-theme and develop branches.

Check the last 5 commits for fixes. We had conflicts in:

  • Localized strings.xml
  • Localized Fastlane Release Notes
  • Post Settings Fragment (drawable reference was updated)
  • The duplicate string was mixed into one of the localized strings.xml. This was not in a conflict, but surfaced during build.

Outside of this, the only major conflict was related to recent update to Pages list item, that was aimed at visually matching them with the compact Post List item. I made sure the changes visually match each other and Material Theme:
comparison_reader

To test:

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

ashiagr and others added 30 commits February 25, 2020 12:54
popUpToInclusive is set to skip showing preview fragment on returning from ucrop fragment
Using popUpToInclusive for popping the start destination of the graph off the back stack in a multi-module project doesn't seem to be working. Explicitly invoking back action as a workaround.

 Related issue: https://issuetracker.google.com/issues/147312109
…ad-utils-post-msgs

Add unit tests for UploadUtils getErrorMessageResId
…op-with-high-res-image

Issue/11145 start ucrop with high res image
planarvoid and others added 10 commits March 30, 2020 11:45
…nking-urls

Untangle http:// and wordpress:// deeplinking URLs
…-stats-in-post-detail

Fix empty stats in post detail
…ss-Android into issue/fix-material-theme-conflicts

# Conflicts:
#	WordPress/src/main/java/org/wordpress/android/ui/pages/PageItemViewHolder.kt
#	WordPress/src/main/java/org/wordpress/android/ui/pages/PagesFragment.kt
#	WordPress/src/main/res/layout/edit_post_settings_fragment.xml
#	WordPress/src/main/res/layout/page_list_item.xml
#	WordPress/src/main/res/values-ar/strings.xml
#	WordPress/src/main/res/values-cs/strings.xml
#	WordPress/src/main/res/values-de/strings.xml
#	WordPress/src/main/res/values-en-rGB/strings.xml
#	WordPress/src/main/res/values-es-rCL/strings.xml
#	WordPress/src/main/res/values-es-rMX/strings.xml
#	WordPress/src/main/res/values-es-rVE/strings.xml
#	WordPress/src/main/res/values-es/strings.xml
#	WordPress/src/main/res/values-fr/strings.xml
#	WordPress/src/main/res/values-he/strings.xml
#	WordPress/src/main/res/values-id/strings.xml
#	WordPress/src/main/res/values-it/strings.xml
#	WordPress/src/main/res/values-ja/strings.xml
#	WordPress/src/main/res/values-ko/strings.xml
#	WordPress/src/main/res/values-nl/strings.xml
#	WordPress/src/main/res/values-pl/strings.xml
#	WordPress/src/main/res/values-ro/strings.xml
#	WordPress/src/main/res/values-ru/strings.xml
#	WordPress/src/main/res/values-sq/strings.xml
#	WordPress/src/main/res/values-sv/strings.xml
#	WordPress/src/main/res/values-tr/strings.xml
#	WordPress/src/main/res/values-zh-rCN/strings.xml
#	WordPress/src/main/res/values-zh-rHK/strings.xml
#	WordPress/src/main/res/values-zh-rTW/strings.xml
#	fastlane/metadata/android/release_notes.xml
@peril-wordpress-mobile
Copy link
Copy Markdown

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.
Messages
📖

This PR contains changes in the subtree libs/login/. It is your responsibility to ensure these changes are merged back into wordpress-mobile/WordPress-Login-Flow-Android. Follow these handy steps!
WARNING: Make sure your git version is 2.19.x or lower - there is currently a bug in later versions that will corrupt the subtree history!

  1. cd WordPress-Android
  2. git checkout issue/fix-material-theme-conflicts
  3. git subtree push --prefix=libs/login/ https://github.com/wordpress-mobile/WordPress-Login-Flow-Android.git merge/WordPress-Android/11570
  4. Browse to https://github.com/wordpress-mobile/WordPress-Login-Flow-Android/pull/new/merge/WordPress-Android/11570 and open a new PR.

Generated by 🚫 dangerJS

@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Apr 1, 2020

You can test the changes on this Pull Request by downloading the APK here.

@khaykov khaykov requested review from malinajirka and oguzkocer April 1, 2020 00:10
@oguzkocer oguzkocer self-assigned this Apr 2, 2020
Copy link
Copy Markdown
Contributor

@oguzkocer oguzkocer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khaykov I had a look at all 5 new commits and compared the branch to develop and unfortunately it looks like we still have some changes in the localization files and the release notes. I honestly don't understand what the differences are in some cases, but git definitely shows that there are changes. Here is how to check that:

git diff origin/develop $PATH_TO_FILE_OR_FOLDER

So when you run the following:

git diff origin/develop WordPress/src/main/res/*/strings.xml

You shouldn't see any changes that you haven't done yourself.


I don't know how you resolved these conflicts, but there is a super easy way to revert any file or folder to its version in another branch:

git checkout origin/develop $PATH_TO_FILE_OR_FOLDER

For release notes, that's super easy to do and will result in 0f9c9b8.

For localization, it's a bit more involved because there are so many files. The following would normally work:

git co origin/develop WordPress/src/main/res/values-**/strings.xml

However, in this case, this will result in git complaining about not knowing values-v28 and values-v29 folders. To get around that, you can pass in the -p argument to the previous command which will let you pick each patch manually. You can pretty much say yes to almost all the files except for a couple you have made changes to. This will result in 0f9c9b8.

Please have a look at these commits and make sure that they make sense. I suggest opening the develop version of a file and comparing it to the resulting string from these commits. One of them that I checked was https://github.com/wordpress-mobile/WordPress-Android/blob/develop/WordPress/src/main/res/values-el/strings.xml which you'll notice have a translation date of 2020-02-28 09:54:01+0000 which is different in your PR as 2019-10-15 10:29:56+0000.

Once you verify them, you can use the cherry-pick command to add both of these to this PR:

git cherry-pick 57dae949f5f13d326f73bdb2270246130efa989f 0f9c9b8de552212ea93edc2b7ac44ce976127c00

The other changes makes sense to me, but I suggest @malinajirka to look at it as well just to be sure. I did a quick test run of the dark theme and it looked all right, but Jirka if you can do the same it'd be even better!

Hope this helps!

P.S: I had to do some corrections to this comment after I posted it because the preview didn't work for a comment this big. 🙈

@oguzkocer oguzkocer removed their assignment Apr 2, 2020
@khaykov
Copy link
Copy Markdown
Contributor Author

khaykov commented Apr 2, 2020

@oguzkocer Thank you so much for actionable commits and explanation of the process! Now I know what do if I'll encounter something like this next time 🙇I checked the difference with develop after cherry-picking them, and everything looks ok to me.

Still, no idea how it got all messed up like this, and why some lines are marked as changed. Maybe different whitespace character?

@oguzkocer
Copy link
Copy Markdown
Contributor

Still, no idea how it got all messed up like this, and why some lines are marked as changed. Maybe different whitespace character?

I have no idea either, with the whitespace that was my guess too, but there are some other changes that shouldn't be in the feature branch I don't think. I wonder if any of the auto-merges caused that.

I think this PR is good as is, but once it's merged I suggest checking if any other files are unintentionally modified. I wrote a p2 post about this just now, so have a look at that and feel free to ping me if you need help.

@khaykov
Copy link
Copy Markdown
Contributor Author

khaykov commented Apr 2, 2020

@malinajirka We are a bit time pressured with this PR, so if you think there are any visual changes required to Pages items - let me know and I'll add them :)

@khaykov khaykov merged commit d2c5d0d into feature/material-theme Apr 2, 2020
@khaykov khaykov deleted the issue/fix-material-theme-conflicts branch April 2, 2020 14:48
@malinajirka
Copy link
Copy Markdown
Contributor

malinajirka commented Apr 3, 2020

I'm sorry, I totally missed the ping. I've checked it and it looks good overall. I found one potential design issue not related to the merge - when a page is being uploaded a disabled overlay is shown. However, this overlay looks a bit weird in dark mode. Wdyt?

Note: Btw the same issue is present on the post list.

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.