Skip to content

Conversation

zoedsoupe
Copy link
Member

@zoedsoupe zoedsoupe commented Oct 25, 2024

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

  • Added a new example application directory examples/user_management with configurations, assets, and implementation files to demonstrate user management functionality. [1] [2] [3] [4] [5] [6]

Profile Management

  • Implemented the UserManagement.Profiles context with functions for creating, updating, deleting, and retrieving user profiles.
  • Added the UserManagement.Profiles.Profile schema with validation for profile fields such as username, website, and avatar_url.

Database Integration

  • Configured UserManagement.Repo for database access using Ecto and PostgreSQL.
  • Added UserManagement.Release module for database migrations and rollback tasks in production environments.

Supabase Integration

  • Integrated Supabase services for authentication, storage, and database access, including configuration for environment-specific settings. [1] [2]

Documentation and Assets

  • Added a README.md file detailing the application's features, setup instructions, and database schema.
  • Included JavaScript assets for Phoenix LiveView and other dependencies, such as phoenix_html and topbar.

@zoedsoupe
Copy link
Member Author

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)
@zoedsoupe zoedsoupe changed the title Actual Phoenix LiveView Examples feat: user-management phoenix live view example May 21, 2025
@zoedsoupe zoedsoupe self-assigned this May 21, 2025
@zoedsoupe zoedsoupe marked this pull request as ready for review May 21, 2025 13:11
@zoedsoupe zoedsoupe requested a review from Copilot May 21, 2025 13:11
Copy link

@Copilot Copilot AI left a 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.Layouts and CoreComponents for 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

filipecabaco
filipecabaco previously approved these changes Jul 20, 2025
@zoedsoupe zoedsoupe changed the title feat: user-management phoenix live view example chore: user-management phoenix live view example Jul 20, 2025
@zoedsoupe zoedsoupe requested a review from filipecabaco July 20, 2025 21:56
@zoedsoupe zoedsoupe enabled auto-merge (squash) July 20, 2025 21:56
@zoedsoupe zoedsoupe merged commit af9eec9 into main Jul 21, 2025
24 checks passed
@zoedsoupe zoedsoupe deleted the feat/examples branch July 21, 2025 11:32
@zoedsoupe zoedsoupe mentioned this pull request Jul 21, 2025
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.

Finish to implement examples, specially with auth and storage integrations Links to examples in README are dead
2 participants