Commit f0551b4
Remove plans from my site (#22514)
* Remove Plans screen from My Site menu
Remove the Plans feature from the My Site menu while keeping shared
resources used by other features (domains, themes).
Removed:
- PlansListFragment, PlansActivity, PlansListAdapter, PlanDetailsFragment,
PlansViewModel
- Plans layout files (plans_activity.xml, plans_list_fragment.xml,
plans_list_item.xml)
- PLAN action from ListItemAction enum
- OpenPlan from SiteNavigationAction
- viewBlogPlans from ActivityLauncher
- Related tests and test fixtures
- Unused plan-related strings
Kept (shared by domains, themes):
- PlansConstants.java (plan ID constants)
- PlanUtils.kt (utility functions like isDomainCreditAvailable)
- plans_purchase_success_fragment.xml (used by domain registration)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Move PlanUtils.kt and PlansConstants.java to util package
These utility classes are used across multiple features (domains, themes,
media, settings, plugins) and are not UI components, so they belong in
the util package rather than ui/plans. This also allows the now-empty
ui/plans directory to be removed.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Remove redundant same-package imports
Remove unnecessary imports of PlansConstants and PlanUtils functions
from files in the same util package to fix detekt and checkstyle errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Remove orphaned plan_feature_item.xml layout
This layout file was used by the removed Plans screen and is no longer
referenced anywhere in the codebase.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7b64bc6 commit f0551b4
File tree
41 files changed
+22
-824
lines changed- WordPress/src
- main
- java/org/wordpress/android
- modules
- ui
- domains
- media
- mysite
- cards
- domainregistration
- items/listitem
- plans
- plugins
- prefs
- themes
- util
- res
- layout
- values
- test/java/org/wordpress/android
- ui
- domains
- mysite
- cards
- domainregistration
- items
- listitem
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+22
-824
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 354 | | |
363 | 355 | | |
364 | 356 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
| |||
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
240 | | - | |
241 | | - | |
242 | 236 | | |
243 | 237 | | |
244 | 238 | | |
| |||
307 | 301 | | |
308 | 302 | | |
309 | 303 | | |
310 | | - | |
311 | | - | |
312 | 304 | | |
313 | 305 | | |
314 | 306 | | |
| |||
381 | 373 | | |
382 | 374 | | |
383 | 375 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 376 | | |
389 | 377 | | |
390 | 378 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | 247 | | |
254 | 248 | | |
255 | 249 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
650 | 649 | | |
651 | 650 | | |
652 | 651 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | 652 | | |
661 | 653 | | |
662 | 654 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments