Skip to content
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

Studio: Add dynamic code block to execute wp-cli commands UI AI assistant #232

Merged
merged 41 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8920dfb
Enable Run cli button
Jun 11, 2024
43f23b8
Fix timer for the time of execution
Jun 11, 2024
82d6d78
Move state to code block to avoid the run button running on all blocks
Jun 11, 2024
59c2763
Display output from cli for error and success cases
Jun 11, 2024
538d974
Hide the button for code blocks that have no CLI commands
Jun 11, 2024
40fc4aa
Ensure only code blocks with one wp command execute
Jun 11, 2024
263cec7
Add logic for updating messages in useAssistant
Jun 12, 2024
09b8318
Add logic for storing the messages
Jun 12, 2024
5791cc1
Fix type on updateMessage
Jun 12, 2024
8fe342c
Handle undefined ID
Jun 12, 2024
1578661
Fix types on authenticated view
Jun 12, 2024
d27d9a4
Fix some more types
Jun 12, 2024
6306c38
Fix up another warning
Jun 12, 2024
53afeaf
Cleanup
Jun 12, 2024
9b3b938
Update trunk changes
Jun 12, 2024
85ff515
Merge trunk
Jun 12, 2024
c3bea19
Split content tab assistant and chat message
Jun 12, 2024
f0ac874
Fix weird re-render
Jun 12, 2024
a01f80f
Fix unit tests
Jun 12, 2024
fc2aacd
Strip ANSI codes from errors
Jun 12, 2024
b5511e3
Move the loggic of processing cli output into a hook
Jun 12, 2024
f756e2a
Ensure that the DOM updates for the scroll to work
Jun 13, 2024
7b84d62
Fix scroll for messages
Jun 17, 2024
16a8e4a
Fix jest configuration
Jun 17, 2024
4a5ece6
Fix the jest setup
Jun 17, 2024
018fd1b
Fix failing unit test
Jun 17, 2024
ebbd82e
Merge branch 'trunk' into add/integrate-cli-button-to-execute-in-code…
katinthehatsite Jun 17, 2024
c488aa0
Fix linter on use-assistant
Jun 17, 2024
470ca6f
Fix linter on content-tab-assistant
Jun 17, 2024
6613ab4
Refactor the copy button in code block
Jun 17, 2024
f2560bf
Refactor button logic for Run and Run again
Jun 17, 2024
1f1e306
Fix styling on run button
Jun 17, 2024
8843fbc
Fix buttons
Jun 17, 2024
885b059
Final touches on button styles
Jun 17, 2024
140c36c
Hide commands that include placeholders
Jun 17, 2024
fb0ab91
Resolve conflict
Jun 17, 2024
dbf1f49
Refactor component name to ChatMessage
sejas Jun 19, 2024
fa98b69
Merge branch 'trunk' of github.com:Automattic/studio into add/integra…
sejas Jun 19, 2024
fd49bf6
Fix args passed to executeWPCliInline to be one string
sejas Jun 19, 2024
bffee48
Use meesage id in useExecuteWPCLI
sejas Jun 19, 2024
34261f1
Add empty line on package.json
sejas Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jest-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ jest.mock( './src/hooks/use-offline', () => ( {
useOffline: jest.fn().mockReturnValue( false ),
} ) );

jest.mock( 'strip-ansi', () => ( {
default: jest.fn().mockImplementation( ( str: string ) => str ),
} ) );

global.ResizeObserver = require( 'resize-observer-polyfill' );
Loading
Loading