feat: extend web tracking and integration controls

This commit is contained in:
kris
2026-03-22 14:13:10 +08:00
parent dab444a83c
commit 652f0c9f79
4 changed files with 683 additions and 55 deletions

View File

@@ -503,6 +503,28 @@ select {
transform: translateY(-1px);
}
.btn.is-disabled {
cursor: not-allowed;
opacity: 0.62;
box-shadow: none;
transform: none;
background: linear-gradient(180deg, #f4f7fb 0%, #e9eff7 100%);
color: var(--muted);
border: 1px solid var(--line);
}
.btn.is-disabled:hover {
transform: none;
}
.btn.is-disabled,
.btn[aria-disabled="true"] {
cursor: not-allowed;
opacity: 0.68;
transform: none;
box-shadow: none;
}
.layout-grid {
display: grid;
gap: 18px;
@@ -676,10 +698,153 @@ select {
color: #b24c4c;
}
.tag-disabled {
cursor: not-allowed;
opacity: 0.72;
background: #f3f6fa;
border-color: var(--line-strong);
color: var(--muted);
}
.clickable-tag {
cursor: pointer;
}
.integration-panel {
display: grid;
gap: 14px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 100%);
}
.integration-panel-compact .integration-grid {
margin-top: 12px;
}
.integration-summary {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-radius: 18px;
border: 1px solid var(--line);
background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}
.integration-summary strong {
display: block;
font-size: 16px;
}
.integration-summary p {
margin: 8px 0 0;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
}
.integration-summary.green {
border-color: rgba(45, 181, 132, 0.2);
background: linear-gradient(180deg, rgba(45, 181, 132, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}
.integration-summary.orange {
border-color: rgba(242, 154, 56, 0.24);
background: linear-gradient(180deg, rgba(242, 154, 56, 0.13) 0%, rgba(255, 255, 255, 0.96) 100%);
}
.integration-summary.red {
border-color: rgba(228, 103, 103, 0.24);
background: linear-gradient(180deg, rgba(228, 103, 103, 0.13) 0%, rgba(255, 255, 255, 0.97) 100%);
}
.integration-summary.blue {
border-color: rgba(79, 143, 238, 0.18);
background: linear-gradient(180deg, rgba(79, 143, 238, 0.11) 0%, rgba(255, 255, 255, 0.97) 100%);
}
.integration-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: flex-end;
}
.integration-highlights {
margin-top: 12px;
}
.integration-grid {
gap: 14px;
align-items: stretch;
}
.integration-card {
padding: 15px;
border-radius: 18px;
border: 1px solid var(--line);
background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
box-shadow: var(--shadow-soft);
}
.integration-card.green {
border-color: rgba(45, 181, 132, 0.18);
}
.integration-card.orange {
border-color: rgba(242, 154, 56, 0.18);
}
.integration-card.red {
border-color: rgba(228, 103, 103, 0.2);
}
.integration-card.blue {
border-color: rgba(79, 143, 238, 0.18);
}
.integration-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.integration-card-head h4 {
margin: 0 0 4px;
}
.integration-card-head p {
margin: 0;
color: var(--muted);
font-size: 11px;
}
.integration-note {
margin-top: 12px;
color: var(--text);
font-size: 12px;
line-height: 1.5;
}
.integration-url {
margin-top: 10px;
padding: 9px 11px;
border-radius: 12px;
background: var(--blue-50);
border: 1px solid rgba(106, 164, 255, 0.14);
color: var(--muted);
font-size: 11px;
line-height: 1.45;
word-break: break-all;
}
.automation-guard-panel {
display: grid;
gap: 12px;
}
.mobile-only {
display: none;
}
@@ -1300,6 +1465,20 @@ tbody tr:hover {
min-width: 0;
}
.integration-summary {
flex-direction: column;
align-items: flex-start;
}
.integration-actions {
width: 100%;
}
.integration-actions .btn {
flex: 1 1 calc(50% - 10px);
min-width: 0;
}
.grid-4,
.grid-5,
.mini-grid,
@@ -1328,6 +1507,20 @@ tbody tr:hover {
padding: 14px;
}
.integration-summary {
flex-direction: column;
}
.integration-actions {
width: 100%;
justify-content: stretch;
}
.integration-actions .btn {
flex: 1 1 calc(50% - 5px);
min-width: 0;
}
.task-meta,
.entity-meta,
.row-meta,
@@ -1527,6 +1720,10 @@ tbody tr:hover {
text-align: center;
}
.integration-card-head {
flex-direction: column;
}
.task-item.compact,
.review-card.compact {
padding: 12px;