Skip to content

AI Launchpad: first-pass design-feedback fixes (DSGCOM-678)#50088

Merged
Copons merged 8 commits into
trunkfrom
dsgcom-678-ai-launchpad-feedback-first-pass
Jul 1, 2026
Merged

AI Launchpad: first-pass design-feedback fixes (DSGCOM-678)#50088
Copons merged 8 commits into
trunkfrom
dsgcom-678-ai-launchpad-feedback-first-pass

Conversation

@Copons

@Copons Copons commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #

Implements the first pass of design feedback for the AI Launchpad (DSGCOM-678). The feature stays OFF in production (gated); these are UI/UX and copy fixes plus a comments-only cleanup.

Proposed changes

  • Accordion task list — only one task card is open at a time; opening another collapses the active one. The first incomplete task auto-expands on load.
  • Auto-advance — skipping or completing a task auto-expands the next incomplete task.
  • WPDS state icons — replace the inline SVGs with @wordpress/icons border (active) and published (done).
  • Site editor quick link — the preview thumbnail reveals a compact "Edit site" button on hover, linking to the Site Editor on block themes and the Customizer on classic themes.
  • Mobile wizard copy — goal-card descriptions (Educate, Portfolio) span the full container width on mobile.
  • Drop write_3_posts — removed from the tailoring menu (redundant with "Write your first post").
  • Generic social copy — social-task subtitles stay general and no longer name specific networks.
  • Comments cleanup — trimmed verbose docblocks/inline comments across the feature and removed internal ticket references (comments-only; no behavior change).

Related product discussion/links

Does this pull request change what data or activity we track or use?

No.

Testing instructions

The feature is gated off in production. On a paid WordPress.com (Simple or Atomic) test site with the AI Launchpad enabled:

  • Open the AI Launchpad item in the wp-admin menu.
  • In the wizard on a mobile viewport, confirm the Educate and Portfolio card copy spans the full width.
  • On the tailored list:
    • Confirm only one task card is open at a time; opening another collapses the previous.
    • Skip a task → the next incomplete task expands. Use Mark as complete on a no-CTA task (e.g. "Share your site") → the next task expands.
    • Confirm icons: dashed ring for active tasks, check-in-circle + struck-through title for done.
  • Hover the site preview thumbnail → a compact "Edit site" button appears; it opens the Site Editor (block theme) or Customizer (classic theme).
  • Confirm the AI no longer surfaces a "Write 3 posts" task, and that the social task reads generically (no specific networks).

Copons added 8 commits June 30, 2026 17:30
The model could pick both write_3_posts and first_post_published, which read
as duplicates in the same list (DSGCOM-678). Remove write_3_posts from the
prompt's TASK_MENU so it's no longer offered; the menu stays a subset of the
catalog (AI_Launchpad_Task_Menu_Test still passes).
Design feedback (DSGCOM-678): "Connect your social media accounts" read too
specific (e.g. naming Instagram/Pinterest) when we do not know which platforms
the user uses. Add a prompt rule so connect_social_media / drive_traffic /
post_sharing_enabled subtitles stay about growing the audience and engaging
visitors, without naming specific networks.
Design feedback (DSGCOM-678): the Educate and Portfolio descriptions did not
extend across the container on mobile. `text-wrap: balance` evens line lengths,
which keeps the copy narrow on the full-width single-column mobile cards. Scope
balance to the two-column desktop grid and use `text-wrap: pretty` on mobile so
longer copy fills the width while still avoiding orphans.
Design feedback (DSGCOM-678): use WPDS icons for the task states. Replace the
inline hand-rolled SVGs with @wordpress/icons `border` (a dashed ring) for an
active/not-started task and `published` (a check-in-circle) for a done one.
Icons fill from currentColor so the existing grey toning still applies.
… time)

Design feedback (DSGCOM-678): only one task card should be open at a time, and
opening a different card should collapse the active one. Replace the cards
uncontrolled defaultOpen with parent-controlled open/onOpenChange: a single
openId state means opening any card closes the rest, and the user can still
collapse all. The first incomplete card auto-opens once (guarded by a ref so a
fully-collapsed list is never force-reopened). firstIncompleteIndex becomes
nextIncompleteId (id-based, null when all complete).
Design feedback (DSGCOM-678): skipping a task should expand the next one.
handleSkip now advances the accordion to the next incomplete task (via a new
nextIncompleteId afterId overload that walks past the skipped id, falling back
to any remaining incomplete task). Apply the same advance to handleMarkComplete
so completing the open card does not leave the whole list collapsed.
…view

Design feedback (DSGCOM-678): keep the preview thumbnail as a quick link into
the site editor. The REST site payload returns edit_url and SitePreview renders
the thumbnail as a link with a hover "Edit site" overlay. Block themes point at
the Site Editor (site-editor.php); classic themes, which cannot use it, fall
back to the Customizer (customize.php) so the quick link is always available.
Comments-only cleanup across the feature: remove the internal ticket references
from code comments, collapse multi-paragraph docblocks and decision-narration to
terse one-line summaries, and delete inline comments that just restated the code.
Lint-required docblock tags (@param/@return/@Package) are preserved; no code,
logic, or behavior changes.
@Copons Copons added the [Status] Needs Review This PR is ready for review. label Jun 30, 2026
@Copons Copons self-assigned this Jun 30, 2026
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (WordPress.com Site Helper), and enable the dsgcom-678-ai-launchpad-feedback-first-pass branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin dsgcom-678-ai-launchpad-feedback-first-pass

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@jp-launch-control

jp-launch-control Bot commented Jun 30, 2026

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 21 files. Only the first 5 are listed here.

File Coverage Δ% Δ Uncovered
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/tailored-list/site-preview.tsx 0/76 (0.00%) 0.00% 21 💔
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/tailored-list/tailored-list.tsx 0/280 (0.00%) 0.00% 17 💔
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/class-ai-launchpad-rest.php 279/286 (97.55%) 0.01% 0 💚
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/lib/types.ts 0/47 (0.00%) 0.00% -1 💚
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/lib/first-post.ts 0/55 (0.00%) 0.00% -2 💚

Full summary · PHP report · JS report

Coverage check overridden by I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. .

@Copons Copons added the I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. label Jul 1, 2026
@Copons Copons merged commit eff0fc8 into trunk Jul 1, 2026
79 checks passed
@Copons Copons deleted the dsgcom-678-ai-launchpad-feedback-first-pass branch July 1, 2026 08:58
@github-actions github-actions Bot removed the [Status] Needs Review This PR is ready for review. label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. [mu wpcom Feature] Ai Launchpad [Package] Jetpack mu wpcom WordPress.com Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant