Feat/auth supabase - #5
Merged
Merged
Conversation
1. Centralized all config loading via config-loader.js, compatible with both .env and config.js. 2. Removed all hardcoded config; all modules now read config from one place.
1. Removes saving the email to localStorage for anonymous users and updates event listeners to handle dynamic language changes. 2. Adds logic to wait for i18next initialization before loading profile and ensures the 'anonymous' email placeholder is properly translated and updated on language changes or multi-tab sync.
1. Introduces internationalization for authentication and login-related UI elements across English, Japanese, Korean, and Chinese locale files. Refactors auth-widget.js, login.html, culture-selection.html, and settings.html to use dynamic translations and react to language changes. 2. Improves user experience by displaying localized text and updating UI based on authentication state. 3. Bumps package version to 0.0.6.
Allows manual triggering of the build workflow via the GitHub Actions UI by adding the workflow_dispatch event.
Enables manual workflow dispatch for any branch by adding the 'branches: *' option to the workflow_dispatch trigger in build.yml.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces user authentication support (via Supabase) to the frontend, updates the documentation for improved configuration and setup clarity, and enhances internationalization (i18n) for authentication-related UI. The most important changes are grouped below.
Authentication Integration:
auth-widgetcomponent (frontend/public/components/auth-widget.js) that displays the current user's login status, allows login/logout/signup, and tests the/api/auth/meendpoint. The widget is i18n-aware and updates with language changes.frontend/public/auth-test.html) for manual testing of Supabase-based signup, login, and authentication API calls.Internationalization and UI:
i18n-language-changed) on language change, allowing UI components like the auth widget to reactively update translations.Documentation and Configuration:
README.mdto clarify configuration steps, emphasizing the use ofserver/config.jsfor all environment settings, and streamlined the installation instructions for both Docker and Node.js setups. [1] [2] [3] [4] [5]Workflow and Miscellaneous:
frontend/public/assets/app.jsfor clarity.