Skip to content

Profile picker after OWA accepts the credentials; endpoint scheme found; logged-in users off by default - #23

Merged
padams merged 3 commits into
masterfrom
feat/endpoint-and-credential-gate
Oct 22, 2026
Merged

padams merged 3 commits into
masterfrom
feat/endpoint-and-credential-gate

Conversation

@padams

@padams padams commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
  • Profile picker gated on working credentials. The site page shows the Observation Profile / Website ID picker once GET /base/v1/sites succeeded with the saved credentials (loaded in the sites route). A Website ID the network assigns is still shown read-only. The network table shows once OWA has listed the Profiles for the network's current endpoint and password (profilesLoaded); changing either drops the cached Profiles and fetches them again on save. "Select an Observation Profile before tracking can begin" is shown only once the credentials are entered.
  • OWA Endpoint. When the endpoint changes, saving checks that public/base/dist/owa.tracker.js (1.14 and 2.x) returns 200, follows redirects and stores the endpoint the tracker loaded from, with a trailing slash (http://app.openwebanalytics.com → https://app.openwebanalytics.com/). Without a scheme, https:// then http:// are tried. A typed scheme is never swapped. An unchanged endpoint is not checked, so saving while OWA is down still works. No OWA at the URL: nothing is saved, the error names the URLs tried.
  • Don't Track Logged-in Users defaults to on. Installs that never saved the setting (anything last saved before 2.3.0) pick up the new default.

padams added 3 commits October 22, 2026 22:35
…nd; logged-in users off by default

- The site's Observation Profile picker shows once OWA has returned its list
  with the saved credentials; the network's table once OWA has listed the
  Profiles for the network's current credentials. New network credentials
  drop the cached Profiles and fetch them again.
- "Select a Profile" is asked for only once the credentials are in.
- The OWA Endpoint gets a trailing slash. Without a scheme, https:// and then
  http:// are tried, and the first that serves OWA's tracker is stored.
- Don't Track Logged-in Users defaults to on.
…stored

A URL typed with its scheme was stored as entered. Now any endpoint that
differs from the stored one is checked: the tracker must load, a redirect is
followed and the URL it ends at is stored (http:// behind an https redirect
is stored as https://). A typed scheme is not swapped for the other. An
unchanged endpoint is not checked, so a save while OWA is down goes through.
@padams
padams merged commit 51d2e5f into master Oct 22, 2026
9 checks passed
@padams
padams deleted the feat/endpoint-and-credential-gate branch October 22, 2026 23:37
@padams padams mentioned this pull request Oct 22, 2026
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