Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Migrate LiteElements #2145

Merged
merged 7 commits into from
Nov 12, 2024
Merged

refactor: Migrate LiteElements #2145

merged 7 commits into from
Nov 12, 2024

Conversation

SuaYoo
Copy link
Member

@SuaYoo SuaYoo commented Nov 12, 2024

Related to #1984

Changes

  • Migrates the following LiteElements to BtrixElement:
    • App (<browsetrix-home>)
    • Admin (<btrix-home)
    • Dashboard (<btrix-dashboard>)
    • LogInPage (<btrix-log-in>)
  • Replaces custom light DOM btrix-input with sl-input since password managers should work now.

Manual testing

  1. Log out and go to log in page
  2. Click email and password input. Verify that your password manager/autofill works
  3. Log in as regular user. Verify org dashboard renders as expected
  4. Log out and log as suepradmin. Verify superadmin dashboard renders as expected

Context

This will allow usage of lit reactive controllers in more components, for example to react to lit locale changes.

@@ -39,7 +39,8 @@ type CloseMessage = Message & {
@localized()
export class Screencast extends BtrixElement {
static baseUrl = `${window.location.protocol === "https:" ? "wss" : "ws"}:${
process.env.WEBSOCKET_HOST || window.location.host
// Defined in webpack:
window.process.env.WEBSOCKET_HOST || window.location.host
Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to work with test runner

@SuaYoo SuaYoo merged commit 0fb6571 into main Nov 12, 2024
@SuaYoo SuaYoo deleted the frontend-migrate-liteElements branch November 12, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

2 participants