Skip to content

blur tool - #12

Merged
ericls merged 6 commits into
mainfrom
shen/editor-blur-tool
Jun 2, 2026
Merged

blur tool#12
ericls merged 6 commits into
mainfrom
shen/editor-blur-tool

Conversation

@ericls

@ericls ericls commented Jun 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Blur editing tool end-to-end (web editor UI + GraphQL mutation + backend image processing), and updates the image “changes” representation from a single object to an ordered array to support multiple edits.

Changes:

  • Introduces a blur selection UI in the web editor with a live canvas preview and an “Apply Blur” action.
  • Adds applyBlur GraphQL mutation + server-side blur implementation and wiring to persist the resulting derived image.
  • Migrates image_table.changes from {}/object to []/array, updating parsing/display logic accordingly.

Reviewed changes

Copilot reviewed 19 out of 24 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
web_client/src/localization/en.json Adds blur-related UI strings (editor + blur tool).
web_client/src/localization/ko.json Adds blur-related UI strings (editor + blur tool).
web_client/src/localization/ru.json Adds blur-related UI strings (editor + blur tool).
web_client/src/localization/zh_hans.json Adds blur-related UI strings (editor + blur tool).
web_client/src/localization/zh_hant.json Adds blur-related UI strings (editor + blur tool).
web_client/src/editor/ImageEditor.tsx Adds watermark/blur tab switcher, blur settings state, and applyBlur flow.
web_client/src/editor/EditorCanvas.tsx Adds blur-region selection interactions + blur preview rendering.
web_client/src/editor/BlurTool.tsx New blur tool panel (region status, radius slider, apply button).
web_client/src/editor/data.tsx Adds Apollo mutation hook for applyBlur.
web_client/src/editor/ImageDetail.tsx Updates change parsing to handle arrays / multiple changes.
web_client/src/generated/graphql.ts Generated GraphQL types for applyBlur inputs/results.
web_client/src/generated/gql.ts Generated gql document mapping for ApplyBlur.
graph/schema/images.graphqls Adds BlurRegionInput, ApplyBlurInput, applyBlur mutation.
graph/model/models_gen.go Generated Go models for blur inputs/results.
graph/generated.go Generated gqlgen runtime wiring for applyBlur.
graph/images.resolvers.go Implements ApplyBlur resolver; refactors watermark to single-change API.
editing/changeset.go Changes change model to Change + ChangeSet []Change and applies sequentially.
editing/changeset_test.go Updates serialization test for the new ChangeSet representation.
editing/watermark.go Refactors watermark change builder/editor to operate on a single Change.
editing/watermark_test.go Updates tests to the new Change type.
editing/blur.go New backend blur editor + change builder.
image/repo.go Updates default “empty changes” representation to [].
db/migrations/000006_changes_array.up.sql Migrates stored changes to arrays and updates default.
db/migrations/000006_changes_array.down.sql Down migration to restore previous default and representation.
Files not reviewed (5)
  • graph/generated.go: Language not supported
  • graph/images.resolvers.go: Language not supported
  • graph/model/models_gen.go: Language not supported
  • web_client/src/generated/gql.ts: Language not supported
  • web_client/src/generated/graphql.ts: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web_client/src/editor/EditorCanvas.tsx
Comment thread web_client/src/editor/ImageDetail.tsx
Comment thread web_client/src/editor/ImageEditor.tsx
Comment thread web_client/src/editor/ImageEditor.tsx
Comment thread db/migrations/000006_changes_array.up.sql Outdated
Comment thread editing/blur.go

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 19 out of 24 changed files in this pull request and generated 6 comments.

Files not reviewed (5)
  • graph/generated.go: Language not supported
  • graph/images.resolvers.go: Language not supported
  • graph/model/models_gen.go: Language not supported
  • web_client/src/generated/gql.ts: Language not supported
  • web_client/src/generated/graphql.ts: Language not supported

Comment thread editing/changeset.go
Comment thread db/migrations/000006_changes_array.down.sql Outdated
Comment thread editing/blur.go Outdated
Comment thread editing/blur.go
Comment thread web_client/src/editor/ImageDetail.tsx
Comment thread web_client/src/localization/en.json

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 21 out of 26 changed files in this pull request and generated 7 comments.

Files not reviewed (5)
  • graph/generated.go: Language not supported
  • graph/images.resolvers.go: Language not supported
  • graph/model/models_gen.go: Language not supported
  • web_client/src/generated/gql.ts: Language not supported
  • web_client/src/generated/graphql.ts: Language not supported

Comment thread editing/blur.go Outdated
Comment thread editing/blur.go Outdated
Comment thread editing/blur.go Outdated
Comment thread editing/blur.go Outdated
Comment thread editing/blur.go Outdated
Comment thread graph/images.resolvers.go Outdated
Comment thread web_client/src/editor/ImageDetail.tsx
@ericls
ericls merged commit 2c5843b into main Jun 2, 2026
8 checks passed
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.

2 participants