Skip to content

FL-53: Uploading files to Supabase#21

Merged
adamcameron merged 7 commits intomainfrom
FL-53_storage
Nov 27, 2025
Merged

FL-53: Uploading files to Supabase#21
adamcameron merged 7 commits intomainfrom
FL-53_storage

Conversation

@adamcameron
Copy link
Owner

FAO @copilot: this is just learning code, not intended for production and will never exist outside of my dev machine (this is to try to short circuit complaints about pwds being actively exposed, bad UX, etc).

I didn't bother with tests for this lot, as it'd just me more of the same of other tests I've already done.

Intent is to upload file, see them display; get rid of them again.

Copy link
Contributor

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 implements a file upload feature to Supabase as a learning exercise (FL-53). The changes include refactoring common library code into a shared src/lib directory and creating a new image manager component for uploading, displaying, and deleting images from Supabase storage.

  • Refactored Supabase client, test credentials, and ErrorBoundary into shared lib directory
  • Created ImageManager component with file upload/delete functionality and image display
  • Added new Vite configuration entry point for the fl-53 feature

Reviewed changes

Copilot reviewed 12 out of 15 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
vite.config.ts Added new entry point for fl-53 image manager page
tests/unit/profiles/gallery/gallery.test.tsx Updated import path for supabaseClient to use shared lib
tests/unit/profiles/add/form.test.tsx Updated import path for supabaseClient to use shared lib
tests/integration/profiles/gallery.test.tsx Updated import paths for supabaseClient and loginCredentials to use shared lib
src/profiles/login/LoginForm.tsx Updated import paths to reference shared lib directory
src/profiles/gallery/Gallery.tsx Updated import path for supabaseClient to reference shared lib
src/profiles/add/Form.tsx Updated import path for supabaseClient to reference shared lib
src/main.tsx Updated import path for ErrorBoundary to reference shared lib
src/lib/testCredentials.ts Moved test credentials to shared lib location
src/lib/supabase.ts Moved Supabase client initialization to shared lib location
src/lib/ErrorBoundary.tsx Moved ErrorBoundary component to shared lib location
src/fl-53/main.tsx Created entry point for image manager feature
src/fl-53/ImageManager.tsx Implemented image upload, display, and deletion functionality using Supabase storage
pages/fl-53/index.html Created HTML entry point for image manager page
README.md Added documentation for Supabase admin dashboard credentials

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

adamcameron and others added 2 commits November 27, 2025 12:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI commented Nov 27, 2025

@adamcameron I've opened a new pull request, #22, to work on those changes. Once the pull request is ready, I'll request review from you.

adamcameron and others added 4 commits November 27, 2025 12:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@adamcameron adamcameron merged commit e77ba6a into main Nov 27, 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.

2 participants