Skip to content

Conversation

@Lukecsharpwalker
Copy link
Owner

This pull request includes significant changes to migrate the project from Firebase to Supabase, along with various updates to dependencies, code structure, and functionality. The migration involves removing Firebase-specific configurations, services, and functions, and replacing them with Supabase equivalents. Additionally, there are improvements to the AddPostComponent and new features for the admin module.

Migration from Firebase to Supabase:

  • Removed Firebase configuration files (.firebaserc, firebase.json, functions/.gitignore, functions/package.json, functions/src/index.ts, functions/tsconfig.json) and Firebase-related dependencies from package.json. [1] [2] [3] [4] [5] [6] [7]
  • Added Supabase dependencies (@supabase/supabase-js, supabase) and created a new script reset-password.ts for managing user passwords via Supabase's Admin API. [1] [2]

Updates to AddPostComponent:

  • Refactored form initialization to use FormControl directly instead of FormBuilder. Removed Firebase-specific types like Timestamp and replaced them with generic types. [1] [2]
  • Updated the AddPostComponent template to resolve a merge conflict and improve functionality.
  • Replaced Firebase Firestore-based API calls in AdminApiService with placeholders for future Supabase integration.

Admin module enhancements:

  • Introduced a new AdminComponent with a standalone setup and added a router outlet. Included a basic unit test for the component. [1] [2] [3]

Dependency and configuration updates:

  • Updated angular.json to include new CommonJS dependencies and modified the prerender configuration. [1] [2]
  • Removed @angular/fire and Firebase-related dependencies from package.json. Added new dependencies for Supabase and other utilities. [1] [2]

Miscellaneous improvements:

  • Refactored the AppComponent to encapsulate cookie consent logic in a private method.
  • Fixed minor import formatting issues across multiple files. [1] [2]

These changes collectively streamline the project's backend functionality, enhance the admin module, and align the codebase with Supabase's ecosystem.

@Lukecsharpwalker Lukecsharpwalker merged commit 44c1b9b into main May 1, 2025
1 check passed
Lukecsharpwalker added a commit that referenced this pull request May 2, 2025
* first commit

* Blog components added

* nothing special

* auth guard moved to auth folder

* git ignore added

* git ignore added, functions removed

* supabase added, firebase removed

* supabase types added

* ng rx signal store installed

* ngrx signal store fixes

* ngrx signal store wip

* ngrx signalstore added

* tags fixed

* login fixed

* git ignore added

* wip

* fix for prerender

* fix lame code

* fix

* package lock

* fix for build

* fix for build

* image added
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