fmt:
    cargo fmt --all

fmt-check:
    cargo fmt --all --check

check:
    cargo check --workspace

clippy:
    cargo clippy --workspace --all-targets --all-features -- -D warnings

test:
    cargo test --workspace --all-targets

verify:
    just fmt-check
    just clippy
    just test

ui-build:
    docker build -f apps/ui/Dockerfile .

verify-ui:
    just ui-build

ui-e2e:
    cd apps/ui && npm run e2e

staging-smoke base_url:
    bash scripts/staging-smoke.sh {{base_url}}

authenticated-staging-smoke base_url:
    bash scripts/authenticated-staging-smoke.sh {{base_url}}

staging-note-block environment deploy_commit checked_by smoke_status='partial':
    bash scripts/staging-note-block.sh {{environment}} {{deploy_commit}} {{checked_by}} {{smoke_status}}
