Repository navigation
Conversation
Apply the existing input-outline animation to the floating Ask AI composer, so unused-space focus uses the same visual cue as the AI sidebar. Pin Phoenix Pro to 89b11573b9d64eb22130f83c56702aa490492178 for shared click-to-focus handling in both composers, registered regression coverage and updated task tracking. Preserve text selection, dragging, normal controls and preview interactions while retaining the draft and caret. Validation: 19 focus integration specs and 42 existing Ask AI dialog specs pass on each of Windows, macOS and Linux (183 checks). Targeted ESLint, LESS compilation and whitespace checks pass. Both surfaces were also checked in the connected Linux app. The user confirmed the earlier CI fixes pass fully.
Remove the usage chip's open-state chevron rotation and its unused transform transition. The arrow now keeps the same direction as the other composer dropdowns, independently of popup placement or visibility. Pin Phoenix Pro to 4cef1b9ae230952c519da4381059ebc25eaf93a5 for the matching downward icon and completed task documentation. Validation: LESS compilation and whitespace checks pass. In the connected Linux app, the arrow remains down with no transform in both open and closed states, while the usage popup continues toggling normally.
Show an image on its own over a dimmed backdrop inside the Markdown preview frame, with no dialog chrome. Any click or Escape closes it. Reader mode opens it on a click; linked images keep following their link. In edit mode a click still selects the image, and the lightbox opens from a centred expand button shown while hovering the image, a double-click, or a new expand icon in the image toolbar. A reader image click no longer moves focus back to the code editor, and Escape stays in the frame while the lightbox is open. File and mode switches close it. Tests: livepreview:Markdown Editor 1 > Image Lightbox (7) with a new image-test.md fixture.
The edit-mode expand button only appeared on mouseover, so a scroll that hid it, or a pointer already inside a large image, left it hidden until the pointer left and re-entered. It now follows the pointer's position: each mouse move (using the event's own target) and each scroll or resize shows, moves or hides it for whatever image is under the pointer. Moving onto a different element is handled at once; repeated moves and scrolls are checked at most once per 16 ms with a trailing check, since not every engine coalesces mouse moves per frame. The button now sits in the viewer's scroll container, centred on the image in content coordinates, so it scrolls with the image instead of trailing it. The image toolbar's expand icon is removed: the centre button does the same. Tests: Image Lightbox covers hovering anywhere on the image, moving off and back, and a scroll while the pointer stays.
Make the edit-mode centre expand button 56px (from 44px) with a 24px icon, so there is more area to click. Images under 96px no longer get the button, since it would cover most of them.
Show the edit-mode expand button as a 48px rounded square in the hovered image's top-right corner, inset 10px, instead of a circle over its centre, so it no longer covers the image content or the spot where an image is grabbed to drag it. On an image taller than the preview, the button moves down to stay on the visible part once the image's top has scrolled out of view. Tests: the Image Lightbox hover specs check the corner position.
Rename the screenshot menu items to lead with what differs (Area, Live Preview, Live Preview selection screenshot), add the whole-window toggle and disabled-item tooltips, and drop the camera, Full Editor and Upload from Device strings. Style the + button, the menu divider, disabled items and the area picker's toggle; remove the camera button and its drop-up styles.
The Live Preview chat capture button still uses AI_CHAT_SCREENSHOT_TITLE for its tooltip, which the attach menu change removed. Advance the Pro pin to 5fc672d, the + attach menu.
Use data URLs for the existing SVG so Chromium lightbox tests do not depend on a relative virtual-server URL that returns 404. Preserve the image dimensions and interaction checks, and remove the unused SVG file. Validation: connected Chromium lightbox suite 7/7; full Chromium Live Preview CI command 320/320 on Linux. The embedded image also loads with the production sandbox restrictions. Production code is unchanged.
Advance Phoenix Pro from 5fc672d to 558213d to include the latest attach menu and Chromium lightbox verification notes. The intervening Pro changes are documentation only. Validation: the tracking JSON parses and its commit ID matches Pro HEAD.
|
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.



Three user-facing changes from the
aibranch, paired with https://github.com/phcode-dev/phoenix-pro/pull/282:One + attach menu in the AI composer. A single + button replaces the paperclip and camera buttons. Its menu has:
Full Editor and Upload from Device are gone: Attach a file covers uploads, and the area picker's new whole-window toggle covers the full editor. Live Preview screenshot captures whatever the preview shows, Markdown previews included, and opens Live Preview first if it is closed. The selection screenshot is disabled when there's no HTML preview, the preview uses a custom server, or nothing is selected; its tooltip says which.
Full-size images in the Markdown preview.
Click unused space to focus the AI prompt. This works in the AI sidebar and the floating Ask AI dialog and shows the existing outline pulse. The usage dropdown arrow now stays pointed down, open or closed.
What kind of change does this PR introduce?
5fc672d16b2d07c291f6da141e53e41ebfb4bf96.Core changes:
image-lightbox.jscomponent, plus Escape and focus handling inbridge.js, styles and one locale string.Screenshots or Gifs of the change
None attached; screenshots can't be attached from the current connection. The menu, the area toggle, the lightbox and the hover button were reviewed in the connected Linux app.
Does this PR introduce a breaking change?
No.
Tests done
5fc672d, core2bdd62483; tooltip fix in47cb671f8):livepreview:Markdown Editor 166/66 on Windows, macOS and Linux (corea53496d1e), including 7 new lightbox specs.integration:AI Composer Focus19/19 andintegration:AI Live Preview Chat42/42 on Windows Tauri, macOS Tauri and Linux Electron.Checklist
Other information
Companion Pro PR: https://github.com/phcode-dev/phoenix-pro/pull/282. Review and merge the two together; this PR pins the Pro commit tested above.