Skip to content

Feat/auth supabase - #5

Merged
BYLinMou merged 7 commits into
mainfrom
feat/auth-supabase
Oct 20, 2025
Merged

BYLinMou merged 7 commits into
mainfrom
feat/auth-supabase

Conversation

@BYLinMou

Copy link
Copy Markdown
Owner

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:

  • Added a new auth-widget component (frontend/public/components/auth-widget.js) that displays the current user's login status, allows login/logout/signup, and tests the /api/auth/me endpoint. The widget is i18n-aware and updates with language changes.
  • Introduced a standalone authentication test page (frontend/public/auth-test.html) for manual testing of Supabase-based signup, login, and authentication API calls.

Internationalization and UI:

  • Extended all supported language JSON files with translations for authentication-related text (login, logout, signup, etc.), ensuring the new UI elements are localized. [1] [2] [3] [4] [5]
  • Improved the i18n system to dispatch a custom event (i18n-language-changed) on language change, allowing UI components like the auth widget to reactively update translations.

Documentation and Configuration:

  • Refactored the README.md to clarify configuration steps, emphasizing the use of server/config.js for all environment settings, and streamlined the installation instructions for both Docker and Node.js setups. [1] [2] [3] [4] [5]

Workflow and Miscellaneous:

  • Enhanced the GitHub Actions workflow by adding support for manual workflow dispatch with a wildcard branch filter.
  • Updated a code comment in frontend/public/assets/app.js for clarity.

DannyYTL and others added 7 commits October 17, 2025 22:13
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.
@BYLinMou
BYLinMou merged commit ece1e3f into main Oct 20, 2025
0 of 3 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