Skip to content

Commit

Permalink
Merge branch 'trunk' into issue-10719/total-sheet-shipping-tax
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Dean committed Feb 22, 2024
2 parents dc8cb29 + cc11f60 commit 6fde496
Show file tree
Hide file tree
Showing 147 changed files with 3,803 additions and 1,050 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/run-danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: ☢️ Danger

on:
pull_request:
types: [opened, synchronize, edited, review_requested, review_request_removed, labeled, unlabeled, milestoned, demilestoned]
types: [opened, reopened, ready_for_review, synchronize, edited, labeled, unlabeled, milestoned, demilestoned]

jobs:
dangermattic:
uses: Automattic/dangermattic/.github/workflows/reusable-run-danger.yml@trunk
# runs on draft PRs only for opened / synchronize events
if: ${{ (github.event.pull_request.draft == false) || (github.event.pull_request.draft == true && contains(fromJSON('["opened", "synchronize"]'), github.event.action)) }}
uses: Automattic/dangermattic/.github/workflows/reusable-run-danger.yml@v1.0.0
secrets:
github-token: ${{ secrets.DANGERMATTIC_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/validate-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@v1.0.0
with:
label-format-list: '[
"^type: *$",
"^feature: *$"
"^type: .+",
"^feature: .+"
]'
label-error-message: '🚫 Please add a type label (e.g. **type: enhancement**) and a feature label (e.g. **feature: stats**) to this issue.'
label-success-message: 'Thanks for reporting! 👍'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!--
Contains editorialized release notes. Raw release notes should go into `RELEASE-NOTES.txt`.
-->
## 17.4
We're excited to offer support for third-party Passkey providers. This update is designed to provide WordPress.com users with more flexibility and convenience in how they manage their account's security. Get ready to say goodbye to password fatigue and hello to a smoother, secure login experience!

## 17.3
We've enhanced the shipping label creation flow to ensure a smoother and more intuitive experience. This improvement aims to streamline your order fulfillment process, making it faster and more efficient. Please continue sending us feedback – we are listening!

Expand Down
64 changes: 39 additions & 25 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -1,42 +1,56 @@
# frozen_string_literal: true

def release_branch?
danger.github.branch_for_base.start_with?('release/') || danger.github.branch_for_base.start_with?('hotfix/')
end

def main_branch?
danger.github.branch_for_base == 'trunk'
end
github.dismiss_out_of_range_messages

def wip_feature?
has_wip_label = github.pr_labels.any? { |label| label.include?('WIP') }
has_wip_title = github.pr_title.include?('WIP')
# `files: []` forces rubocop to scan all files, not just the ones modified in the PR
rubocop.lint(files: [], force_exclusion: true, inline_comment: true, fail_on_inline_comment: true, include_cop_names: true)

has_wip_label || has_wip_title
end
manifest_pr_checker.check_gemfile_lock_updated

return if github.pr_labels.include?('Releases')
android_release_checker.check_release_notes_and_play_store_strings

github.dismiss_out_of_range_messages
android_strings_checker.check_strings_do_not_refer_resource

manifest_pr_checker.check_gemfile_lock_updated
# skip remaining checks if we're in a release-process PR
if github.pr_labels.include?('Releases')
message('This PR has the `Releases` label: some checks will be skipped.')
return
end

labels_checker.check(
do_not_merge_labels: ['status: do not merge'],
required_labels: [//],
required_labels_error: 'PR requires at least one label.'
common_release_checker.check_internal_release_notes_changed(report_type: :message)

tracks_checker.check_tracks_changes(
tracks_files: [
'AnalyticsTracker.kt',
'AnalyticsEvent.kt',
'LoginAnalyticsTracker.kt'
],
tracks_usage_matchers: [
/AnalyticsTracker\.track/
],
tracks_label: 'category: tracks'
)

view_changes_need_screenshots.view_changes_need_screenshots
view_changes_checker.check

pr_size_checker.check_diff_size(
file_selector: ->(path) { !path.include?('/src/test') },
max_size: 300
max_size: 300,
file_selector: ->(path) { !path.include?('/src/test') }
)

android_unit_test_checker.check_missing_tests

# skip check for draft PRs and for WIP features unless the PR is against the main branch or release branch
milestone_checker.check_milestone_due_date(days_before_due: 2) unless github.pr_draft? || (wip_feature? && !(release_branch? || main_branch?))
# skip remaining checks if the PR is still a Draft
if github.pr_draft?
message('This PR is still a Draft: some checks will be skipped.')
return
end

labels_checker.check(
do_not_merge_labels: ['status: do not merge'],
required_labels: [//],
required_labels_error: 'PR requires at least one label.'
)

rubocop.lint(inline_comment: true, fail_on_inline_comment: true, include_cop_names: true)
# runs the milestone check if this is not a WIP feature and the PR is against the main branch or the release branch
milestone_checker.check_milestone_due_date(days_before_due: 2) if (github_utils.main_branch? || github_utils.release_branch?) && !github_utils.wip_feature?
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

source 'https://rubygems.org'

gem 'danger-dangermattic', git: 'https://github.com/Automattic/dangermattic'
gem 'danger-dangermattic', '~> 1.0'
gem 'fastlane', '~> 2.216'
gem 'nokogiri'
gem 'rubocop', '~> 1.56'
gem 'rubocop', '~> 1.60'

### Fastlane Plugins

Expand Down
61 changes: 28 additions & 33 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
GIT
remote: https://github.com/Automattic/dangermattic
revision: 06a54db4f546d20c0465e4d144049d061a2a1e20
specs:
danger-dangermattic (0.0.1)
danger (~> 9.3)
danger-junit (~> 1.0)
danger-plugin-api (~> 1.0)
danger-rubocop (~> 0.11)
danger-swiftlint (~> 0.29)
danger-xcode_summary (~> 1.0)
rubocop (~> 1.56)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -26,7 +13,7 @@ GEM
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.5)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
artifactory (3.0.15)
ast (2.4.2)
Expand Down Expand Up @@ -66,7 +53,7 @@ GEM
connection_pool (2.4.1)
cork (0.3.0)
colored2 (~> 3.1)
danger (9.3.2)
danger (9.4.3)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
Expand All @@ -77,8 +64,16 @@ GEM
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
no_proxy_fix
octokit (~> 6.0)
octokit (>= 4.0)
terminal-table (>= 1, < 4)
danger-dangermattic (1.0.0)
danger (~> 9.4)
danger-junit (~> 1.0)
danger-plugin-api (~> 1.0)
danger-rubocop (~> 0.12)
danger-swiftlint (~> 0.35)
danger-xcode_summary (~> 1.0)
rubocop (~> 1.60)
danger-junit (1.0.2)
danger (> 2.0)
ox (~> 2.0)
Expand All @@ -87,10 +82,10 @@ GEM
danger-rubocop (0.12.0)
danger
rubocop (~> 1.0)
danger-swiftlint (0.33.0)
danger-swiftlint (0.35.0)
danger
rake (> 10)
thor (~> 0.19)
thor (~> 1.0.0)
danger-xcode_summary (1.2.0)
danger-plugin-api (~> 1.0)
xcresult (~> 0.2)
Expand Down Expand Up @@ -122,7 +117,7 @@ GEM
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-http-cache (2.5.0)
faraday-http-cache (2.5.1)
faraday (>= 0.8)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
Expand Down Expand Up @@ -193,7 +188,7 @@ GEM
rake-compiler (~> 1.0)
xcodeproj (~> 1.22)
gh_inspector (1.1.3)
git (1.18.0)
git (1.19.1)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.53.0)
Expand Down Expand Up @@ -241,7 +236,7 @@ GEM
concurrent-ruby (~> 1.0)
java-properties (0.3.0)
jmespath (1.6.2)
json (2.6.3)
json (2.7.1)
jwt (2.7.1)
kramdown (2.4.0)
rexml
Expand All @@ -253,16 +248,16 @@ GEM
mini_portile2 (2.8.5)
minitest (5.20.0)
multi_json (1.15.0)
multipart-post (2.3.0)
multipart-post (2.4.0)
mutex_m (0.1.2)
nanaimo (0.3.0)
nap (1.1.0)
naturally (2.2.1)
no_proxy_fix (0.1.2)
nokogiri (1.15.4)
nokogiri (1.16.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.15.4-arm64-darwin)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
octokit (6.1.1)
faraday (>= 1, < 3)
Expand All @@ -272,8 +267,8 @@ GEM
optparse (0.1.1)
os (1.1.4)
ox (2.14.17)
parallel (1.23.0)
parser (3.2.2.4)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
plist (3.7.0)
Expand All @@ -287,7 +282,7 @@ GEM
rake-compiler (1.2.5)
rake
rchardet (1.8.0)
regexp_parser (2.8.2)
regexp_parser (2.9.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
Expand All @@ -296,15 +291,15 @@ GEM
rexml (3.2.6)
rmagick (4.3.0)
rouge (2.0.7)
rubocop (1.57.2)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
Expand All @@ -327,7 +322,7 @@ GEM
terminal-notifier (2.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (0.20.3)
thor (1.0.1)
trailblazer-option (0.1.2)
tty-cursor (0.7.1)
tty-screen (0.8.1)
Expand Down Expand Up @@ -357,12 +352,12 @@ PLATFORMS
ruby

DEPENDENCIES
danger-dangermattic!
danger-dangermattic (~> 1.0)
fastlane (~> 2.216)
fastlane-plugin-wpmreleasetoolkit (~> 9.2)
nokogiri
rmagick (~> 4.1)
rubocop (~> 1.56)
rubocop (~> 1.60)

BUNDLED WITH
2.4.19
15 changes: 15 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
*** PLEASE FOLLOW THIS FORMAT: [<priority indicator, more stars = higher priority>] <description> [<PR URL>]

17.5
-----
- [*] [Internal] As side effect of adding tablet support, toolbar on the product list screen is not collapsible anymore [https://github.com/woocommerce/woocommerce-android/pull/10844]


17.4
-----
- [*] [Internal] Added the "Shipping Tax" display in the order creation form to enhance tax detail visibility, ensuring comprehensive financial tracking. [https://github.com/woocommerce/woocommerce-android/pull/10794]
- [**] Added support to use third-party passkey providers and other devices passkeys as a WordPress.com login option [https://github.com/woocommerce/woocommerce-android/pull/10647]

17.3
-----



17.3.1
-----
- [***] Fixed a critical bug causing a crash on Order Detail screen with WooCommerce v8.7.0.10. [https://github.com/woocommerce/woocommerce-android/pull/10871]
17.3
-----
- [*] [Internal] Enhanced user experience in shipping label creation with automatic scrolling to the first invalid field upon form submission failure [https://github.com/woocommerce/woocommerce-android/pull/10657]
- [*] [Internal] Enhanced product variation delete confirmation dialog visibility and functionality across device rotations [https://github.com/woocommerce/woocommerce-android/pull/10664]
- [*] [Internal] Added a text along with the receipts file when it is shared [https://github.com/woocommerce/woocommerce-android/pull/10681]
- [**] Fixed navigation issues [https://github.com/woocommerce/woocommerce-android/pull/10775]

17.2.1
-----
- [**] Fixed navigation bug causing app to crash in some scenarios [https://github.com/woocommerce/woocommerce-android/pull/10786]

17.2
-----
Expand Down
2 changes: 1 addition & 1 deletion WooCommerce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"

testImplementation 'app.cash.turbine:turbine:0.8.0'
testImplementation 'app.cash.turbine:turbine:1.0.0'

implementation "org.apache.commons:commons-text:$commonsText"
implementation "commons-io:commons-io:$commonsIO"
Expand Down
12 changes: 6 additions & 6 deletions WooCommerce/metadata/PlayStoreStrings.pot
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ msgstr ""
"Project-Id-Version: Release Notes & Play Store Descriptions\n"

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "release_note_173"
msgctxt "release_note_174"
msgid ""
"17.3:\n"
"We've enhanced the shipping label creation flow to ensure a smoother and more intuitive experience. This improvement aims to streamline your order fulfillment process, making it faster and more efficient. Please continue sending us feedback – we are listening!\n"
"17.4:\n"
"We're excited to offer support for third-party Passkey providers. This update is designed to provide WordPress.com users with more flexibility and convenience in how they manage their account's security. Get ready to say goodbye to password fatigue and hello to a smoother, secure login experience!\n"
msgstr ""

msgctxt "release_note_172"
msgctxt "release_note_173"
msgid ""
"17.2:\n"
"This version includes optimizations for speed and reliability. We are committed to continuously improving the app, making managing your online store more efficient and hassle-free.\n"
"17.3:\n"
"We've enhanced the shipping label creation flow to ensure a smoother and more intuitive experience. This improvement aims to streamline your order fulfillment process, making it faster and more efficient. Please continue sending us feedback – we are listening!\n"
msgstr ""

#. translators: Short description of the app to be displayed in the Play Store. Limit to 80 characters including spaces and commas!
Expand Down
2 changes: 1 addition & 1 deletion WooCommerce/metadata/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
We've enhanced the shipping label creation flow to ensure a smoother and more intuitive experience. This improvement aims to streamline your order fulfillment process, making it faster and more efficient. Please continue sending us feedback – we are listening!
We're excited to offer support for third-party Passkey providers. This update is designed to provide WordPress.com users with more flexibility and convenience in how they manage their account's security. Get ready to say goodbye to password fatigue and hello to a smoother, secure login experience!
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.woocommerce.android.e2e.helpers.useMockedAPI
import com.woocommerce.android.e2e.screens.TabNavComponent
import com.woocommerce.android.e2e.screens.login.WelcomeScreen
import com.woocommerce.android.e2e.screens.products.ProductListScreen
import com.woocommerce.android.e2e.screens.shared.FilterScreen
import com.woocommerce.android.ui.login.LoginActivity
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
Expand Down Expand Up @@ -68,9 +67,6 @@ class ProductsRealAPI : TestBase() {
ProductListScreen()
.leaveSearchMode()

FilterScreen()
.leaveFilterScreenToProducts()

WelcomeScreen
.logoutIfNeeded(composeTestRule)
}
Expand Down
Loading

0 comments on commit 6fde496

Please sign in to comment.