Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,12 @@ define({
"AI_CHAT_IMAGE_LIMIT": "Maximum {0} images allowed",
"AI_CHAT_IMAGE_REMOVE": "Remove image",
"AI_CHAT_ATTACH_FILE": "Attach files",
"AI_CHAT_SCREENSHOT_TITLE": "Take Screenshot",
"AI_CHAT_SCREENSHOT_LIVE_PREVIEW": "Live Preview",
"AI_CHAT_SCREENSHOT_AREA": "Select Area",
"AI_CHAT_SCREENSHOT_FULL_EDITOR": "Full Editor",
"AI_CHAT_SCREENSHOT_CAPTURE": "Capture",
"AI_CHAT_SCREENSHOT_CANCEL": "Cancel",
"AI_CHAT_FILE_REMOVE": "Remove file",
"AI_CHAT_QUEUED": "Queued",
"AI_CHAT_QUEUED_EDIT": "Edit",
Expand Down
132 changes: 126 additions & 6 deletions src/styles/Extn-AIChatPanel.less
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,7 @@

/* ── Input area ─────────────────────────────────────────────────────── */
.ai-chat-input-area {
position: relative;
flex-shrink: 0;
padding: 6px 8px 8px 8px;

Expand Down Expand Up @@ -1862,15 +1863,21 @@
width: 16px;
height: 16px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.7);
border: 1px solid rgba(255, 255, 255, 0.2);
color: @project-panel-text-2;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.18);
color: rgba(255, 255, 255, 0.7);

Check warning on line 1868 in src/styles/Extn-AIChatPanel.less

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ0KFQyhXJTc6kWAXGFY&open=AZ0KFQyhXJTc6kWAXGFY&pullRequest=2753
font-size: 11px;
padding: 0;
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 150ms, color 150ms;

&:hover {
background: rgba(255, 255, 255, 0.22);
color: #fff;

Check warning on line 1879 in src/styles/Extn-AIChatPanel.less

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ0KFQyhXJTc6kWAXGFZ&open=AZ0KFQyhXJTc6kWAXGFZ&pullRequest=2753
}
}

&:hover .ai-image-remove {
Expand Down Expand Up @@ -1904,15 +1911,21 @@
width: 16px;
height: 16px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.7);
border: 1px solid rgba(255, 255, 255, 0.2);
color: @project-panel-text-2;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.18);
color: rgba(255, 255, 255, 0.7);

Check warning on line 1916 in src/styles/Extn-AIChatPanel.less

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ0KFQyhXJTc6kWAXGFa&open=AZ0KFQyhXJTc6kWAXGFa&pullRequest=2753
font-size: 11px;
padding: 0;
display: none;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 150ms, color 150ms;

&:hover {
background: rgba(255, 255, 255, 0.22);
color: #fff;

Check warning on line 1927 in src/styles/Extn-AIChatPanel.less

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ0KFQyhXJTc6kWAXGFb&open=AZ0KFQyhXJTc6kWAXGFb&pullRequest=2753
}
}

&:hover .ai-file-remove {
Expand Down Expand Up @@ -1968,6 +1981,30 @@
}
}

.ai-screenshot-btn {
background: none;
border: none;
color: @project-panel-text-2;
width: 28px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
align-self: stretch;
opacity: 0.5;
transition: opacity 0.15s ease, color 0.15s ease;

&:hover {
opacity: 1;
color: @project-panel-text-1;
}

i {
font-size: @sidebar-content-font-size;
}
}

.ai-send-btn {
background: none;
border: none;
Expand Down Expand Up @@ -2021,6 +2058,89 @@
font-size: @sidebar-content-font-size;
}
}

.ai-screenshot-dropup {
position: fixed;
background: @bc-ai-input-bg;
border: 1px solid @bc-ai-input-border;
border-radius: 8px;
padding: 4px 0;
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
z-index: 100;
min-width: 200px;

.ai-screenshot-option {
padding: 8px 12px;
cursor: pointer;
color: @project-panel-text-1;
font-size: @sidebar-content-font-size;
white-space: nowrap;
display: flex;
align-items: center;
gap: 8px;

&:hover {
background: rgba(255, 255, 255, 0.08);
}

i {
width: 16px;
text-align: center;
opacity: 0.7;
}
}
}
}

/* ── Screenshot area selection overlay ─────────────────────────────── */
.ai-screenshot-overlay {
position: fixed;
z-index: 10000;
cursor: crosshair;

.ai-screenshot-canvas {
display: block;
width: 100%;
height: 100%;
}

.ai-screenshot-toolbar {
position: absolute;
display: flex;
gap: 8px;
padding: 6px;
background: rgba(30, 30, 30, 0.9);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

button {
border: none;
border-radius: 4px;
padding: 4px 12px;
cursor: pointer;
font-size: 12px;
font-family: inherit;
}

.ai-screenshot-capture-btn {
background: #4fc3f7;
color: #000;

&:hover {
background: #81d4fa;
}
}

.ai-screenshot-cancel-btn {
background: rgba(255, 255, 255, 0.12);
color: #ccc;

Check warning on line 2137 in src/styles/Extn-AIChatPanel.less

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=phcode-dev_phoenix&issues=AZ0KFQyhXJTc6kWAXGFc&open=AZ0KFQyhXJTc6kWAXGFc&pullRequest=2753

&:hover {
background: rgba(255, 255, 255, 0.2);
}
}
}
}

/* ── Unavailable / placeholder state ────────────────────────────────── */
Expand Down
2 changes: 1 addition & 1 deletion tracking-repos.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"phoenixPro": {
"commitID": "56017ed5a71d6ff22199f9826803ed0cbabaa22e"
"commitID": "e5f085888f6c875a8c0013eed9ce97491cbcb250"
}
}
Loading