Set up 2 sets of instructions for Local/Remote (SSH) landing page.#682
Set up 2 sets of instructions for Local/Remote (SSH) landing page.#682rgrunber merged 1 commit intoche-incubator:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a documentation view toggle to the SSH docs page: new CSS for header/table layout and a custom checkbox "switch"; JS now replaces "${HOME}" (instead of "$HOME"), Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@build/scripts/code-sshd-page/page-utils.js`:
- Around line 26-39: The toggle logic reads and infers state from DOM content,
which is brittle; update both the initial render and the toggleExtensionSwitch
function to derive state from the actual control element (e.g., a checkbox or
switch) instead of string matching. Specifically, replace the
innerHTML.includes("Dev Spaces Remote SSH") check in toggleExtensionSwitch with
a read of the control's checked/value
(document.getElementById('extension-switch').checked or similar), and make the
initial render (where docsElem is set from docs-extension) use the same control
state to decide between docs-extension and docs-manual so the UI and control
remain consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f35623da-4363-4c64-babc-c5526db72e6f
📒 Files selected for processing (3)
build/scripts/code-sshd-page/page-style.cssbuild/scripts/code-sshd-page/page-utils.jsbuild/scripts/code-sshd-page/server.js
|
@rgrunber is the extension instructions selected by default? |
|
@TheChosenMok , yes the intention is to have the "Extension" page enabled by default. |
|
@rgrunber is this ready to go in? |
|
Tested out on Windows. Seems to be working the same. Screencast.From.2026-04-15.10-04-15.mp4 |
c1ec143 to
e63d1b2
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@build/scripts/code-sshd-page/page-style.css`:
- Around line 103-107: The custom switch hides the native input (.switch input)
but lacks any keyboard focus indicator; add CSS rules so when the hidden input
receives keyboard focus (use .switch input:focus-visible and/or .switch
input:focus) the visible slider element (e.g., .slider or .switch .slider) shows
a clear, high-contrast focus ring or outline (or box-shadow) via the adjacent
selector (.switch input:focus + .slider) and also support .switch:focus-within
.slider for container focus; ensure the focus style is visible without shifting
layout and meets WCAG contrast requirements.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: e9d6b005-c396-4a9d-bc04-9f78977f4b54
📒 Files selected for processing (3)
build/scripts/code-sshd-page/page-style.cssbuild/scripts/code-sshd-page/page-utils.jsbuild/scripts/code-sshd-page/server.js
✅ Files skipped from review due to trivial changes (1)
- build/scripts/code-sshd-page/page-utils.js
🚧 Files skipped from review as they are similar to previous changes (1)
- build/scripts/code-sshd-page/server.js
8346e3b to
644998b
Compare
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-682-amd64 |
2 similar comments
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-682-amd64 |
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-682-amd64 |
- When "Use Extension" is enabled, mention Dev Spaces Remote SSH
extension and corresponding instructions
- When "Use Extension" is disabled use the existing (manual)
instructions
- Use ${HOME} instead of $HOME for better portability across platforms
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
644998b to
7a16e2a
Compare
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-682-amd64 |
che-code-sshd-landing-page-toggle.mp4
Summary by CodeRabbit
New Features
Style
Documentation