Skip to content

Uvdsl2 - #857

Merged
bourgeoa merged 10 commits into
mainfrom
uvdsl2
Aug 19, 2026
Merged

Uvdsl2#857
bourgeoa merged 10 commits into
mainfrom
uvdsl2

Conversation

@bourgeoa

Copy link
Copy Markdown
Contributor

No description provided.

bourgeoa and others added 7 commits August 16, 2026 13:27
…out endpoints

1. derive header auth state from auth session checks/events
2. call end_session and NSS well-known logout on logout
3. add/update header tests for session-driven state transitions
…s test

authSession.info is now a derived getter (from webId/isActive), so it can
no longer be assigned. The test's outcome is driven by mocking currentUser
to return null, so the info assignment was dead setup and is removed.
Copilot AI lite review requested due to automatic review settings August 19, 2026 13:55

Copilot AI left a comment

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.

Pull request overview

This PR updates authentication/session handling across the UI components and logout flow, and adjusts related unit tests, alongside significant dependency/lockfile changes.

Changes:

  • Header v2: derive auth UI state from solid-logic session (authn.checkUser/currentUser), react to session events, and perform a more thorough logout (clear persisted state + optional server-side logout).
  • Login: on logout, attempt an additional NSS-compatible /.well-known/solid/logout request (best-effort).
  • Tests: update/extend header and login unit tests to reflect the new auth/session model and event-driven updates.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/unit/login/login.test.ts Updates test setup to avoid assigning to a derived read-only auth session property.
src/v2/components/layout/header/Header.ts Adds session-derived auth resolution, session event listeners, and enhanced logout cleanup/redirect behavior.
src/v2/components/layout/header/header.test.ts Adds mocks and new tests to validate session-derived auth state and event-driven refresh.
src/v2/components/layout/footer/Footer.ts Adjusts session listener teardown logic in disconnectedCallback().
src/login/login.ts Extends logout handler to call an additional well-known logout endpoint (best-effort).
package.json Alters dependency specs (adds i/npm, switches some deps to file:../...).
package-lock.json Reflects the new dependency specs, including file:../... links and large npm subtree.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json Outdated
Comment on lines +158 to +166
@@ -159,15 +159,17 @@
"@noble/curves": "^2.2.0",
"@noble/hashes": "^2.2.0",
"escape-html": "^1.0.3",
"i": "^0.3.7",
"lit": "^3.3.3",
"mime-types": "^3.0.2",
"pane-registry": "^3.1.1",
"npm": "^11.19.0",
"pane-registry": "file:../pane-registry",
Comment thread package.json
Comment on lines +165 to 173
"npm": "^11.19.0",
"pane-registry": "file:../pane-registry",
"solid-namespace": "^0.5.4",
"uuid": "^14.0.0"
},
"peerDependencies": {
"rdflib": "^2.3.8",
"solid-logic": "^4.0.7"
"rdflib": "^2.4.0",
"solid-logic": "file:../solid-logic"
},
Comment on lines 106 to 111
disconnectedCallback () {
if (typeof authSession.events.off === 'function') {
authSession.events.off('login', this._updateFooter)
authSession.events.off('logout', this._updateFooter)
} else if (typeof authSession.events.removeListener === 'function') {
authSession.events.removeListener('login', this._updateFooter)
authSession.events.removeListener('logout', this._updateFooter)
}
super.disconnectedCallback()
bourgeoa and others added 3 commits August 19, 2026 16:00
Replace local file: workspace links with registry versions now that
solid-logic 5.x is published.
@bourgeoa
bourgeoa merged commit 4494016 into main Aug 19, 2026
8 checks 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