Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 53b730914c | |||
| 51b4312cc0 |
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-16 - 2.6.1 - fix(platform-service-detail-view)
|
||||||
|
replace custom service log markup with dees-chart-log in the platform service detail view
|
||||||
|
|
||||||
|
- Removes bespoke log container styles and rendering logic in favor of the shared dees-chart-log component
|
||||||
|
- Normalizes log timestamps to ISO format before passing entries to the chart component
|
||||||
|
- Enables log auto-scroll, entry limits, and metrics display for service logs
|
||||||
|
|
||||||
## 2026-03-16 - 2.6.0 - feat(service-create-view)
|
## 2026-03-16 - 2.6.0 - feat(service-create-view)
|
||||||
add platform service toggles for MongoDB, S3, and ClickHouse provisioning
|
add platform service toggles for MongoDB, S3, and ClickHouse provisioning
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@serve.zone/catalog",
|
"name": "@serve.zone/catalog",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "UI component catalog for serve.zone",
|
"description": "UI component catalog for serve.zone",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/catalog',
|
name: '@serve.zone/catalog',
|
||||||
version: '2.6.0',
|
version: '2.6.1',
|
||||||
description: 'UI component catalog for serve.zone'
|
description: 'UI component catalog for serve.zone'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,56 +363,6 @@ export class SzPlatformServiceDetailView extends DeesElement {
|
|||||||
background: ${cssManager.bdTheme('#ef4444', '#ef4444')};
|
background: ${cssManager.bdTheme('#ef4444', '#ef4444')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-container {
|
|
||||||
background: ${cssManager.bdTheme('#18181b', '#09090b')};
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 12px;
|
|
||||||
max-height: 300px;
|
|
||||||
overflow-y: auto;
|
|
||||||
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-entry {
|
|
||||||
display: flex;
|
|
||||||
gap: 12px;
|
|
||||||
padding: 4px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-timestamp {
|
|
||||||
color: #71717a;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-level {
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 50px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-level.info {
|
|
||||||
color: #60a5fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-level.warn {
|
|
||||||
color: #fbbf24;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-level.error {
|
|
||||||
color: #f87171;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-level.debug {
|
|
||||||
color: #a1a1aa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.log-message {
|
|
||||||
color: #fafafa;
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
.config-item {
|
.config-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -637,30 +587,17 @@ export class SzPlatformServiceDetailView extends DeesElement {
|
|||||||
` : ''}
|
` : ''}
|
||||||
|
|
||||||
<!-- Logs -->
|
<!-- Logs -->
|
||||||
<div class="section full-width">
|
<dees-chart-log
|
||||||
<div class="section-header">
|
.label=${'Service Logs'}
|
||||||
<div class="section-title">
|
.logEntries=${this.logs.map(log => ({
|
||||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
timestamp: log.timestamp.includes('T') ? log.timestamp : new Date(log.timestamp).toISOString(),
|
||||||
<polyline points="4 17 10 11 4 5"></polyline>
|
level: log.level as 'debug' | 'info' | 'warn' | 'error',
|
||||||
<line x1="12" y1="19" x2="20" y2="19"></line>
|
message: log.message,
|
||||||
</svg>
|
}))}
|
||||||
Logs
|
.autoScroll=${true}
|
||||||
</div>
|
.maxEntries=${2000}
|
||||||
</div>
|
.showMetrics=${true}
|
||||||
<div class="section-content">
|
></dees-chart-log>
|
||||||
<div class="log-container">
|
|
||||||
${this.logs.length > 0 ? this.logs.map(log => html`
|
|
||||||
<div class="log-entry">
|
|
||||||
<span class="log-timestamp">${log.timestamp}</span>
|
|
||||||
<span class="log-level ${log.level}">${log.level}</span>
|
|
||||||
<span class="log-message">${log.message}</span>
|
|
||||||
</div>
|
|
||||||
`) : html`
|
|
||||||
<div style="color: #71717a; text-align: center; padding: 20px;">No logs available</div>
|
|
||||||
`}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user