mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Merge approved PhotoCraft PR #3967: Add move and delete actions to Smart Filter rows
Port behavior and regression coverage into current modules; preserve current upstream behavior. Port guarded filter context actions and selection updates into current Layers/Smart UI modules. Register all new modules and regressions; preserve current filter blend button and drag-to-reorder routing, document/modal/job ownership.
This commit is contained in:
commit
97dfeda00c
27 files changed
+784
-1
No files matched your search
@@ -82,6 +82,7 @@ Photoshop's Generative Fill and Delete and Fill Selection rows are left out: Pho
|
||||
|---|---|---|---|
|
||||
| Layers panel row | Blending Options, Duplicate/Delete, Group, export, convert/rasterize, mask, clipping, link, style copy/paste/clear, merge/flatten, Rename; filter by layer kind and selection | Implemented in layer_menu_ui.rs; item enablement uses menu commands | PhotoCraft inventory. Adobe documents layer rename/delete, color tagging, rasterization, and flattening [here](https://helpx.adobe.com/photoshop/using/layers.html); exact combined ordering **inferred** without a live capture |
|
||||
| Layers panel color label / thumbnail / mask thumbnail / effect row | Color label; context actions specific to hit icon | Layer-mask thumbnail: Disable/Delete/Apply Layer Mask, Add/Subtract/Intersect Mask with Selection, Select and Mask… (layer_menu_ui.rs `show_mask`, #4575; Mask Options… missing). Generic row on the other targets; inspect before extending | Adobe explicitly documents right-click on layer/group to assign a color ([layers](https://helpx.adobe.com/photoshop/using/layers.html)); other icon menus need capture |
|
||||
| Smart Filter row | Reorder or remove the clicked filter | Move Up, Move Down and Delete Smart Filter invoke the existing engine commands, preserve inactive-layer targeting and Undo/Redo, and refuse a stale popup or modal/job edits; edge moves are disabled | **Partial gesture parity.** Adobe [documents dragging filters to reorder and to the Delete icon](https://helpx.adobe.com/uk/photoshop/using/applying-smart-filters.html), with bottom-up evaluation. These context actions are PhotoCraft convenience controls. Existing selection, transfer between Smart Objects and drag-to-Trash behavior is retained; drag-to-reorder remains open. |
|
||||
| Channels panel row | Duplicate/Delete/Rename, channel display and overlay color, spot conversion; new/split/merge | Implemented in channels_panel.rs | PhotoCraft inventory; exact Photoshop order **inferred** |
|
||||
| Brushes and preset panels | Rename/Delete brush or group, export selected brushes, view/reset preset choices | Rename/Delete, and preset group/item menus exist | Adobe explicitly documents Export Selected Brushes from brush/group right-click ([brushes](https://helpx.adobe.com/photoshop/desktop/apply-painting-techniques/brushes-presets/create-brush-set-painting-options.html)); Photoshop pop-up-panel rename/delete/reset/view options are [documented](https://helpx.adobe.com/photoshop/using/panels-menus.html), though some are panel-button menus |
|
||||
| Paths, History, Actions, Swatches, Gradients, Patterns, Styles, Libraries, Properties | Target-specific duplicate/delete/rename and panel operations where a panel exists | Paths row menu added in this PR; other panels need audit | **Inferred** catalog; record a Photoshop capture before claiming parity |
|
||||
@@ -110,6 +111,8 @@ Each slice needs pure model tests (including every item dispatching a known comm
|
||||
| 2026-10-16 | minor | Crop canvas menu on a pending frame (#6561) |
|
||||
| 2026-10-15 | trivial | Pasteboard row: the colour menu exists since #2462 |
|
||||
| 2026-10-13 | minor | Layer-mask thumbnail menu (#4575) |
|
||||
| 2026-10-13 | minor | Retain main's Smart Filter selection, transfer and drag-to-Trash behavior alongside the context actions; drag-to-reorder remains a separate gap |
|
||||
| 2026-10-12 | minor | Smart Filter rows expose bounded move/delete actions through existing commands, with captured document/revision guards; Adobe drag/trash gesture parity remains partial (#1265) |
|
||||
| 2026-10-10 | trivial | Status line, revision history |
|
||||
| 2026-10-09 | minor | Selection canvas reference and tool matrix updates |
|
||||
| 2026-10-07 | minor | Pen canvas reference capture |
|
||||
@@ -261,6 +261,20 @@ Filtering narrows the same array without changing its elements: `serve`'s `engin
|
||||
desktop control channel's `engine.commands` takes no filter and always returns every command.
|
||||
The shape is pinned by a test in `crates/automation/src/rpc.rs` (#3684).
|
||||
|
||||
### Smart Filter row actions (#1265)
|
||||
|
||||
Smart Filter rows offer Move Up, Move Down and Delete Smart Filter from their context menu.
|
||||
They use the existing `layer.smartFilter.move {layer,index,to}` and
|
||||
`layer.smartFilter.delete {layer,index}` commands. The displayed stack is reversed: moving
|
||||
visually up uses `to:index+1`, down uses `to:index-1`. Explicit `layer` targets the clicked
|
||||
Smart Object while preserving the active layer and selection.
|
||||
|
||||
Popup actions close when the captured document snapshot or revision changes, and cannot
|
||||
edit while a modal dialog or a job locks the document. CLI/MCP commands retain their existing
|
||||
validation and Undo/Redo behavior. These context actions provide PhotoCraft convenience
|
||||
controls. Existing Smart Filter selection, transfer between Smart Objects and drag-to-Trash
|
||||
behavior is retained, including current drag-to-reorder.
|
||||
|
||||
### Background jobs (#210)
|
||||
|
||||
Long commands (every `filter.*`, `edit.contentAwareFill`, `edit.contentAwareScale`, `file.automate.photomerge`, `brush.presets.importAbr`), file opens and interactive saves (File › Save, Save As and the TIFF Options continuation, #2017) run as background jobs in the desktop app: the window keeps drawing, the status bar shows progress with a Cancel button, and jobs that lock the active document show a modal progress dialog (Esc cancels). `engine.execute`, `ui.menu.invoke`, `ui.dialog.confirm` and `app.save` still wait for the result by default; pass `"wait": false` to get `{job, pending: true}` at once, then poll `jobs.list` (`state`: running, done, failed, cancelled; `progress` 0–1; the result or error) and stop it with `jobs.cancel {job}`. A cancelled or failed job leaves the document unchanged. While a job runs, commands that would edit its document fail with "… is still running on this document". `ui.inspect` reports `jobs` (running jobs, opening files, saving files). Set `PHOTOCRAFT_INLINE_JOBS=1` to run everything inline.
|
||||
|
||||
Reference in new issue
Block a user