Skip to content

feat(moderation): duplicate images tab - #5254

Merged
lbesson merged 1 commit into
feat/embedded-imagesfrom
feat/image-duplicates
Nov 24, 2026
Merged

lbesson merged 1 commit into
feat/embedded-imagesfrom
feat/image-duplicates

Conversation

@lbesson

@lbesson lbesson commented Nov 24, 2026

Copy link
Copy Markdown
Member

Stacked on #5251 (images shown in texts): merge that one first. API: c2corg/v6_api#2735, to release first.

A "Duplicate images" moderation tab (moderators of the topoguide): the images uploaded more than once, side by side.

  • Filter: all sets, or only the sets with two images on the same document.
  • Each set: number of copies, same document, same uploader, time between the uploads.
  • Each image: type (personal/collaborative), author, upload date, dimensions, size, EXIF date and camera, linked documents, texts showing it.
  • A "Keep" radio picks the image the others merge into. Default: the first upload when different users uploaded the copies, else the collaborative copy, else the first upload.
  • Actions, each confirmed by a second click as for the orphan images:
    • per image: Merge into the kept one, Delete (disabled while a text shows the image: merge it instead), Not a copy (sets of 3 or more);
    • per set: Merge all into the kept one (3 or more), Not duplicates.

New strings: Transifex after the merge.

🤖 Generated with Claude Code

Lists the images uploaded more than once (GET /images/duplicates), side by
side with their type, uploader, file details, linked documents and the
texts showing them. The moderator picks the image to keep (by default the
first upload when users differ, else the collaborative copy), then merges
a copy into it, deletes it (not when a text shows it) or tells that the
images are not copies. Every action takes two clicks, as for the orphan
images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 24, 2026
@lbesson
lbesson added this pull request to stack #5255 November 24, 2026 17:07
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: df5c3d3a-c70f-49e2-a460-e8a109995e6f
Commits

Reviewing files that changed from the base of the PR and between 90d1533 and b86799f.

Files selected for processing: 7

  • src/js/apis/c2c/ModeratorService.ts
  • src/js/apis/c2c/schemas.ts
  • src/views/moderation/ImageDuplicates.vue
  • src/views/moderation/ModerationView.vue
  • src/views/moderation/image-duplicates.spec.ts
  • src/views/moderation/image-duplicates.ts
  • src/views/moderation/moderation.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: https://c2corg.github.io/c2c_ui/feat-image-duplicates/ (commit b86799f, may take a minute to be served)

@lbesson
lbesson merged commit 05b6f25 into master Nov 24, 2026
8 of 9 checks passed
@lbesson
lbesson deleted the feat/image-duplicates branch November 24, 2026 17:12
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 56 complexity · 8 duplication

Metric Results
Complexity 56
Duplication 8

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

This branch was previously deployed

1 inactive deployment
pr-preview — b86799f1 Deployed Nov 24, 2026 by lbesson via github-pages #8244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant