-
Notifications
You must be signed in to change notification settings - Fork 78
feat(FR-1816): display startup command modal for batch session in the session detail panel #4963
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
base: main
Are you sure you want to change the base?
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
Pull request overview
This PR adds a feature to display the startup command for batch sessions in the session detail panel. When viewing a batch session, users can now click an info button next to the session type to view the startup command in a modal. Additionally, the PR refactors the SourceCodeViewer component to SourceCodeView, which uses a different syntax highlighting implementation and removes the react-syntax-highlighter dependency.
Key changes:
- Added startup command display modal for batch sessions with i18n support across all 21 languages
- Refactored
SourceCodeViewercomponent toSourceCodeViewwith improved UI consistency - Removed
react-syntax-highlighterand@types/react-syntax-highlighterdependencies
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
resources/i18n/*.json (21 files) |
Added "StartupCommand" and "ViewStartupCommand" translation keys for all supported languages |
react/src/components/SourceCodeView.tsx |
New component replacing SourceCodeViewer with improved styling using Chat components |
react/src/components/SourceCodeViewer.tsx |
Deleted old component in favor of new SourceCodeView |
react/src/components/SessionDetailContent.tsx |
Added startup command modal feature with info button for batch sessions, fetches type and startup_command fields |
react/src/components/SessionLauncherPreview.tsx |
Updated to use new SourceCodeView component |
react/src/components/ComputeSessionNodeItems/SFTPConnectionInfoModal.tsx |
Updated to use new SourceCodeView component with improved layout |
react/src/components/Chat/SyntaxHighlighter.tsx |
Added props spreading to accept additional HTML attributes |
react/src/index.tsx |
Updated web component to use SourceCodeView and removed wordWrap prop |
react/package.json |
Removed react-syntax-highlighter and its type definitions |
0ff914d to
ca6ec2b
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.91% (+0% 🔼) |
589/11984 |
| 🔴 | Branches | 4.48% (+0.01% 🔼) |
377/8414 |
| 🔴 | Functions | 2.75% (+0% 🔼) |
101/3674 |
| 🔴 | Lines | 4.74% (+0% 🔼) |
555/11702 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🔴 | ... / CodeHighlighterModal.tsx |
0% | 100% | 0% | 0% |
| 🔴 | ... / SourceCodeView.tsx |
0% | 0% | 0% | 0% |
Test suite run success
173 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from 88e8b24
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.
Pull request overview
Copilot reviewed 29 out of 30 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
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.
Pull request overview
Copilot reviewed 29 out of 30 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
ca6ec2b to
980cc58
Compare
agatha197
left a comment
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.
980cc58 to
47b74cb
Compare
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.
Pull request overview
Copilot reviewed 31 out of 32 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
… session detail panel
47b74cb to
88e8b24
Compare
agatha197
left a comment
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.
LGTM
ironAiken2
left a comment
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.
LGTM


resolves #4879 (FR-1816)
This PR replaces the old
SourceCodeViewercomponent with a newSourceCodeViewcomponent that:SyntaxHighlightercomponent for code highlightingThe PR also adds a feature to view startup commands for batch sessions in the session detail view.
Checklist: