Skip to content

Add set performer image action to performer Images tab#6980

Merged
WithoutPants merged 2 commits into
stashapp:developfrom
LubuSeb:codex/stash-571-set-performer-image
Jun 26, 2026
Merged

Add set performer image action to performer Images tab#6980
WithoutPants merged 2 commits into
stashapp:developfrom
LubuSeb:codex/stash-571-set-performer-image

Conversation

@LubuSeb

@LubuSeb LubuSeb commented May 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an action on a performer's Images tab when exactly one image is selected.
  • Fetches the selected image's full image URL in the browser, converts it to a data URL, then calls performerUpdate({ id, image }).
  • Reuses the existing performer image update path without adding new performer-image storage.

Scope

This does not add schema fields, new storage, rotation, alternate images, image categories, hover behavior, crop UI, performer card behavior, or StashDB sync.

Refs #571

Validation

  • corepack pnpm@10.33.0 install --frozen-lockfile
  • corepack pnpm@10.33.0 run gqlgen
  • corepack pnpm@10.33.0 exec eslint src/components/Performers/PerformerDetails/PerformerImagesPanel.tsx
  • corepack pnpm@10.33.0 exec prettier --check src/components/Performers/PerformerDetails/PerformerImagesPanel.tsx src/locales/en-GB.json
  • corepack pnpm@10.33.0 run check
  • corepack pnpm@10.33.0 run build

Partially addresses #872

isDisplayed: (_result, _filter, selectedIds) =>
selectedIds.size === 1,
onClick: async (result, _filter, selectedIds) => {
try {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be moved into its own separate function with useCallback.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label Jun 25, 2026
@WithoutPants WithoutPants added this to the Version 0.32.0 milestone Jun 25, 2026
@WithoutPants WithoutPants merged commit 10c0994 into stashapp:develop Jun 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Something needed tweaking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants