fix(companies): align optional numeric fields with API validation
continuous-integration/drone/push Build is passing

Make employee_count, annual_revenue, and founded_year truly optional in
the create company form and payload. Add field validation docs and
Cypress e2e coverage for dashboard and notifications.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
AmirReza Jamali
2026-06-16 11:47:45 +03:30
parent 2fec8bb84c
commit 169708e49d
8 changed files with 678 additions and 18 deletions
+3 -3
View File
@@ -35,9 +35,9 @@ export interface ICreateCompanyCredentials {
website: string;
type: string;
description: string;
founded_year: number;
employee_count: number;
annual_revenue: number;
founded_year?: number | string;
employee_count?: number | string;
annual_revenue?: number | string;
currency: string;
industry: string;
language: string;
+3 -3
View File
@@ -35,9 +35,9 @@ export interface ICreateCompanyCredentials {
website: string;
type: string;
description: string;
founded_year: number;
employee_count: number;
annual_revenue: number;
founded_year?: number | string;
employee_count?: number | string;
annual_revenue?: number | string;
currency: string;
industry: string;
language: string;