Skip to content
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

Strand cover image #34

Merged
merged 5 commits into from
Dec 29, 2023
Merged

Strand cover image #34

merged 5 commits into from
Dec 29, 2023

Conversation

endoooo
Copy link
Contributor

@endoooo endoooo commented Dec 29, 2023

No description provided.

- added "white" button theme (core components)

- adjusted `<.error_block>` to allow more flexible render slot options

- added `error_to_string/2` to `LiveComponentHelpers` for friendlier file upload error messages
- created Supabase uploader

- added loading state to `<.button>` when `phx-submit-loading`
…" Elixir using https://github.com/zoedsoupe/supabase lib

- removed js uploaders code

- removed `external` config in `StrandFormComponent` in favor of upload in `consume_uploaded_entries`

- created `LantternWeb.SupabaseHelpers`
@endoooo endoooo linked an issue Dec 29, 2023 that may be closed by this pull request
@endoooo endoooo merged commit f0b57d3 into main Dec 29, 2023
2 checks passed
@endoooo endoooo deleted the strand-cover-image branch December 29, 2023 15:14
@endoooo
Copy link
Contributor Author

endoooo commented Dec 29, 2023

note for the future: I started the external image upload implementation following this Phoenix LiveView guide, but I switched to a "full Elixir" approach using https://github.com/zoedsoupe/supabase.

that being said, if we decide to move back to the external + js approach, the commit a02a5d9 may help

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.

add support to upload strand cover image
1 participant