blur tool - #12
Merged
Merged
Conversation
There was a problem hiding this comment.
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
applyBlurGraphQL mutation + server-side blur implementation and wiring to persist the resulting derived image. - Migrates
image_table.changesfrom{}/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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.