Skip to content

fix(theme): Aurora RDP 'Add route' modal — load form-logic scripts, style selectors, fix duplicate - #174

Merged
CallMeTechie merged 1 commit into
masterfrom
fix/aurora-rdp-modal
Jun 23, 2026
Merged

CallMeTechie merged 1 commit into
masterfrom
fix/aurora-rdp-modal

Conversation

@CallMeTechie

Copy link
Copy Markdown
Owner

Das „Add RDP Route"-Modal war im Aurora-Theme defekt: Protokoll-Wechsel (RDP/VNC/SSH/Telnet) änderte die Felder nicht, die Auswahl-Buttons waren ungestylt, und das Modal wirkte langsam.

Root-Cause

aurora/pages/rdp.njk lud nur /js/rdp.js, aber nicht /js/rdp-form-logic.js (definiert window.GCRdpForm) und /js/rdp-cred-omission.js. rdp.js ruft GCRdpForm.* für Protokoll→Feld-Sichtbarkeit, Schritt-Navigation, Default-Ports und Validierung — ohne das Modul warf jede Interaktion → Formular nicht funktionsfähig + träge. Beide Scripts ergänzt (wie Pro).

Weiter

  • CSS für die Segment-Controls .rdp-proto-seg/.rdp-proto-opt und .rdp-auth-seg/.rdp-auth-opt ergänzt (existierte in keinem Theme) — aktive Option wird hervorgehoben.
  • Doppeltes #rdp-ssh-auth-seg (ungültige Duplikat-ID) im Auth-Schritt entfernt; die von rdp.js gesteuerte #rdp-ssh-auth-mode-Variante bleibt.

Verifikation (headless, 13 Assertions)

GCRdpForm vorhanden · Modal öffnet ~0,4s · Protokoll-Wechsel ändert Port (rdp 3389 / ssh 22 / vnc 5900) + Active-State · Schritt-Navigation funktioniert · Save + Review erst auf dem letzten (Review-)Schritt · keine JS-Fehler. aurora_theme.test 144/0.

…tyle selectors, fix dup

The Add/Edit RDP modal was broken in Aurora: protocol switching didn't change
fields, the protocol/auth selectors were unstyled, and the modal felt slow.

Root cause: aurora/pages/rdp.njk only loaded /js/rdp.js but NOT
/js/rdp-form-logic.js (defines window.GCRdpForm) or /js/rdp-cred-omission.js.
rdp.js calls GCRdpForm.* for protocol→fields visibility, step navigation,
default ports and validation, so every interaction threw and the form was
non-functional. Added both scripts (matches pro).

Also:
- Added CSS for the .rdp-proto-seg/.rdp-proto-opt and .rdp-auth-seg/.rdp-auth-opt
  segmented controls (none existed in any theme); active option now highlights.
- Removed a duplicate #rdp-ssh-auth-seg block (invalid duplicate id) left over in
  the auth step; kept the #rdp-ssh-auth-mode-wrapped one rdp.js drives.

Aurora-only. Verified headless: GCRdpForm present, modal opens ~0.4s, protocol
switch changes port (rdp 3389 / ssh 22 / vnc 5900) + active state, step nav works,
Save + review appear only on the final (review) step, no page errors.
aurora_theme.test 144/0.
@CallMeTechie
CallMeTechie merged commit dd43f58 into master Jun 23, 2026
8 checks passed
@CallMeTechie
CallMeTechie deleted the fix/aurora-rdp-modal branch June 25, 2026 20:05
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.

1 participant