Skip to content

Conversation

@Gykes
Copy link
Collaborator

@Gykes Gykes commented Dec 21, 2025

This PR adds a new clear image button next to cover image to allow users to delete the cover image of a given scene.

It currently functions in the same way that adding a scene cover works just in reverse.

Click the new remove cover button
See notification about cover removed
save scene
profit

UI:
Screenshot 2025-12-21 at 10 42 51

Fixes: #4789

@DogmaDragon
Copy link
Collaborator

I'm bit hijacking this PR, but I would prefer to uniform the terminology used for the same task across different objects. As it stands right now:

Scenes

  • faTrashAlt

Groups

  • Clear front image
  • Clear back image

Performers

  • Clear Image

Studios

  • Clear Image

Tags

  • Clear Image

@Gykes
Copy link
Collaborator Author

Gykes commented Dec 21, 2025

So you would rather it say "Clear Image" over the trash can?

If so I can take care of that tomorrow, easy fix

@DogmaDragon
Copy link
Collaborator

Honestly not sure what is the best approach here, just wanted to bring up the inconsistency.

@sleetx
Copy link

sleetx commented Dec 21, 2025

Just to be clear, is this simply unlinking the cover from the scene? or deleting/cleaning the generated cover from the database?

If it's the former, "clear image" makes sense. If it's the latter, probably the trash can or "delete cover".

@Gykes
Copy link
Collaborator Author

Gykes commented Dec 21, 2025

Just to be clear, is this simply unlinking the cover from the scene? or deleting/cleaning the generated cover from the database?

If it's the former, "clear image" makes sense. If it's the latter, probably the trash can or "delete cover".

The latter

@echo6ix
Copy link
Contributor

echo6ix commented Dec 22, 2025

Similar to my recent split button feedback. All the actionable items related to the cover image can be consolidated into a single cover image button, and it matches users expectations from popular tools/sites like Facebook, Notion, etc.

The Set image button already does this, so the primary button label just requires a name change to account for the delete button.

[ 📷 Cover Image ] ▼
----------------------
Set image from file…
Set image from URL…
Remove image

@Gykes
Copy link
Collaborator Author

Gykes commented Dec 22, 2025

Similar to my recent split button feedback. All the actionable items related to the cover image can be consolidated into a single cover image button, and it matches users expectations from popular tools/sites like Facebook, Notion, etc.

The Set image button already does this, so the primary button label just requires a name change to account for the delete button.

[ 📷 Cover Image ] ▼
----------------------
Set image from file…
Set image from URL…
Remove image

I think a destructive button shouldn't be in the same dropdown as a nondestructive dropdown. There's no reason per say just I feel like it's better to keep them somewhat segregated since they perform fundamentally different tasks.

I liked adding it to the Save & New as they were essentially the same. This feature is very different from what currently exists and doesn't align with the rest of the project when using the split button.

@neru2132
Copy link

I think a destructive button shouldn't be in the same dropdown as a nondestructive dropdown.

Set image is a destructive action if there is an existing image. For what it's worth, I have clicked on Set image... in the hopes that I could remove the image in the past, but I would also be okay with an extra button. What I don't like is seeing a bunch of administrative buttons when all I want to see is information about the scene, but that's more related to shortcomings of the Details tab.

@Gykes
Copy link
Collaborator Author

Gykes commented Dec 22, 2025

I think a destructive button shouldn't be in the same dropdown as a nondestructive dropdown.

Set image is a destructive action if there is an existing image. For what it's worth, I have clicked on Set image... in the hopes that I could remove the image in the past, but I would also be okay with an extra button. What I don't like is seeing a bunch of administrative buttons when all I want to see is information about the scene, but that's more related to shortcomings of the Details tab.

I think it has a secondary purpose of a destructive action. Its main purpose is to set and remove/destroy if something currently exists. This feature is purely designed to destroy.

@Gykes Gykes added this to the Version 0.31.0 milestone Dec 23, 2025
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at the way that the performer image is cleared and use a similar implementation. It uses changesetTranslator.hasField to determine if the image is set, and uses nil to specify clearing the image, rather than "".

Clearing the image should show the default scene image rather than showing a toast notification. This will require modifying api/sceneRoutes.Screenshot to handle the default flag.

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.

Delete cover image

6 participants