Enhance gui for Infra status#306
Merged
Merged
Conversation
seokho-son
commented
Jun 10, 2026
Member
Signed-off-by: Seokho Son <shsongist@gmail.com>
Member
Author
|
/approve |
There was a problem hiding this comment.
Pull request overview
This PR enhances the UI rendering for Infra-related responses by replacing raw JSON popups with richer SweetAlert-based GUI views for Infra status, access info, and infraDynamic provisioning results.
Changes:
- Added rich GUI renderers (
displayInfraStatusGui,displayAccessInfoGui,displayInfraDynamicResultGui) and supporting HTML builders for Infra/node summaries. - Updated
statusInfra,getAccessInfo, andproceedWithInfraCreationto use the new GUI views instead ofdisplayJsonData. - Exposed
displayJsonDataonwindowso it can be invoked from within dynamically generated SweetAlert HTML.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| </div> | ||
| ${buildInfraNodeSummaryHtml(data)} | ||
| <div style="display:flex;gap:8px;margin-top:12px;justify-content:flex-end;flex-wrap:wrap;"> | ||
| <button type="button" onclick="if(infraidElement)infraidElement.value='${esc(infraId)}'; downloadAllSshKeys()" |
Comment on lines
+3618
to
+3622
| <code id="gui-ssh-cmd-${thisIdx}" onclick="copyGuiSshCommand(${thisIdx})" | ||
| style="background:#1a1a2e;color:#98fb98;padding:2px 8px;border-radius:3px;font-size:0.88em; | ||
| cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; | ||
| max-width:320px;user-select:none;" title="${esc(sshCmd)} — click to copy"> | ||
| ${esc(sshCmd)} |
Comment on lines
+3220
to
+3226
| window.copyGuiSshCommand = function(idx) { | ||
| const cmd = window._guiSshCommands[idx] || ''; | ||
| navigator.clipboard.writeText(cmd).then(() => { | ||
| const el = document.getElementById('gui-ssh-cmd-' + idx); | ||
| if (el) { const orig = el.style.background; el.style.background = '#155724'; setTimeout(() => el.style.background = orig, 1500); } | ||
| }).catch(err => console.error('copy failed:', err)); | ||
| }; |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.