mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-04 13:42:03 +00:00
Some checks failed
Deploy / Deploy to AWS (push) Has been cancelled
## Summary Implements Phase 3 of the AUDIT-2026-05-20 findings: - 29 FIX-severity items across API, web, infra, and lambdas - 7 accessibility NITs (aria-labels, document titles) - 4 code quality NITs (deduplication, constants extraction) Key changes: - API: N+1 fix, pagination clamping, idempotent transitions, upload confirm endpoint, revision TotalBidAmount carry-forward - Web: confirmation dialogs, currency formatting, error states, date range filters, document titles - Infra: S3 CORS lockdown, API Gateway throttling, AOSS network policy fix, CI concurrency - Lambdas: skip empty suggestions, remove status side-effect - Scripts: post-deploy health check ## Test plan - [x] tsc --noEmit (web + infra) - [x] dotnet build (api) - [x] ruff check + format (lambdas) - [x] Cross-review via orchestrator (no blockers) [skip deploy]
10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
import { useEffect } from 'react';
|
|
|
|
const BASE_TITLE = 'Proposal System';
|
|
|
|
export function useDocumentTitle(title?: string) {
|
|
useEffect(() => {
|
|
document.title = title ? `${title} | ${BASE_TITLE}` : BASE_TITLE;
|
|
return () => { document.title = BASE_TITLE; };
|
|
}, [title]);
|
|
}
|