Skip to content

Enhance gui for Infra status#306

Merged
cb-github-robot merged 1 commit into
cloud-barista:mainfrom
seokho-son:main
Jun 10, 2026
Merged

Enhance gui for Infra status#306
cb-github-robot merged 1 commit into
cloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son

Copy link
Copy Markdown
Member
image

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings June 10, 2026 07:37
@seokho-son seokho-son requested a review from yunkon-kim as a code owner June 10, 2026 07:37
@seokho-son

Copy link
Copy Markdown
Member Author

/approve

@cb-github-robot cb-github-robot merged commit 51ad12e into cloud-barista:main Jun 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 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, and proceedWithInfraCreation to use the new GUI views instead of displayJsonData.
  • Exposed displayJsonData on window so it can be invoked from within dynamically generated SweetAlert HTML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js
</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 thread index.js
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 thread index.js
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));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants