Skip to content

[Dynamic dashboard] feature flag for m2#11475

Merged
0nko merged 3 commits intotrunkfrom
dynamic-dashboard/feature-flag-m2
May 10, 2024
Merged

[Dynamic dashboard] feature flag for m2#11475
0nko merged 3 commits intotrunkfrom
dynamic-dashboard/feature-flag-m2

Conversation

@hichamboushaba
Copy link
Copy Markdown
Member

Description

This PR introduces a new feature flag for the M2 changes, and updates the datastore with logic needed to filter out new widgets during development, and also to add them when they are supported but not available in the saved config.

Testing instructions

Just code review.

Images/gif

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@hichamboushaba hichamboushaba added type: task An internally driven task. feature: dashboard Related to home screen project labels May 9, 2024
@hichamboushaba hichamboushaba requested a review from 0nko May 9, 2024 16:51
@dangermattic
Copy link
Copy Markdown
Collaborator

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Copy Markdown
Collaborator

wpmobilebot commented May 9, 2024

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
FlavorJalapeno
Build TypeDebug
Commit5496f82
Direct Downloadwoocommerce-prototype-build-pr11475-5496f82.apk

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 9, 2024

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 40.88%. Comparing base (aa4a166) to head (5496f82).

Files Patch % Lines
...ce/android/ui/dashboard/data/DashboardDataStore.kt 0.00% 4 Missing ⚠️
...kotlin/com/woocommerce/android/util/FeatureFlag.kt 50.00% 0 Missing and 2 partials ⚠️
...e/android/ui/dashboard/data/DashboardRepository.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##              trunk   #11475      +/-   ##
============================================
- Coverage     40.88%   40.88%   -0.01%     
  Complexity     5180     5180              
============================================
  Files          1067     1067              
  Lines         62206    62210       +4     
  Branches       8483     8484       +1     
============================================
+ Hits          25436    25437       +1     
- Misses        34484    34486       +2     
- Partials       2286     2287       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hichamboushaba hichamboushaba force-pushed the dynamic-dashboard/feature-flag-m2 branch from 9eebdb2 to ee0f775 Compare May 9, 2024 18:07
widgets.add(
DashboardWidgetDataModel.newBuilder()
.setType(type.name)
.setIsAdded(false)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This and the value in getDefaultWidgets should be updated after taking a decision internally p1715271583741779-slack-C03L1NF1EA3

# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt
Copy link
Copy Markdown
Contributor

@0nko 0nko left a comment

Choose a reason for hiding this comment

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

:shipit:

@0nko 0nko merged commit 58c5a93 into trunk May 10, 2024
@0nko 0nko deleted the dynamic-dashboard/feature-flag-m2 branch May 10, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: dashboard Related to home screen project type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants