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
32 changes: 16 additions & 16 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: awaiting triage, bug
assignees: mtbitcr

---

**Internal Bug Number:** [Internal tracking code according to the bug tracking table]

**Priority:** [Low | Medium | High] *(Please select one)*
**Priority:** [Low | Medium | High] _(Please select one)_

**Bug Type:** [Functional | Design | Both] *(Please select one)*
**Bug Type:** [Functional | Design | Both] _(Please select one)_

**Affected Component:** [Specific UI component name, e.g., "Accept Quote button"]

Expand All @@ -21,20 +20,21 @@ assignees: mtbitcr

**Expected Behavior:** [Describe what should be happening. E.g., "Clicking the Quote button should redirect the user to the "View Quotes" screen"]

**Screenshots/Videos:** [Attach screenshots or videos clearly demonstrating the bug. Annotate the screenshots to highlight the affected area. If possible, include screen recordings to show the steps to reproduce the bug.]
**Screenshots/Videos:** [Attach screenshots or videos clearly demonstrating the bug. Annotate the screenshots to highlight the affected area. If possible, include screen recordings to show the steps to reproduce the bug.]

**Environment:**

* **Device:** [Desktop | Mobile | Tablet] *(Please select one)*
* **OS:** [e.g., macOS Ventura, Windows 11, iOS 16, Android 13]
* **Browser:** [e.g., Chrome 114, Safari 16, Firefox 110, Edge 114]
* **Browser Version (if applicable):** [e.g., 114.0.5735.199]
* **Resolution (if applicable):** [e.g., 1920x1080]
* **App Version (if applicable):** [e.g., v1.2.3]
- **Device:** [Desktop | Mobile | Tablet] _(Please select one)_
- **OS:** [e.g., macOS Ventura, Windows 11, iOS 16, Android 13]
- **Browser:** [e.g., Chrome 114, Safari 16, Firefox 110, Edge 114]
- **Browser Version (if applicable):** [e.g., 114.0.5735.199]
- **Resolution (if applicable):** [e.g., 1920x1080]
- **App Version (if applicable):** [e.g., v1.2.3]

**Additional Context:** [Add any other relevant information, such as:
* Impact of the bug
* Workarounds (if any)
* Frequency of occurrence (e.g., always, sometimes, rarely)
* Related issues (if any)
* User feedback (if any)]

- Impact of the bug
- Workarounds (if any)
- Frequency of occurrence (e.g., always, sometimes, rarely)
- Related issues (if any)
- User feedback (if any)]
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: awaiting triage, enhancement, new feature
assignees: ''

assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Validate (style, lint, test, build)
runs-on: ubuntu-latest
env:
NODE_VERSION: 22
NODE_VERSION: 25

steps:
- name: Checkout code
Expand Down
95 changes: 45 additions & 50 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,33 @@ name: Deploy wildcat-dashboard-ui (Cloudflare Pages)
on:
push:
tags:
- 'v*'
- "v*"
branches:
- 'master'
- "master"
workflow_dispatch:
inputs:
environment:
description: 'target'
required: true
default: 'production'
type: choice
options:
- dev
- staging
- production

environment:
description: "target"
required: true
default: "production"
type: choice
options:
- dev
- staging
- production

jobs:

######################################################################
# ENV: dev
# CF project: wildcat-dashboard
######################################################################
######################################################################
# ENV: dev
# CF project: wildcat-dashboard
######################################################################
deploy-dev:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
concurrency:
group: 'deploy-dev-${{ github.ref_name }}'
group: "deploy-dev-${{ github.ref_name }}"
cancel-in-progress: true

# SET ENVIRONMENT
Expand All @@ -56,7 +54,7 @@ jobs:
with:
ref: ${{ github.ref }}
fetch-depth: 0

# for dev: only allow dev branch
- name: Validate correct branch on manual dispatch
run: |
Expand All @@ -71,7 +69,7 @@ jobs:
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: "npm"

- name: Install dependencies
run: npm ci
Expand All @@ -87,22 +85,21 @@ jobs:
id: deploy-dev-dispatch
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=dev --commit-message="MANUAL DISPATCH ${{ github.sha }}" --commit-hash=${{ github.sha }} --commit-dirty=true


######################################################################
# ENV: staging
# CF project: wildcat-dashboard-staging
######################################################################
######################################################################
# ENV: staging
# CF project: wildcat-dashboard-staging
######################################################################
deploy-staging:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
concurrency:
group: 'deploy-staging-${{ github.ref_name }}'
group: "deploy-staging-${{ github.ref_name }}"
cancel-in-progress: true

# SET ENVIRONMENT
Expand Down Expand Up @@ -144,7 +141,7 @@ jobs:
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: "npm"

- name: Install dependencies
run: npm ci
Expand All @@ -154,15 +151,15 @@ jobs:

##############################################################################
# Customize deployment triggers

# STAGING PREVIEW: on push, branch master
- name: Deploy ${{ github.ref_name }} to STAGING PREVIEW of ${{ env.CLOUDFLARE_PROJECT }} project
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: deploy-staging-preview-push-master
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=preview --commit-message="PREVIEW ${{ github.ref_name }}" --commit-hash=${{ github.sha }} --commit-dirty=true

# STAGING PROD: on push, with tag
Expand All @@ -171,8 +168,8 @@ jobs:
id: deploy-staging-push-tag
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=master --commit-message="${{ github.ref_name }} (TAG PUSH)" --commit-hash=${{ github.sha }} --commit-dirty=true

# STAGING PROD: on manual dispatch
Expand All @@ -181,22 +178,21 @@ jobs:
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'staging'
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=master --commit-message="${{ github.ref_name }} (DISPATCH)" --commit-hash=${{ github.sha }} --commit-dirty=true


######################################################################
# ENV: production
# CF project: wildcat-dashboard-production
######################################################################
######################################################################
# ENV: production
# CF project: wildcat-dashboard-production
######################################################################
deploy-production:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
concurrency:
group: 'deploy-production-${{ github.ref_name }}'
group: "deploy-production-${{ github.ref_name }}"
cancel-in-progress: true

# SET ENVIRONMENT
Expand Down Expand Up @@ -238,26 +234,25 @@ jobs:
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build app
run: npm run build


##############################################################################
# Customize deployment triggers

# PRODUCTION PREVIEW: on push, with tag
- name: Deploy ${{ github.ref_name }} to PRODUCTION PREVIEW of ${{ env.CLOUDFLARE_PROJECT }} project
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
id: deploy-production-preview-push-tag
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=preview --commit-message="PREVIEW ${{ github.ref_name }}" --commit-hash=${{ github.sha }} --commit-dirty=true

# PRODUCTION PROD: manual dispatch, with tag
Expand All @@ -266,6 +261,6 @@ jobs:
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'production'
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=master --commit-message="${{ github.ref_name }}" --commit-hash=${{ github.sha }} --commit-dirty=true
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=${{ env.CLOUDFLARE_PROJECT }} --branch=master --commit-message="${{ github.ref_name }}" --commit-hash=${{ github.sha }} --commit-dirty=true
70 changes: 35 additions & 35 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

env:
IMAGE_NAME: "bcr-wdc-dashboard-ui"
IMAGE_NAME: "bcr-wdc-dashboard-ui"

jobs:
build:
Expand All @@ -20,37 +20,37 @@ jobs:
packages: write

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Login to GHCR
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- id: meta
name: Metadata
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=nightly

- id: push
name: Build & push ${{ env.IMAGE_NAME }}
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}
cache-to: type=gha,mode=max,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Login to GHCR
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

- id: meta
name: Metadata
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
with:
images: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=nightly

- id: push
name: Build & push ${{ env.IMAGE_NAME }}
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}
cache-to: type=gha,mode=max,scope=${{ github.repository }}/${{ env.IMAGE_NAME }}
Loading