Skip to content

Connect from tray#1047

Merged
moubctez merged 7 commits into
release/2.1from
connect_from_tray
Jul 15, 2026
Merged

Connect from tray#1047
moubctez merged 7 commits into
release/2.1from
connect_from_tray

Conversation

@moubctez

Copy link
Copy Markdown
Contributor

No description provided.

PostureCheckFail: 'posture-check-fail',
} as const;

/** Map an MFA method to the ConnectModal view that collects it. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


// Auto-start the MFA flow when the backend requested it for this location
// (e.g. connecting from the tray). The trigger is set in TauriEventProvider.
// Select a per-card boolean so only the matching card re-renders on the trigger.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to "Reacts to MFA requested by backend"

const mfaMethod =
decideLocationMfaMethod(location, location.mfa_method) ?? MfaMethod.Totp;

// The ConnectModal is only mounted on the overview page.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

}

// Full view: open the shared ConnectModal on the overview page. The
// location arrives without `connection_type`/`active` (MFA is location-only).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

const windowLabel = getCurrentWindow().label;

// Compact window: select the location's instance, expand its card and
// flag it to auto-start the MFA flow so the user can enter their code inline.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

// tray or system settings). The location is emitted as the payload directly.
// The backend targets whichever window it surfaced: the full view (if it was
// already open) or the compact tray window. Each window handles the event in
// the way native to it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to "Backend requests the MFA flow"

Comment thread new-ui/src/shared/store/useAppStore.tsx Outdated
expandedLocation: number | null;
// Location id whose MFA flow should auto-start (e.g. triggered from the tray).
// Consumed and cleared by the matching location card. Not persisted so a stale
// trigger cannot fire on the next launch.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to "Backend requested MFA"

j-chmielewski
j-chmielewski previously approved these changes Jul 15, 2026
@moubctez
moubctez merged commit b76dd5c into release/2.1 Jul 15, 2026
8 checks passed
@moubctez
moubctez deleted the connect_from_tray branch July 15, 2026 09:43
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.

3 participants