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

Display filename of existing profile picture in artist form #113

Merged

Conversation

floehopper
Copy link
Member

Unlike in this commit, I've used the built-in ActionView::Helpers::FormBuilder#label method rather than the customized TailwindFormBuilder#labels method that I used for the file fields in the album form. That's because at the moment there aren't any validation rules on Artist#profile_picture, so we don't (yet) need to be able to display validation errors withinin the label.

See #60.

New artist page

Screenshot 2023-12-22 at 23 00 52

Edit artist page

Screenshot 2023-12-22 at 23 01 00

@floehopper
Copy link
Member Author

Even if this doesn't do everything that was envisaged in #60, I still think it's an improvement and makes the artist form more consistent with the album form, so I'm going to merge it.

Unlike in this commit [1], I've used the built-in
`ActionView::Helpers::FormBuilder#label` method rather than the
customized `TailwindFormBuilder#labels` method that I used for the file
fields in the album form. That's because at the moment there aren't any
validation rules on `Artist#profile_picture`, so we don't (yet) need to
be able to display validation errors withinin the label.

c.f. this commit [1].

See #60.

[1]: 3aaec28
@floehopper floehopper force-pushed the display-filename-of-existing-artist-profile-picture branch from d4c0e08 to 87ad760 Compare December 23, 2023 14:06
@floehopper floehopper merged commit d7444f2 into main Dec 23, 2023
2 checks passed
@floehopper floehopper deleted the display-filename-of-existing-artist-profile-picture branch December 23, 2023 14:44
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.

1 participant