-
Notifications
You must be signed in to change notification settings - Fork 87
Agentic UI: Show "What's New" #4414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bcotrim
wants to merge
9
commits into
stu-2016-add-orientation-guide
from
stu-1988-port-whats-new-tour-to-agentic-ui
Open
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dc5ece3
Show the What's New announcements in the agentic UI
bcotrim 199946e
Merge remote-tracking branch 'origin/stu-2016-add-orientation-guide' …
bcotrim 40bf5ab
Reuse the connector's ipcListener binding for the What's New menu event
bcotrim 98333ae
Gate the workbench guides on having a site, not the onboarding-comple…
bcotrim 6245727
trigger ci
bcotrim ac841af
Fade the guide's Back button instead of popping it in
bcotrim f749bda
Make the pager dot shift colour instead of fading in
bcotrim ee0d661
Trim redundant comments from the What's New autostart hook
bcotrim 91b7e07
Resolve the recorded version in one place and trim CSS comments
bcotrim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
apps/studio/src/modules/whats-new/components/whats-new-modal.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,40 @@ | ||
| import cliIllustration from '@studio/common/assets/whats-new/cli.svg'; | ||
| import darkModeIllustration from '@studio/common/assets/whats-new/dark-mode.svg'; | ||
| import nativePhpIllustration from '@studio/common/assets/whats-new/native-php.svg'; | ||
| import phpMyAdminIllustration from '@studio/common/assets/whats-new/phpmyadmin.svg'; | ||
| import studioCodeIllustration from '@studio/common/assets/whats-new/studio-code.svg'; | ||
| import { __, sprintf } from '@wordpress/i18n'; | ||
| import styles from './style.module.css'; | ||
| import type { OrientationIllustrationId } from '@/data/onboarding/orientation-guide'; | ||
| import type { GuideIllustrationId } from '@/data/onboarding/guide'; | ||
|
|
||
| // Placeholder for the guide's header art. Real illustrations (keyed by the | ||
| // page's illustration id) drop in here; until then this is just the tinted | ||
| // slot at the correct size. | ||
| export function OrientationIllustration( { id }: { id: OrientationIllustrationId } ) { | ||
| return <div className={ styles.illustration } data-illustration={ id } />; | ||
| // Shared with the classic renderer's What's New modal. The orientation ids have | ||
| // no art yet and fall through to the tinted placeholder slot below. | ||
| const ILLUSTRATIONS: Partial< Record< GuideIllustrationId, string > > = { | ||
| 'studio-code': studioCodeIllustration, | ||
| 'native-php': nativePhpIllustration, | ||
| 'dark-mode': darkModeIllustration, | ||
| phpmyadmin: phpMyAdminIllustration, | ||
| cli: cliIllustration, | ||
| }; | ||
|
|
||
| export function hasIllustration( id: GuideIllustrationId ): boolean { | ||
| return Boolean( ILLUSTRATIONS[ id ] ); | ||
| } | ||
|
|
||
| export function GuideIllustration( { id, title }: { id: GuideIllustrationId; title: string } ) { | ||
| const source = ILLUSTRATIONS[ id ]; | ||
| if ( ! source ) { | ||
| return <div className={ styles.illustration } data-illustration={ id } />; | ||
| } | ||
| return ( | ||
| <img | ||
| className={ styles.illustration } | ||
| src={ source } | ||
| alt={ sprintf( | ||
| /* translators: %s is the title of the guide page the illustration belongs to. */ | ||
| __( 'Illustration for %s' ), | ||
| title | ||
| ) } | ||
| /> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider removing some comments like this one.