Skip to content

Add Studio Code slide to What's New modal - #3924

Merged
sejas merged 12 commits into
trunkfrom
stu-1896-add-studio-code-to-studio-whats-new-modal
Jun 24, 2026
Merged

Add Studio Code slide to What's New modal#3924
sejas merged 12 commits into
trunkfrom
stu-1896-add-studio-code-to-studio-whats-new-modal

Conversation

@sejas

@sejas sejas commented Jun 22, 2026

Copy link
Copy Markdown
Member

Related issues

How AI was used in this PR

AI assistance was used to scaffold the new slide by following the existing WhatsNewPage pattern (imports, slide entry, localized link). All copy, the docs URL, and placement were reviewed and adjusted by hand.

Proposed Changes

Studio Code — the agentic WordPress expert previously available only via the CLI/terminal — is now part of the Studio desktop app, replacing v1 of the AI assistant. This adds a "What's New" slide so users discover it on launch.

  • New slide leads the What's New modal, with a Studio Code illustration and a "Learn more" link to the Studio Code docs.

Testing Instructions

  • Run npm start.
  • Open the modal via Help → What's New (or clear lastSeenVersion to hit the first-launch path).
  • Confirm the Studio Code slide appears first, the illustration renders without cropping, and Learn more opens the Studio Code docs page.
  • Confirm the text reads correctly
  • Check appearance in both light and dark mode.

The image is temporal. I'll replace it once we have a final one in STU-1896

Light Dark
Screenshot 2026-06-24 at 06 58 42 Screenshot 2026-06-24 at 06 58 54

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas sejas self-assigned this Jun 22, 2026
@sejas sejas changed the title feat: add Studio Code slide to What's New modal Jun 22, 2026
@sejas
sejas requested review from a team and nightnei June 22, 2026 16:23
@wpmobilebot

wpmobilebot commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 0d99e64 vs trunk

app-size

Metric trunk 0d99e64 Diff Change
App Size (Mac) 2344.38 MB 2344.39 MB +0.02 MB ⚪ 0.0%

site-editor

Metric trunk 0d99e64 Diff Change
load 761 ms 772 ms +11 ms ⚪ 0.0%

site-startup

Metric trunk 0d99e64 Diff Change
siteCreation 6526 ms 6494 ms 32 ms ⚪ 0.0%
siteStartup 6996 ms 6485 ms 511 ms 🟢 -7.3%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

Comment thread apps/studio/src/modules/whats-new/components/whats-new-modal.tsx Outdated

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look good to me but I left one suggestion for wording that I think sounds slighly better and more natural

katinthehatsite and others added 7 commits June 23, 2026 10:17
Co-authored-by: katinthehatsite <katerynakodonenko@gmail.com>
…code-to-studio-whats-new-modal

# Conflicts:
#	apps/studio/src/lib/get-localized-link.ts
#	apps/studio/src/modules/whats-new/components/whats-new-modal.tsx
@sejas

sejas commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

@shaunandrews , feel free to make any edits or leave your feedback. I used the image you suggested.

@shaunandrews

Copy link
Copy Markdown
Contributor
image

Improved the SVG sizing, blurring, and added the dotgrid background. I also updated the copy to focus more on the value add; the previous suggestion assumed the reader understand what Studio Code was, and that it was previously available in the CLI.

@sejas

sejas commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

Thanks Shaun! ✨

@sejas
sejas merged commit d6a2098 into trunk Jun 24, 2026
13 checks passed
@sejas
sejas deleted the stu-1896-add-studio-code-to-studio-whats-new-modal branch June 24, 2026 06:00
bcotrim added a commit that referenced this pull request Jun 24, 2026
## Related issues

- Follow-up to #3915 — fixes the truncation reported in [review
feedback](#3915 (comment))
- Related to
[RSM-4414](https://linear.app/a8c/issue/RSM-4414/update-the-whats-new-modal-with-details-about-the-native-php-runtime)

## How AI was used in this PR

Used Claude Code (Opus 4.8) to diagnose the truncation, trace the
history of the modal's line-clamp behavior, and implement the fix. I
confirmed the modal renders every slide's copy in full (no truncation,
no scrollbar) in the running app, and ran ESLint + a typecheck on the
changed file.

## Proposed Changes

The **"Faster local sites with native PHP"** slide in the What's New
modal was cutting its description off mid-sentence (*"…switch between
Native…"*).

The root cause was a fragile rule, not the copy itself: the modal
clamped the **first** slide's description to 5 lines but **every other**
slide to 3. The native PHP copy was written while it was the lead slide;
once a Studio Code slide became the new lead (#3924), native PHP dropped
into a 3-line slot and its (unchanged) text no longer fit.

Rather than trimming the copy, this gives **every slide the same 5-line
clamp** the intro slide already used — which the fixed-height modal
accommodates without scrollbars. That removes the intro-vs-regular
distinction that caused the regression, so future copy tweaks or slide
reordering won't silently truncate. It also drops a leftover wrapper
element that had no styling. The slide copy is unchanged from `trunk`.

Thanks to @fredrikekelund for
[suggesting](#3946 (review))
the all-slides approach over a copy-only fix.

## Testing Instructions

1. Run Studio (`npm start`).
2. Open the What's New modal (app menu → **What's New**).
3. Page through every slide and confirm each description shows in full
with no truncation/ellipsis — in particular, the **"Faster local sites
with native PHP"** slide should end with *"…in your site settings."*
4. Confirm no scrollbar appears on any slide and the footer buttons stay
in place.
5. Verify in **both light and dark** appearance.

## Pre-merge Checklist

- [x] Have you checked for TypeScript, React or other console errors?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants