Skip to content

Commit

Permalink
Merge pull request #2526 from posit-dev/dotnomad/last-deploy-alert
Browse files Browse the repository at this point in the history
Update design for last deployment alerts
  • Loading branch information
dotNomad authored Jan 14, 2025
2 parents f8dbf93 + 3d41c96 commit bcabf8f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@
v-if="home.selectedContentRecord.deploymentError"
class="last-deployment-details last-deployment-error"
>
<span class="codicon codicon-alert"></span>
<div class="alert-border border-warning text-warning">
<span class="codicon codicon-alert" />
</div>
<TextStringWithAnchor
:message="home.selectedContentRecord?.deploymentError?.msg"
:splitOptions="ErrorMessageSplitOptions"
Expand Down Expand Up @@ -607,11 +609,17 @@ const viewContent = () => {
}

.last-deployment-error {
border: solid 2px;
border-color: gray;
padding: 5px;
display: flex;
align-items: center;
align-items: stretch;

.alert-border {
display: flex;
align-items: center;
border-right-width: 1px;
border-right-style: solid;
padding-right: 5px;
margin-right: 7px;
}
}

.error-icon {
Expand All @@ -621,7 +629,6 @@ const viewContent = () => {
.error-message {
min-width: 0;
word-wrap: break-word;
margin-left: 5px;
}

.progress-container {
Expand Down
12 changes: 12 additions & 0 deletions extensions/vscode/webviews/homeView/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,22 @@ body {
color: var(--vscode-sideBarSectionHeader-foreground);
}

.text-warning {
color: var(--vscode-list-warningForeground);
}

.border-warning {
border-color: var(--vscode-list-warningForeground);
}

.text-error {
color: var(--vscode-list-errorForeground);
}

.border-error {
border-color: var(--vscode-list-errorForeground);
}

.text-git-added {
color: var(--vscode-gitDecoration-addedResourceForeground);
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/webviews/homeView/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default defineConfig({
enabled: true,
thresholds: {
functions: 30.13,
lines: 17.48,
lines: 17.46,
branches: 44.82,
statements: 17.48,
statements: 17.46,
autoUpdate: true,
},
},
Expand Down

0 comments on commit bcabf8f

Please sign in to comment.