-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix,feat: canvas followups 12 #6884
Merged
Merged
Conversation
This file contains 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
psychedelicious
requested review from
blessedcoolant,
maryhipp,
hipsterusername and
brandonrising
as code owners
September 19, 2024 08:21
github-actions
bot
added
python
PRs that change python files
services
PRs that change app services
frontend
PRs that change frontend files
labels
Sep 19, 2024
hipsterusername
approved these changes
Sep 19, 2024
psychedelicious
force-pushed
the
psyche/canvas-followups-12
branch
from
September 19, 2024 13:02
31a7691
to
b4f8e4b
Compare
This setting's interactions with canvas were unintuitive and at odds with the modal nature of canvas v2 generations.
This mirrors affinity/photoshop's default `d` hotkey, which sets the fg/bg to white/black. We don't have a concept of "background color", and white is more useful for control images, so it sets to white.
- Add buttons to zoom in/out - Update hotkeys for fit & 100% to match affinity (e.g. ctrl+0, ctrl+1) - Add hotkeys for 200%, 400%, 800% - Update tooltips
Also update the verbiage for the alerts: - "Sending to Canvas" -> "Staging Generations on Canvas" - "Sending to Gallery" -> "Sending Generations to Gallery"
- Renamed "Send to Canvas" -> "New Layer from Image" - Added "New Canvas from Image" This clarifies the purpose of the menu items and gives tablet users a way to easily add images tot he canvas.
- Add async zod refiner to `zImageWithDims` which fetches the image as part of validation - Add `zServerValidatedModelIdentifierField`, a zod-refined version of `zModelIdentifierField` which fetches the model as part of validation - Add `zCanvasMetadata` zod schema, which contains only canvas entities - no bbox, and no `isHidden` flags
- Allow `uploadImage` util to accept `metadata` to embed in the image - Update compositor to support `metadata` field when uploading rasterized composite layer
- Add parser, recaller and handler - Add redux action to rehydrate the whole shebang at once
We must ignore the cache when validating metadata, else a recently-deleted image may still be cached and we get erroneously successful validation.
Fixes an issue where indeterminate progress wasn't shown.
psychedelicious
force-pushed
the
psyche/canvas-followups-12
branch
from
September 19, 2024 13:18
b4f8e4b
to
d6e9153
Compare
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.
Summary
Fixes
Enhancements
d
hotkey to set color to white (mirrors similar functionality in affinity/PS, though it doesn't match 1-to-1)*Pending offline discussion
Related Issues / Discussions
n/a
QA Instructions
Try it out
Merge Plan
n/a
Checklist