- 
                Notifications
    
You must be signed in to change notification settings  - Fork 9
 
chore: user-management phoenix live view example #47
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
Conversation
d176426    to
    c017d33      
    Compare
  
    | 
           closes #46  | 
    
* setup/improved-dev-env: issue 57 improved dev env
* fix/missing-api-key: fix: supaabse start was failing fix: missing api key header on requests
* feat/release-0.6.2: capture logs on tests fix: supaabse start was failing fix: missing api key header on requests docs: update readme for version compatibility (#64) issue 57 improved dev env chore: fix gh actions cache version (#61) chore: solve on_response unatural return (#60) fix: ex_doc linkings release: v0.6.0 (#49)
There was a problem hiding this comment.
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 adds a Phoenix LiveView example for Supabase user management, including layouts, core UI components, profile schema/context, Supabase client setup, application supervision, configuration, and documentation updates.
- Introduce 
UserManagementWeb.LayoutsandCoreComponentsfor UI - Add Ecto schema/context for user profiles with changesets and upsert logic
 - Provide Supabase client, Repo, release tasks, application supervision, configs, and updated README
 
Reviewed Changes
Copilot reviewed 69 out of 69 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description | 
|---|---|
| examples/user_management/lib/user_management_web/components/layouts.ex | New layouts module | 
| examples/user_management/lib/user_management_web/components/core_components.ex | Core UI components (forms, inputs, flash, JS) | 
| examples/user_management/lib/user_management_web.ex | Web interface entrypoint (use definitions) | 
| examples/user_management/lib/user_management/supabase.ex | Supabase client setup | 
| examples/user_management/lib/user_management/repo.ex | Ecto Repo configuration | 
| examples/user_management/lib/user_management/release.ex | Release task module for migrations/rollback | 
| examples/user_management/lib/user_management/profiles/profile.ex | Profile schema and changesets | 
| examples/user_management/lib/user_management/profiles.ex | Profiles context (list, get, create, upsert, etc) | 
| examples/user_management/lib/user_management/application.ex | Application supervision tree | 
| examples/user_management/lib/user_management.ex | Root UserManagement module | 
| examples/user_management/config/config.exs | General application config | 
| examples/user_management/config/dev.exs | Development environment config | 
| examples/user_management/config/prod.exs | Production environment config | 
| examples/user_management/config/runtime.exs | Runtime configuration (Supabase, database URL) | 
| examples/user_management/config/test.exs | Test environment config | 
| examples/user_management/assets/js/app.js | Phoenix LiveView JS entrypoint | 
| examples/user_management/README.md | Example-specific README | 
| examples/user_management/.gitignore | Example .gitignore | 
| examples/user_management/.formatter.exs | Formatter configuration | 
| README.md | Updated root README with dependency/version bump | 
This pull request introduces a new example application for user management using Phoenix LiveView and Supabase. It includes configuration for development, testing, and production environments, as well as implementation of key features such as authentication, profile management, and storage integration. Below is a summary of the most important changes grouped by theme.
Example Application Setup
examples/user_managementwith configurations, assets, and implementation files to demonstrate user management functionality. [1] [2] [3] [4] [5] [6]Profile Management
UserManagement.Profilescontext with functions for creating, updating, deleting, and retrieving user profiles.UserManagement.Profiles.Profileschema with validation for profile fields such asusername,website, andavatar_url.Database Integration
UserManagement.Repofor database access using Ecto and PostgreSQL.UserManagement.Releasemodule for database migrations and rollback tasks in production environments.Supabase Integration
Documentation and Assets
README.mdfile detailing the application's features, setup instructions, and database schema.phoenix_htmlandtopbar.