Skip to content

[Try & don't merge] Subscriptions Wizard#15

Closed
claudiulodro wants to merge 7 commits into
masterfrom
try/subs-wizard
Closed

[Try & don't merge] Subscriptions Wizard#15
claudiulodro wants to merge 7 commits into
masterfrom
try/subs-wizard

Conversation

@claudiulodro
Copy link
Copy Markdown
Contributor

The architecture of our WP Admin screens has changed since I began work on this, so this PR is just for testing flows and identifying flow/UI issues. Please ignore the code; it's rough, and I won't clean it up since the implementation is going to be JS-based soon.

To test:

  1. Activate WooCommerce, WooCommerce Subscriptions, WooCommerce Name Your Price, and WooCommerce One Page Checkout plugins.
  2. Navigate to Newspack > Subscriptions in WP Admin:

Screen Shot 2019-04-25 at 8 20 33 AM

3. Create a subscription:

Screen Shot 2019-04-25 at 8 21 55 AM

Screen Shot 2019-04-25 at 8 22 09 AM

4. Click subscription name/image to view subscription:

Screen Shot 2019-04-25 at 8 23 33 AM

5. Hover over card and click 'Delete' to delete subscription:

Screen Shot 2019-04-25 at 8 24 55 AM

Discussion questions:

  • How do we want to approach the product category for these subscriptions? The default category is "Uncategorized", and with no further customization subscriptions will display "Category: Uncategorized" and "Home / Uncategorized / Valued Donor". The easiest solution would be to change the name of the Uncategorized category to something else. The most flexible solution would be to create a new category for these to live in or add category selection to the screen somehow.
  • Do we want short description, regular description, both, or none? They can help explain benefits of membership, but people need to write content and if done poorly it can distract from purchasing. Here is a screenshot of the above subscription but with short description and description added:

Screen Shot 2019-04-25 at 8 35 19 AM

The short description is to the right of the image. The description is underneath. We'll need some sort of UI if we want either of those.

@claudiulodro claudiulodro added [Type] Core functionality Required core plugin functionality [Status] Needs Review The issue or pull request needs to be reviewed labels Apr 25, 2019
This was referenced May 17, 2019
@claudiulodro
Copy link
Copy Markdown
Contributor Author

See #73

@claudiulodro claudiulodro deleted the try/subs-wizard branch July 3, 2019 16:41
kmwilkerson added a commit that referenced this pull request May 15, 2026
- Add isEligible guard on Reset: excluded for woocommerce-source emails
  and emails without a registry_slug (finding #1)
- Capture previous status before optimistic update so rollback doesn't
  assume binary publish/draft (finding #2)
- Drop view_category from enrichment response — dead data not consumed
  by the frontend (finding #3)
- Add @todo NPPD-1532 comment on reset endpoint coupling (finding #4)
- Add NPPD-1531 comment on optimistic update / store consolidation (#5)
- Replace brittle PHPUnit count assertions with structural invariants:
  required keys, valid source/recipient, exclusive type keys, no
  duplicates, sort order (findings #6, #7, #8)
- Add optimistic-rollback failure test and reset eligibility test (#9, #11)
- Add 6th mockEmail fixture (WC draft) for cleaner activate test (#10)
- Coerce pluginsReady with Boolean() to handle undefined (#12)
- Use noticeText prop consistently on Notice (#13)
- Fix preview placeholder to use neutral gray tokens (#14)
- Trim EmailItem interface to consumed fields, add source (#15)
- Add source-of-truth comment on category_order strings (#16)
- Consolidate three duplicate TODO comments into one (#17)
- Add NPPD-1525 ticket reference on EmailPreview TODO (#18)
- Extract duplicated screen-reader h1 into PageHeading component (#19)
- Add text-overflow ellipsis on trigger description column (#20)
- Return localized string from recipient getValue for search (#21)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Merge! [Status] Needs Review The issue or pull request needs to be reviewed [Type] Core functionality Required core plugin functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants