Skip to content

Commit 46a0f09

Browse files
authored
Merge pull request #443 from dreamfactorysoftware/claude-first-steps
Open Test API Authentication by default on API Docs
2 parents 8f9086a + 04bab14 commit 46a0f09

File tree

5 files changed

+29
-19
lines changed

5 files changed

+29
-19
lines changed

src/app/adf-home/df-dashboard/df-dashboard-card/df-dashboard-card.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<div class="card-body">
2121
<h3 class="card-title">{{ title }}</h3>
2222
<div class="card-value" *ngIf="!isZero">{{ value }}</div>
23-
<div class="card-value zero-state-cta" *ngIf="isZero">{{ zeroStateText }}</div>
23+
<div class="card-value zero-state-cta" *ngIf="isZero">
24+
{{ zeroStateText }}
25+
</div>
2426
<p class="card-subtitle" *ngIf="subtitle && !isZero">{{ subtitle }}</p>
2527
<ng-content></ng-content>
2628
</div>

src/app/adf-home/df-dashboard/df-dashboard-card/df-dashboard-card.component.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,24 +178,24 @@
178178

179179
.icon-container {
180180
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
181-
181+
182182
// Keep original colors for each icon type
183183
&.icon-primary {
184184
background: linear-gradient(135deg, #7f11e0 0%, #5c239a 100%);
185185
}
186-
186+
187187
&.icon-success {
188188
background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
189189
}
190-
190+
191191
&.icon-info {
192192
background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
193193
}
194194
}
195195

196196
.card-value.zero-state-cta {
197197
position: relative;
198-
198+
199199
&::after {
200200
content: '';
201201
position: absolute;
@@ -227,7 +227,7 @@
227227

228228
.card-value.zero-state-cta {
229229
transform: translateX(-5px);
230-
230+
231231
&::after {
232232
opacity: 1;
233233
right: -30px;
@@ -312,4 +312,4 @@
312312
color: #aaa;
313313
background: rgba(255, 255, 255, 0.04);
314314
}
315-
}
315+
}

src/app/shared/components/df-api-tester/df-api-tester.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-expansion-panel *ngIf="availableEndpoints.length > 0">
1+
<mat-expansion-panel *ngIf="availableEndpoints.length > 0" expanded>
22
<mat-expansion-panel-header>
33
<mat-panel-title style="font-size: 18px">
44
Test API Authentication

src/app/shared/components/df-celebration-dialog/df-celebration-dialog.component.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ <h4 class="step-title">{{ step.title | transloco }}</h4>
6060
</div>
6161
</div>
6262

63-
6463
<!-- API Connection Details -->
6564
<div
6665
class="api-connection-section"
6766
*ngIf="data.apiKey && allStepsRevealed"
6867
[@slideUp]>
69-
7068
<!-- Example Endpoint -->
7169
<div class="endpoint-preview">
7270
<div class="endpoint-label">
@@ -75,7 +73,9 @@ <h4 class="step-title">{{ step.title | transloco }}</h4>
7573
</div>
7674
<div class="endpoint-display">
7775
<code>{{ baseUrl }}/api/v2/{{ data.serviceName }}/_table</code>
78-
<span class="endpoint-hint">{{ 'services.celebration.endpointHint' | transloco }}</span>
76+
<span class="endpoint-hint">{{
77+
'services.celebration.endpointHint' | transloco
78+
}}</span>
7979
</div>
8080
</div>
8181

@@ -90,7 +90,11 @@ <h4 class="step-title">{{ step.title | transloco }}</h4>
9090
<button
9191
mat-icon-button
9292
(click)="copyApiKey()"
93-
[matTooltip]="apiKeyCopied ? ('services.celebration.keyCopied' | transloco) : ('services.celebration.copyKey' | transloco)">
93+
[matTooltip]="
94+
apiKeyCopied
95+
? ('services.celebration.keyCopied' | transloco)
96+
: ('services.celebration.copyKey' | transloco)
97+
">
9498
<fa-icon [icon]="apiKeyCopied ? faCheck : faCopy"></fa-icon>
9599
</button>
96100
</div>

src/app/shared/components/df-celebration-dialog/df-celebration-dialog.component.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,20 +181,20 @@ $df-purple-palette: mat.define-palette(theme.$df-purple-palette);
181181
overflow-x: hidden;
182182
flex: 1;
183183
max-height: calc(85vh - 40px);
184-
184+
185185
/* Custom scrollbar */
186186
&::-webkit-scrollbar {
187187
width: 6px;
188188
}
189-
189+
190190
&::-webkit-scrollbar-track {
191191
background: rgba(127, 17, 224, 0.05);
192192
}
193-
193+
194194
&::-webkit-scrollbar-thumb {
195195
background: rgba(127, 17, 224, 0.2);
196196
border-radius: 3px;
197-
197+
198198
&:hover {
199199
background: rgba(127, 17, 224, 0.3);
200200
}
@@ -478,7 +478,7 @@ $df-purple-palette: mat.define-palette(theme.$df-purple-palette);
478478

479479
button {
480480
transition: all 0.2s ease;
481-
481+
482482
fa-icon {
483483
font-size: 16px;
484484
color: #666;
@@ -540,7 +540,7 @@ $df-purple-palette: mat.define-palette(theme.$df-purple-palette);
540540
.explore-later-button {
541541
font-size: 14px;
542542
color: #666;
543-
543+
544544
&:hover {
545545
background: rgba(0, 0, 0, 0.04);
546546
}
@@ -617,7 +617,11 @@ $df-purple-palette: mat.define-palette(theme.$df-purple-palette);
617617
}
618618

619619
.api-connection-section {
620-
background: linear-gradient(135deg, rgba(127, 17, 224, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
620+
background: linear-gradient(
621+
135deg,
622+
rgba(127, 17, 224, 0.05) 0%,
623+
rgba(255, 255, 255, 0.03) 100%
624+
);
621625
border-color: rgba(127, 17, 224, 0.2);
622626

623627
code {

0 commit comments

Comments
 (0)