Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ jobs:
echo "major=$MAJOR" >> "$GITHUB_OUTPUT"
echo "minor=$MINOR" >> "$GITHUB_OUTPUT"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -234,6 +237,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
3 changes: 2 additions & 1 deletion ui/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
dist
.angular
test-results
src/app/api-client
src/app/api-client
src/app/models/generated
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"typescript-eslint": "8.50.1",
"vitest": "^4.0.8"
}
}
}
10 changes: 7 additions & 3 deletions ui/scripts/setup-api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ if (fs.existsSync(sourceFile)) {
// Check if openapi.json exists
const openapiPath = path.join(uiRoot, 'openapi.json');
if (!fs.existsSync(openapiPath)) {
console.warn(`⚠ Warning: openapi.json not found. This is expected if the Rust backend hasn't been built yet.`);
console.warn(`⚠ Run 'cargo build' in the root directory to generate the OpenAPI spec, then run 'npm install' again in the ui directory.`);
console.warn(
`⚠ Warning: openapi.json not found. This is expected if the Rust backend hasn't been built yet.`,
);
console.warn(
`⚠ Run 'cargo build' in the root directory to generate the OpenAPI spec, then run 'npm install' again in the ui directory.`,
);
process.exit(0);
}

Expand All @@ -41,7 +45,7 @@ const dockerCmd = `docker run --rm -v "${cwd}:/local" openapitools/openapi-gener

const result = spawnSync(dockerCmd, {
shell: true,
stdio: 'inherit'
stdio: 'inherit',
});

process.exit(result.status);
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
</p>
<mat-form-field appearance="outline" class="full-width">
<mat-label>File URL</mat-label>
<input
matInput
[(ngModel)]="fileUrl"
placeholder="https://example.com/flags.flagd.json"
/>
<input matInput [(ngModel)]="fileUrl" placeholder="https://example.com/flags.flagd.json" />
</mat-form-field>
<div class="sample-links">
<span class="sample-links-label">Examples from flagd samples:</span>
Expand Down Expand Up @@ -85,9 +81,7 @@
<div class="loading-message" [hidden]="!backendLoading">Discovering backend files…</div>
<div class="error-message" [hidden]="!backendError">{{ backendError }}</div>
<div class="discovered" [hidden]="!discoveredFiles.length">
<span class="discovered-label"
>Discovered {{ discoveredFiles.length }} flag file(s):</span
>
<span class="discovered-label">Discovered {{ discoveredFiles.length }} flag file(s):</span>
<ul>
@for (f of discoveredFiles; track f) {
<li>{{ f }}</li>
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/components/welcome/welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ export class WelcomeComponent {
// Form actions already navigate away via store/router
}
}

Loading
Loading