Skip to content

fix: link the Setup Required error page directly to /setup - #66

Merged
Chris Ball (ball42) merged 1 commit into
developfrom
fix/setup-link-error
Jul 10, 2026
Merged

fix: link the Setup Required error page directly to /setup#66
Chris Ball (ball42) merged 1 commit into
developfrom
fix/setup-link-error

Conversation

@ball42

Copy link
Copy Markdown
Collaborator

Creating an automation (jamfpro/okta) before JAWA is configured showed a "Setup Required" error page that dead-ended the user — only Back and Dashboard, with no path to /setup, which is exactly where they need to go first (set the FQDN and link a Jamf Pro server).

Fix

  • The "Setup Required" raise sites (jamf_handler, okta_handler) now pass link="/setup" with a friendly label and a clearer message.
  • AutomationError gains an optional link_text for the button label; _error_page forwards it.
  • error.html: when an error carries a link, it renders as the primary in-page action button ("Go to Setup →") and Dashboard demotes to secondary. Previously a link was rendered as a raw URL that opened in a new tab. When there's no link, Dashboard stays primary (unchanged).

Tests

tests/test_setup_required.py — asserts the Setup Required page for both jamfpro and okta contains a direct in-page /setup link with the "Go to Setup" label (and no target="_blank"). Full suite green (92 passed), ruff clean.

Targets develop for the batched v3.2 release.

Creating a jamfpro/okta automation before JAWA is configured raised a
'Setup Required' error page that dead-ended the user -- Back and
Dashboard only, no path to /setup where they actually need to go.
AutomationError already carried an optional link, but the two raise
sites passed none and the template rendered a link as a raw URL in a
new tab.

Now the raise sites pass link=/setup with a friendly label, and when a
link is present the error page renders it as the primary in-page action
button ('Go to Setup'), demoting Dashboard to secondary. Adds link_text
to AutomationError for the button label.
@ball42
Chris Ball (ball42) merged commit 105c6ce into develop Jul 10, 2026
2 checks passed
@ball42
Chris Ball (ball42) deleted the fix/setup-link-error branch July 10, 2026 23:09
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