Skip to content

Fix the login - #904

Closed
SharonStrats wants to merge 2 commits into
stagingfrom
fix-login2
Closed

SharonStrats wants to merge 2 commits into
stagingfrom
fix-login2

Conversation

@SharonStrats

Copy link
Copy Markdown
Collaborator

Just in case we need it.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 10:00

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.

🟡 Changes recommended

The module-local tag registry rejects registered dialog constructors passed between library copies.

1 open issue
What changed in this PR

This PR adjusts authentication context and dialog creation to support multiple loaded copies of solid-ui.

Changes:

  • Uses a shared symbol for the authentication context.
  • Records custom-element tag names and creates dialogs by tag name.
  • Updates the expected public exports in the index test.
File Description
test/​unit/​index.test.ts Adds the tag-name helper to expected exports.
src/​lib/​dialogs/​helpers.ts Creates dialog elements using their registered tag names.
src/​lib/​components/​decorators.ts Records and exposes component tag names.
src/​lib/​auth/​context.ts Shares the authentication context key across library copies.

Review effort: Balanced

* See https://github.com/SolidOS/solidos/issues/300
*/

const customElementTagNames = new WeakMap<CustomElementConstructor, string>()
@SharonStrats

Copy link
Copy Markdown
Collaborator Author

this is not the right fix, dependency alignment for solid-ui is the best fix.

@SharonStrats
SharonStrats deleted the fix-login2 branch October 23, 2026 10:14
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