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
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,15 @@ updates:
groups:
frontend:
update-types: [minor, patch]
ignore:
# TypeScript 7 (the native compiler) drops the JS compiler API that
# openapi-typescript uses to generate src/types/api.ts; revisit once
# openapi-typescript supports it
- dependency-name: typescript
update-types: ["version-update:semver-major"]
# Node's types should match the Node version the app runs on (CI and
# the Docker image use Node 22), not the newest Node release
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
commit-message:
prefix: chore(frontend)
5 changes: 4 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="theme-color" content="#2563eb" />
<meta name="description" content="Capture, assign and track sales leads through a validated pipeline." />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
<title>Lead Management</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added frontend/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion frontend/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions frontend/public/icons.svg

This file was deleted.

9 changes: 5 additions & 4 deletions frontend/src/pages/leads/LeadListPage.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { screen, waitFor, within } from "@testing-library/react"
import userEvent from "@testing-library/user-event"
import { AxiosError } from "axios"
import type { AxiosResponse } from "axios"
import type { AxiosRequestConfig, AxiosResponse } from "axios"
import { describe, expect, it, vi } from "vitest"

import api from "../../api/axios"
Expand All @@ -15,9 +15,10 @@ function renderList(url = "/leads") {

// Fake paginated endpoint over `total` leads, 20 per page, mirroring DRF
function paginatedLeads(total: number) {
return vi.spyOn(api, "get").mockImplementation((_url: string, config?: { params?: Record<string, number> }) => {
const page = config?.params?.page ?? 1
const size = config?.params?.page_size ?? 20
return vi.spyOn(api, "get").mockImplementation((_url: string, config?: AxiosRequestConfig) => {
const params = config?.params as { page?: number; page_size?: number } | undefined
const page = params?.page ?? 1
const size = params?.page_size ?? 20
const pages = Math.max(1, Math.ceil(total / size))

if (page > pages) {
Expand Down