Skip to content

Harden desktop action wiring and polish app shell UI for a production-quality control surface#11

Merged
NolanCotter merged 6 commits intomainfrom
copilot/fix-sloppy-code-issues
Apr 4, 2026
Merged

Harden desktop action wiring and polish app shell UI for a production-quality control surface#11
NolanCotter merged 6 commits intomainfrom
copilot/fix-sloppy-code-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

The desktop control surface looked unfinished and several controls appeared non-functional. This change tightens runtime integration for action buttons and upgrades the UI treatment so the app reads as intentional rather than placeholder.

  • Runtime command wiring

    • Updated Tauri invocation resolution to support both global surfaces used by current runtime contexts:
      • window.__TAURI__?.core?.invoke
      • window.__TAURI_INTERNALS__?.invoke
    • Introduced a single runtime capability gate (hasDesktopRuntime) used to drive action availability.
  • Non-desktop fallback behavior

    • Added explicit browser-preview mode handling:
      • Disables desktop-only controls (connect, settings save, split controls, diagnostics, profile export/import) when Tauri invoke is unavailable.
      • Updates UI state text to communicate preview mode instead of leaving controls to fail on interaction.
  • UI professionalism pass

    • Refined topbar and card presentation (subtle blur/surface depth).
    • Improved primary-action emphasis.
    • Standardized disabled-state affordances across button variants so unavailable actions are visually unambiguous.
const tauriInvoke = window.__TAURI__?.core?.invoke || window.__TAURI_INTERNALS__?.invoke;
const hasDesktopRuntime = typeof tauriInvoke === 'function';

function setRuntimeUiState() {
  if (hasDesktopRuntime) return;
  [connectBtn, saveSettingsBtn, syncSplitBtn, stopSplitBtn, runDiagnosticsBtn, exportProfileBtn, importProfileFile]
    .forEach((el) => { if (el) el.disabled = true; });
  topbarState.textContent = 'Browser Preview';
}

Copilot AI and others added 6 commits April 2, 2026 18:26
Agent-Logs-Url: https://github.com/NolanCotter/freedom-network/sessions/6a70383c-71da-4668-b0bd-e557bed01b68

Co-authored-by: NolanCotter <186326284+NolanCotter@users.noreply.github.com>
…-quality control surface

Agent-Logs-Url: https://github.com/NolanCotter/freedom-network/sessions/4d6191ce-6d76-484a-a4dd-2309ae1e69a7

Co-authored-by: NolanCotter <186326284+NolanCotter@users.noreply.github.com>
@NolanCotter NolanCotter marked this pull request as ready for review April 4, 2026 16:24
@NolanCotter NolanCotter merged commit 6fc9ac1 into main Apr 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants