Skip to content

Conversation

@devvaannsh
Copy link
Member

No description provided.

@devvaannsh devvaannsh changed the title Live Preview Image fixes Live Preview fixes Sep 25, 2025
@devvaannsh devvaannsh force-pushed the img-fix branch 4 times, most recently from 5800cb4 to 10a7d76 Compare October 4, 2025 16:30
@devvaannsh devvaannsh force-pushed the img-fix branch 2 times, most recently from 8514512 to 813acd2 Compare October 7, 2025 05:29
@devvaannsh devvaannsh force-pushed the img-fix branch 2 times, most recently from c6a5cb8 to 5a47bbc Compare October 17, 2025 06:54
@devvaannsh devvaannsh force-pushed the img-fix branch 3 times, most recently from c0eb2c1 to 527638e Compare October 24, 2025 09:55
@sonarqubecloud
Copy link

"LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER": "Select image from computer",
"LIVE_DEV_IMAGE_GALLERY_CHOOSE_FOLDER": "Choose download folder",
"LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER": "Choose image download folder",
"LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER": "Search images...",
Copy link
Member

Choose a reason for hiding this comment

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

Instead of ..., use unicode \u2026. That is the convention that we use in other places.

eg: "LIVE_DEV_OPEN_CHROME": "Open In Chrome\u2026"

const currLiveDoc = LiveDevMultiBrowser.getCurrentLiveDoc();
if (currLiveDoc && currLiveDoc.protocol && currLiveDoc.protocol.evaluate) {
currLiveDoc.protocol.evaluate("_LD.dismissImageRibbonGallery()");
currLiveDoc.protocol.evaluate("_LD.dismissUIAndCleanupState()");
Copy link
Member

Choose a reason for hiding this comment

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

closeLiveEditUI or some other better name for this?

*/
function _downloadImageToPhoenixAssets(message, filename, extnName, phoenixAssetsDir) {
getUniqueFilename(phoenixAssetsDir.fullPath, filename, extnName).then((uniqueFilename) => {
function _showFolderSelectionDialog(message) {
Copy link
Member

Choose a reason for hiding this comment

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

  1. Show the top level dir contents first instead of just showing blank when dialog comes up
  2. not immediately needed, but note: move this as a src/widgets to a core component library. Given a div, the widget can render this ui. This is very reusable. Give optional support to for files as well- can reuse in ai panel for file additions.

}

disableHoverListeners();
_hoverLockTimer = setTimeout(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Could this be the root cause of the issue we discussed earlier- ie, after clicking any item, the hover highlights wont come up for a brief time.

...updates,
expires: Date.now() + CACHE_EXPIRY_TIME
};
window.localStorage.setItem('imageGalleryCache', JSON.stringify(newData));
Copy link
Member

Choose a reason for hiding this comment

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

test behavior when local storage is full. will image gallery stop working? If local storage is full, then the image gallery will break?

raise a metrics with live preview localStorage Full so that we can observer this event happening.

const allElements = document.querySelectorAll('[data-brackets-id]');
allElements.forEach(el => el.setAttribute("draggable", false));
this.element.setAttribute("draggable", true);
allElements.forEach(el => el.setAttribute("draggable", "false"));
Copy link
Member

Choose a reason for hiding this comment

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

string boolean?

@abose abose merged commit e04bc73 into main Oct 25, 2025
17 of 19 checks passed
@abose abose deleted the img-fix branch October 25, 2025 02:32
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