gmal-scope-builder/frontend/src/pages/ProjectView.css
DJP 668ea44ea2 Client tier mapping + GMAL complexity variant expansion
- Tier mapping on projects: configurable label→complexity mapping
  - Presets: A/B/C, 1/2/3, Gold/Silver/Bronze
  - Stored as JSON on project.tier_mapping
- ClientAsset.client_tier field for tracking which tier an asset belongs to
- GMAL family endpoint: GET /gmal/assets/{id}/family returns all complexity variants
  - Looks up by asset_name (NOT by GMAL number increment)
  - Verified: families share asset_name across non-sequential GMAL IDs
- Expand to Tiers: POST /projects/{id}/expand-tiers
  - Splits each matched asset into N tier variants (one per tier)
  - Finds correct GMAL variant by asset_name + complexity_level query
  - Creates new ClientAsset + Match per tier with correct GMAL
  - Removes original un-tiered asset after expansion
- Frontend: tier preset buttons + expand button on Match Review tab
- Tier tags shown with label → complexity mapping

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 15:02:45 -04:00

878 lines
15 KiB
CSS

.project-view {}
.pv-header {
margin-bottom: 24px;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
}
.back-link {
font-size: 12px;
color: var(--color-primary) !important;
font-weight: 500;
}
.pv-title {
font-size: 26px;
font-weight: 700;
margin: 4px 0 8px;
letter-spacing: -0.03em;
color: #fff;
}
.pv-meta {
display: flex;
gap: 12px;
align-items: center;
font-size: 13px;
}
.pv-client {
color: var(--color-text-secondary);
}
.pv-model {
color: var(--color-text-muted);
font-size: 12px;
}
.pv-cost {
color: var(--color-primary);
font-size: 12px;
font-weight: 600;
}
.tabs {
display: flex;
gap: 2px;
margin-bottom: 24px;
border-bottom: 1px solid var(--color-border);
}
.tab {
padding: 10px 18px;
background: none;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
font-weight: 500;
font-size: 13px;
color: var(--color-text-muted);
transition: all 0.15s;
}
.tab:hover {
color: var(--color-text-secondary);
}
.tab-active {
color: #fff;
border-bottom-color: var(--color-primary);
}
.tab-content {}
/* Upload */
.upload-zone {
border: 2px dashed var(--color-border);
border-radius: var(--radius-lg);
padding: 48px 32px;
text-align: center;
background: var(--color-bg-card);
transition: border-color 0.15s;
}
.upload-zone:hover {
border-color: var(--color-text-muted);
}
.upload-active {
border-color: var(--color-primary);
background: rgba(255, 196, 7, 0.03);
}
.upload-spinner {
width: 36px;
height: 36px;
border: 3px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 16px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.upload-stage {
color: var(--color-primary);
font-size: 14px;
font-weight: 600;
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.upload-icon {
color: var(--color-text-muted);
margin-bottom: 16px;
}
.upload-title {
font-weight: 600;
font-size: 15px;
color: #fff;
margin-bottom: 6px;
}
.upload-desc {
color: var(--color-text-secondary);
font-size: 13px;
margin-bottom: 20px;
}
.upload-btn {
cursor: pointer;
}
.upload-file {
margin-top: 14px;
color: var(--color-text-muted);
font-size: 12px;
}
.assets-section {
margin-top: 28px;
}
.section-title {
font-size: 15px;
font-weight: 600;
margin-bottom: 14px;
color: #fff;
}
.asset-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.asset-item {
background: var(--color-bg-card);
padding: 14px 18px;
border-radius: var(--radius);
border: 1px solid var(--color-border);
}
.asset-name {
font-weight: 500;
color: #fff;
font-size: 13px;
}
.asset-desc {
color: var(--color-text-secondary);
font-size: 12px;
margin-top: 4px;
line-height: 1.5;
}
.asset-vol {
color: var(--color-text-muted);
font-size: 11px;
margin-top: 6px;
}
/* Matches */
.match-actions {
display: flex;
gap: 10px;
margin-bottom: 24px;
}
.match-group {
background: var(--color-bg-card);
border-radius: var(--radius-lg);
border: 1px solid var(--color-border);
margin-bottom: 14px;
overflow: hidden;
}
.match-group-header {
padding: 12px 18px;
background: rgba(255,255,255,0.02);
border-bottom: 1px solid var(--color-border);
display: flex;
justify-content: space-between;
align-items: center;
}
.match-asset-info {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
flex: 1;
}
.match-asset-name-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.match-asset-name {
font-weight: 600;
font-size: 13px;
color: #fff;
}
.match-selected-summary {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--color-text-secondary);
}
.conf-badge-sm {
padding: 1px 6px;
border-radius: 10px;
font-size: 10px;
font-weight: 700;
color: #fff;
}
span.conf-badge-sm.conf-exact { background: var(--color-success); }
span.conf-badge-sm.conf-close { background: var(--color-warning); color: #000; }
span.conf-badge-sm.conf-multiple { background: var(--color-primary); color: #000; }
span.conf-badge-sm.conf-none { background: var(--color-danger); }
.match-expand-hint {
font-size: 10px;
color: var(--color-text-muted);
font-style: italic;
}
.match-group-collapsed .match-group-header {
border-bottom: none;
}
.match-asset-desc {
font-size: 12px;
color: var(--color-text-secondary);
line-height: 1.4;
}
.match-asset-vol {
color: var(--color-text-muted);
font-size: 12px;
flex-shrink: 0;
}
.match-empty {
padding: 20px 18px;
color: var(--color-text-muted);
font-size: 13px;
}
.match-card {
display: flex;
border-bottom: 1px solid var(--color-border-light);
}
.match-card:last-child {
border-bottom: none;
}
.match-selected {
background: rgba(34, 197, 94, 0.04);
}
.match-card-accent {
width: 4px;
flex-shrink: 0;
}
.conf-exact { background: var(--color-success); }
.conf-close { background: var(--color-warning); }
.conf-multiple { background: var(--color-info); }
.conf-none { background: var(--color-danger); }
.match-card-body {
flex: 1;
padding: 12px 18px;
}
.match-card-top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.match-gmal-info {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.match-gmal-id {
font-weight: 700;
font-size: 13px;
color: var(--color-primary);
flex-shrink: 0;
}
.match-gmal-name {
color: var(--color-text-secondary);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.match-card-actions {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.conf-badge {
padding: 3px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
color: #fff;
}
span.conf-exact { background: var(--color-success); }
span.conf-close { background: var(--color-warning); color: #000; }
span.conf-multiple { background: var(--color-info); color: #000; }
span.conf-none { background: var(--color-danger); }
.btn-select {
background: transparent;
color: var(--color-primary);
padding: 4px 12px;
border-radius: 6px;
border: 1px solid var(--color-primary);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.btn-select:hover {
background: var(--color-primary-bg);
}
.selected-label {
color: var(--color-success);
font-weight: 600;
font-size: 12px;
}
.match-reasoning {
font-size: 12px;
color: var(--color-text-secondary);
margin-top: 8px;
line-height: 1.5;
}
.match-caveat {
font-size: 12px;
color: var(--color-warning);
margin-top: 6px;
background: var(--color-warning-bg);
padding: 8px 12px;
border-radius: 6px;
line-height: 1.5;
}
/* Ratecard */
.rc-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}
.rc-stats {
display: flex;
align-items: center;
gap: 16px;
}
.rc-total {
font-weight: 700;
font-size: 16px;
color: #fff;
}
.rc-assets {
color: var(--color-text-secondary);
font-size: 13px;
}
.rc-exports {
display: flex;
gap: 8px;
}
.table-wrap {
background: var(--color-bg-card);
border-radius: var(--radius-lg);
border: 1px solid var(--color-border);
overflow: auto;
}
.rc-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.rc-table th {
padding: 10px 14px;
text-align: left;
background: rgba(255,255,255,0.03);
border-bottom: 1px solid var(--color-border);
font-weight: 600;
font-size: 11px;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.rc-table td {
padding: 8px 14px;
border-bottom: 1px solid var(--color-border-light);
color: var(--color-text-secondary);
}
.rc-table tr:hover td {
background: rgba(255,255,255,0.02);
}
.td-discipline {
color: var(--color-text-muted) !important;
font-size: 11px;
}
.td-gmal {
color: var(--color-primary) !important;
font-weight: 600;
font-size: 11px;
}
.td-total {
color: #fff !important;
font-weight: 600;
}
/* Brief Analysis */
.analysis-input-section {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 24px;
}
.brief-textarea {
min-height: 180px;
resize: vertical;
font-size: 13px;
line-height: 1.6;
}
.analysis-content {}
.analysis-section {
margin-bottom: 18px;
}
.analysis-label {
font-size: 11px;
font-weight: 600;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 6px;
}
.analysis-text {
font-size: 13px;
color: var(--color-text);
line-height: 1.6;
}
.analysis-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-bottom: 18px;
}
.analysis-row {
display: flex;
gap: 24px;
margin-bottom: 18px;
}
.analysis-list {
list-style: none;
padding: 0;
}
.analysis-list li {
font-size: 13px;
color: var(--color-text-secondary);
padding: 3px 0;
padding-left: 14px;
position: relative;
}
.analysis-list li::before {
content: '';
position: absolute;
left: 0;
top: 10px;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--color-primary);
}
.analysis-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.analysis-tag {
font-size: 12px;
padding: 3px 10px;
border-radius: 6px;
background: rgba(255,255,255,0.06);
color: var(--color-text-secondary);
}
.analysis-complexity {
font-size: 13px;
font-weight: 700;
padding: 4px 14px;
border-radius: 6px;
display: inline-block;
}
.analysis-complexity-low { background: var(--color-success-bg); color: var(--color-success); }
.analysis-complexity-medium { background: var(--color-warning-bg); color: var(--color-warning); }
.analysis-complexity-high { background: var(--color-danger-bg); color: var(--color-danger); }
.discovery-questions {
display: flex;
flex-direction: column;
gap: 10px;
}
.discovery-q {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 12px 14px;
border-left: 4px solid;
}
.discovery-red { border-left-color: var(--color-danger); }
.discovery-amber { border-left-color: var(--color-warning); }
.discovery-green { border-left-color: var(--color-success); }
.q-priority {
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 4px;
margin-right: 8px;
}
.q-red { background: var(--color-danger-bg); color: var(--color-danger); }
.q-amber { background: var(--color-warning-bg); color: var(--color-warning); }
.q-green { background: var(--color-success-bg); color: var(--color-success); }
.q-category {
font-size: 11px;
color: var(--color-text-muted);
font-weight: 600;
}
.q-text {
font-size: 13px;
color: var(--color-text);
margin-top: 6px;
line-height: 1.5;
}
.q-rationale {
font-size: 12px;
color: var(--color-text-muted);
margin-top: 4px;
font-style: italic;
}
/* Tier Mapping */
.tier-mapping-box {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 14px 18px;
margin-bottom: 12px;
}
.tier-mapping-header {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.tier-tags {
display: flex;
gap: 8px;
margin-top: 10px;
}
.tier-tag {
font-size: 12px;
padding: 4px 12px;
border-radius: 6px;
background: rgba(255, 196, 7, 0.08);
border: 1px solid rgba(255, 196, 7, 0.2);
color: var(--color-text-secondary);
}
.tier-tag strong {
color: var(--color-primary);
}
/* Refine Chat */
.refine-box {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 14px;
margin-bottom: 16px;
}
.refine-log {
max-height: 120px;
overflow: auto;
margin-bottom: 10px;
font-size: 12px;
}
.refine-hint {
color: var(--color-text-muted);
font-style: italic;
font-size: 12px;
}
.refine-user {
color: var(--color-primary);
font-weight: 600;
padding: 2px 0;
}
.refine-system {
color: var(--color-text-secondary);
padding: 2px 0;
}
.refine-input-row {
display: flex;
gap: 8px;
}
.refine-input {
flex: 1;
}
.text-right { text-align: right; }
.text-center { text-align: center; }
/* Efficiency Controls */
.efficiency-controls {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 16px 20px;
margin-bottom: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.efficiency-row {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}
.efficiency-label {
font-size: 12px;
font-weight: 600;
color: var(--color-text-secondary);
white-space: nowrap;
}
.efficiency-buttons {
display: flex;
gap: 4px;
}
.eff-btn {
padding: 5px 12px;
border-radius: 6px;
border: 1px solid var(--color-border);
background: transparent;
color: var(--color-text-secondary);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
font-family: var(--font-sans);
}
.eff-btn:hover {
border-color: var(--color-text-muted);
color: var(--color-text);
}
.eff-btn-active {
background: var(--color-primary);
border-color: var(--color-primary);
color: #000;
}
.eff-btn-selected {
background: var(--color-success-bg);
border-color: var(--color-success);
color: var(--color-success);
}
.discipline-rates {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.disc-rate-tag {
font-size: 11px;
color: var(--color-text-secondary);
background: rgba(255,255,255,0.05);
padding: 2px 8px;
border-radius: 4px;
}
.disc-rate-tag strong {
color: var(--color-primary);
}
.td-eff-pct {
color: var(--color-primary) !important;
font-weight: 600;
font-size: 11px;
}
/* Team Shape */
.team-stat-highlight {
border-color: var(--color-primary) !important;
background: rgba(255, 196, 7, 0.05);
}
.team-stat-highlight .team-stat-value {
color: var(--color-primary);
}
.team-stat-saved .team-stat-value {
color: var(--color-success);
}
.team-summary {
display: flex;
gap: 14px;
margin-bottom: 20px;
}
.team-stat {
background: var(--color-bg-card);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 16px 20px;
flex: 1;
text-align: center;
}
.team-stat-value {
font-size: 24px;
font-weight: 700;
color: #fff;
letter-spacing: -0.03em;
}
.team-stat-label {
font-size: 11px;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 4px;
}
.disc-row td {
background: rgba(255,255,255,0.03) !important;
}
.td-disc-header {
font-weight: 700 !important;
color: var(--color-text) !important;
font-size: 12px;
padding: 10px 14px !important;
border-bottom: 1px solid var(--color-border) !important;
}
.programme-row td {
background: rgba(255, 196, 7, 0.04);
}
.td-programme {
color: var(--color-primary) !important;
font-weight: 600;
font-size: 11px;
}
.td-delivery {
color: var(--color-text-muted) !important;
font-size: 11px;
}
.td-fte-highlight {
color: var(--color-success) !important;
font-weight: 700;
}