feat: blaaa
This commit is contained in:
+105
-119
@@ -176,7 +176,12 @@
|
|||||||
.workspace-grid {
|
.workspace-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 18px;
|
gap: 18px;
|
||||||
grid-template-columns: 320px minmax(0, 1fr);
|
}
|
||||||
|
|
||||||
|
.primary-row {
|
||||||
|
display: grid;
|
||||||
|
gap: 18px;
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,17 +255,65 @@
|
|||||||
|
|
||||||
.native-select-wrap {
|
.native-select-wrap {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
border: 1px solid rgba(25, 54, 61, 0.14);
|
||||||
|
border-radius: 10px;
|
||||||
|
background:
|
||||||
|
linear-gradient(
|
||||||
|
180deg,
|
||||||
|
rgba(255, 255, 255, 0.98) 0%,
|
||||||
|
rgba(247, 243, 236, 0.94) 100%
|
||||||
|
);
|
||||||
|
box-shadow:
|
||||||
|
inset 0 1px 0 rgba(255, 255, 255, 0.9),
|
||||||
|
0 6px 18px rgba(20, 30, 36, 0.04);
|
||||||
|
overflow: hidden;
|
||||||
|
transition:
|
||||||
|
border-color 0.18s ease,
|
||||||
|
box-shadow 0.18s ease,
|
||||||
|
transform 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.native-select-wrap::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 6px;
|
||||||
|
right: 6px;
|
||||||
|
bottom: 6px;
|
||||||
|
width: 38px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: rgba(25, 54, 61, 0.06);
|
||||||
|
border: 1px solid rgba(25, 54, 61, 0.08);
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-select-wrap::after {
|
.native-select-wrap::after {
|
||||||
content: '▾';
|
content: 'unfold_more';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 14px;
|
right: 13px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
font-family: 'Material Icons';
|
||||||
|
font-feature-settings: 'liga';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
color: var(--studio-muted);
|
color: var(--studio-muted);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
font-size: 0.95rem;
|
font-size: 1.2rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.native-select-wrap:hover {
|
||||||
|
border-color: rgba(25, 54, 61, 0.2);
|
||||||
|
box-shadow:
|
||||||
|
inset 0 1px 0 rgba(255, 255, 255, 0.9),
|
||||||
|
0 10px 24px rgba(20, 30, 36, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.native-select-wrap:focus-within {
|
||||||
|
border-color: rgba(25, 54, 61, 0.24);
|
||||||
|
box-shadow:
|
||||||
|
0 0 0 3px rgba(25, 54, 61, 0.12),
|
||||||
|
inset 0 1px 0 rgba(255, 255, 255, 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-select-label {
|
.native-select-label {
|
||||||
@@ -277,20 +330,26 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
border: 1px solid rgba(25, 54, 61, 0.14);
|
-moz-appearance: none;
|
||||||
border-radius: 10px;
|
border: 0;
|
||||||
background: rgba(255, 255, 255, 0.92);
|
border-radius: 0;
|
||||||
|
background: transparent;
|
||||||
|
background-image: none;
|
||||||
color: var(--studio-ink);
|
color: var(--studio-ink);
|
||||||
padding: 14px 42px 14px 14px;
|
padding: 14px 54px 14px 14px;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
line-height: 1.35;
|
line-height: 1.35;
|
||||||
box-shadow: inset 0 1px 1px rgba(20, 30, 36, 0.04);
|
box-shadow: none;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-select:focus {
|
.native-select:focus {
|
||||||
outline: 2px solid rgba(25, 54, 61, 0.18);
|
outline: none;
|
||||||
border-color: rgba(25, 54, 61, 0.22);
|
}
|
||||||
|
|
||||||
|
.native-select::-ms-expand {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-input,
|
.native-input,
|
||||||
@@ -874,12 +933,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1320px) {
|
|
||||||
.workspace-grid {
|
|
||||||
grid-template-columns: 300px minmax(0, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 1080px) {
|
@media (max-width: 1080px) {
|
||||||
.hero-row {
|
.hero-row {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -893,7 +946,7 @@
|
|||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspace-grid {
|
.primary-row {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -967,6 +1020,24 @@
|
|||||||
label="Load Both Files"
|
label="Load Both Files"
|
||||||
@click="openBulkInput"
|
@click="openBulkInput"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
|
<q-btn
|
||||||
|
color="primary"
|
||||||
|
outline
|
||||||
|
label="Open Current File"
|
||||||
|
@click="openCurrentFile"
|
||||||
|
></q-btn>
|
||||||
|
<q-btn
|
||||||
|
color="secondary"
|
||||||
|
outline
|
||||||
|
label="Reload Current"
|
||||||
|
@click="loadRelative(currentDataset.key)"
|
||||||
|
></q-btn>
|
||||||
|
<q-btn
|
||||||
|
color="accent"
|
||||||
|
outline
|
||||||
|
label="Open JSON Editor"
|
||||||
|
@click="editorDialog = true"
|
||||||
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1011,49 +1082,6 @@
|
|||||||
<div class="stat-value">{{ currentDataset.analysis.summary.expandedTests }}</div>
|
<div class="stat-value">{{ currentDataset.analysis.summary.expandedTests }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
|
||||||
|
|
||||||
<main class="workspace-grid">
|
|
||||||
<section class="stack">
|
|
||||||
<q-card flat class="studio-card">
|
|
||||||
<q-card-section>
|
|
||||||
<div class="section-title">
|
|
||||||
<div>
|
|
||||||
<h2>Current Dataset</h2>
|
|
||||||
<div class="section-caption">
|
|
||||||
{{ currentDatasetKindHelp }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<q-chip
|
|
||||||
dense
|
|
||||||
square
|
|
||||||
:color="currentDataset.analysis ? 'positive' : 'grey-6'"
|
|
||||||
text-color="white"
|
|
||||||
>
|
|
||||||
{{ currentDataset.analysis ? 'Loaded' : 'Waiting' }}
|
|
||||||
</q-chip>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="summary-grid">
|
|
||||||
<div class="summary-item">
|
|
||||||
<div class="summary-item-label">Fixture File</div>
|
|
||||||
<div class="summary-item-value">{{ currentDataset.fileName }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="summary-item">
|
|
||||||
<div class="summary-item-label">Fixture Path</div>
|
|
||||||
<div class="summary-item-value">{{ currentDataset.relativePath }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="summary-item">
|
|
||||||
<div class="summary-item-label">Pytest File</div>
|
|
||||||
<div class="summary-item-value">{{ currentDataset.testFile }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="summary-item">
|
|
||||||
<div class="summary-item-label">Loaded From</div>
|
|
||||||
<div class="summary-item-value">
|
|
||||||
{{ currentDataset.sourceLabel || 'Not loaded yet' }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<q-banner
|
<q-banner
|
||||||
v-if="currentDataset.loadError"
|
v-if="currentDataset.loadError"
|
||||||
@@ -1064,35 +1092,10 @@
|
|||||||
>
|
>
|
||||||
{{ currentDataset.loadError }}
|
{{ currentDataset.loadError }}
|
||||||
</q-banner>
|
</q-banner>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="pill-row q-mt-md">
|
<main class="workspace-grid">
|
||||||
<q-btn
|
<section class="primary-row">
|
||||||
size="sm"
|
|
||||||
color="primary"
|
|
||||||
outline
|
|
||||||
label="Open Current File"
|
|
||||||
@click="openCurrentFile"
|
|
||||||
></q-btn>
|
|
||||||
<q-btn
|
|
||||||
size="sm"
|
|
||||||
color="secondary"
|
|
||||||
outline
|
|
||||||
label="Reload Relative"
|
|
||||||
@click="loadRelative(currentDataset.key)"
|
|
||||||
></q-btn>
|
|
||||||
<q-btn
|
|
||||||
size="sm"
|
|
||||||
color="accent"
|
|
||||||
outline
|
|
||||||
label="Open JSON Editor"
|
|
||||||
@click="editorDialog = true"
|
|
||||||
></q-btn>
|
|
||||||
</div>
|
|
||||||
</q-card-section>
|
|
||||||
</q-card>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="stack">
|
|
||||||
<q-card flat class="studio-card">
|
<q-card flat class="studio-card">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
@@ -1125,20 +1128,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="currentFundingSource" class="q-mt-md">
|
<div v-if="currentFundingSource" class="q-mt-md">
|
||||||
<div class="pill-row q-mb-md">
|
<div v-if="currentFundingSource.skip" class="pill-row q-mb-md">
|
||||||
<q-chip dense square color="primary" text-color="white">
|
|
||||||
{{ currentFundingSource.wallet_class }}
|
|
||||||
</q-chip>
|
|
||||||
<q-chip
|
<q-chip
|
||||||
dense
|
|
||||||
square
|
|
||||||
color="grey-8"
|
|
||||||
text-color="white"
|
|
||||||
>
|
|
||||||
funding_sources.{{ currentFundingSource.name }}
|
|
||||||
</q-chip>
|
|
||||||
<q-chip
|
|
||||||
v-if="currentFundingSource.skip"
|
|
||||||
dense
|
dense
|
||||||
square
|
square
|
||||||
color="warning"
|
color="warning"
|
||||||
@@ -1281,7 +1272,7 @@
|
|||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
<q-card flat class="studio-card" v-if="currentFunction && currentFundingSource">
|
<q-card flat class="studio-card" v-if="currentDataset.analysis">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<div>
|
<div>
|
||||||
@@ -1312,7 +1303,10 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<details class="wallet-expanded-card test-expander q-mt-lg">
|
<details
|
||||||
|
v-if="currentFunction && currentFundingSource"
|
||||||
|
class="wallet-expanded-card test-expander q-mt-lg"
|
||||||
|
>
|
||||||
<summary class="wallet-expanded-header test-summary">
|
<summary class="wallet-expanded-header test-summary">
|
||||||
<div class="test-summary-copy">
|
<div class="test-summary-copy">
|
||||||
<span class="test-summary-arrow"></span>
|
<span class="test-summary-arrow"></span>
|
||||||
@@ -1491,9 +1485,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<div v-else class="empty-state q-mt-lg">
|
||||||
|
Select a funding source and function to inspect reusable mocks.
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
<q-card flat class="studio-card" v-if="currentFunction && currentFundingSource">
|
<q-card flat class="studio-card" v-if="currentFunction && currentFundingSource">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
@@ -1518,9 +1518,6 @@
|
|||||||
<h3 class="wallet-expanded-title">
|
<h3 class="wallet-expanded-title">
|
||||||
{{ testEntry.description || `Test ${testEntry.index + 1}` }}
|
{{ testEntry.description || `Test ${testEntry.index + 1}` }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="wallet-expanded-meta">
|
|
||||||
functions.{{ currentFunction.name }}.tests[{{ testEntry.index }}]
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1565,16 +1562,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section-title q-mt-lg">
|
<div class="mock-list q-mt-lg" v-if="testEntry.rawMockSets.length">
|
||||||
<div>
|
|
||||||
<h3>Test Mocks</h3>
|
|
||||||
<div class="section-caption">
|
|
||||||
Mock entries under the selected funding source for this test.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mock-list" v-if="testEntry.rawMockSets.length">
|
|
||||||
<div
|
<div
|
||||||
v-for="mockSet in testEntry.rawMockSets"
|
v-for="mockSet in testEntry.rawMockSets"
|
||||||
:key="mockSet.path"
|
:key="mockSet.path"
|
||||||
@@ -1583,7 +1571,6 @@
|
|||||||
<div class="mock-card-header">
|
<div class="mock-card-header">
|
||||||
<div>
|
<div>
|
||||||
<div class="mock-card-title">{{ mockSet.label }}</div>
|
<div class="mock-card-title">{{ mockSet.label }}</div>
|
||||||
<div class="mock-card-subtitle">{{ mockSet.path }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<q-chip dense square color="primary" text-color="white">
|
<q-chip dense square color="primary" text-color="white">
|
||||||
{{ Object.keys(mockSet.value || {}).length }} mock names
|
{{ Object.keys(mockSet.value || {}).length }} mock names
|
||||||
@@ -1613,7 +1600,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
</section>
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user