Skip to content
Closed
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
22 changes: 17 additions & 5 deletions .github/workflows/job_detect_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,25 @@ jobs:

# Dashboard application and its dependencies
dashboard:
- 'apps/dashboard/**'
- 'internal/ui/**'
- 'apps/dashboard/**/!(*.md|*.txt)'
- 'apps/dashboard/!(*.md|*.txt)'
- 'internal/billing/**'
- 'internal/clickhouse/**'
- 'internal/db/**'
- 'internal/encryption/**'
- 'internal/events/**'
- 'internal/hash/**'
- 'internal/icons/**'
- 'internal/id/**'
- 'internal/keys/**'
- 'internal/proto/**'
- 'internal/resend/**'
- 'internal/schema/**'
- 'internal/ui/**'
- 'internal/validation/**'
- 'internal/vercel/**'
- 'packages/error/**'
- 'packages/rbac/**'

# Agent application (Go-based)
agent:
Expand All @@ -91,9 +104,8 @@ jobs:

# Go services (API v2, Ctrl, Deploy services)
go:
- 'go/**'
- '!go/benchmarks/**'
- '!go/demo_api/**'
- 'go/!(benchmarks|demo_api)/**'
- 'go/!(benchmarks|demo_api)'

# ClickHouse schema and related
clickhouse:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/job_test_dashboard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Dashboard
on:
workflow_call:
permissions:
contents: read
jobs:
test:
name: Test Dashboard
runs-on: depot-ubuntu-24.04-4
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Setup Node
uses: ./.github/actions/setup-node
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: pnpm turbo run test --filter=@unkey/dashboard
env:
CI: 1
- name: Build
run: pnpm turbo run build --filter=@unkey/dashboard
env:
CI: 1
DATABASE_HOST: localhost:8080
DATABASE_USERNAME: unkey
DATABASE_PASSWORD: password
DATABASE_NAME: unkey
UNKEY_WORKSPACE_ID: "not-empty"
UNKEY_API_ID: "not-empty"
UNKEY_WEBHOOK_KEYS_API_ID: "not-empty"
AGENT_URL: "http://localhost:8080"
AGENT_TOKEN: "not-empty"
AUTH_PROVIDER: "workos"
WORKOS_CLIENT_ID: "client_"
WORKOS_API_KEY: "sk_test_"
WORKOS_COOKIE_PASSWORD: "IAMACOOKIEPASSWORD"
NEXT_PUBLIC_WORKOS_REDIRECT_URI: "http://localhost:3000/auth/sso-callback"
9 changes: 7 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,21 @@ jobs:
uses: ./.github/workflows/job_test_unit.yaml
build:
name: Build
if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request' && needs.detect_changes.result == 'success' && (needs.detect_changes.outputs.api == 'true' || needs.detect_changes.outputs.packages == 'true')
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && (needs.detect_changes.outputs.api == 'true' || needs.detect_changes.outputs.packages == 'true')
needs: [detect_changes]
uses: ./.github/workflows/build.yaml
test_api:
name: Test API
if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request' && needs.detect_changes.result == 'success' && (needs.detect_changes.outputs.api == 'true' || needs.detect_changes.outputs.packages == 'true')
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && (needs.detect_changes.outputs.api == 'true' || needs.detect_changes.outputs.packages == 'true')
needs: [detect_changes]
uses: ./.github/workflows/job_test_api_local.yaml
test_go_api_local:
name: Test Go API Local
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && needs.detect_changes.outputs.go == 'true'
needs: [detect_changes]
uses: ./.github/workflows/job_test_go_api_local.yaml
test_dashboard:
name: Test Dashboard
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && needs.detect_changes.outputs.dashboard == 'true'
needs: [detect_changes]
uses: ./.github/workflows/job_test_dashboard.yaml
2 changes: 1 addition & 1 deletion apps/dashboard/components/confirmation-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DEFAULT_POPOVER_PROPS = {
side: "bottom" as const,
align: "center" as const,
className:
"bg-white dark:bg-black flex flex-col items-center justify-center border-grayA-4 overflow-hidden !rounded-[10px] p-0 gap-0 min-w-[344px]",
"bg-white dark:bg-black flex flex-col items-center justify-center border-grayA-4 overflow-hidden !rounded-[10px] p-0 gap-0 min-w-[345px]",
onOpenAutoFocus: (e: Event) => e.stopPropagation(),
};

Expand Down
2 changes: 1 addition & 1 deletion go/internal/services/auditlogs/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// and querying purposes, with "unkey_mutations" serving as the standard bucket
// for most operational audit events.
const (
DEFAULT_BUCKET = "unkey_mutations"
DEFAULT_BUCKET = "unkey_mutations_s"
)

// Insert implements AuditLogService.Insert, persisting audit logs and their
Expand Down
Loading