[feat] negodata: 대시보드 — 회사/내 견적 요약 API + 프론트 페이지
백엔드: GET /v1/dashboard/summary — 회사 전체(company)+내 견적(mine) 스코프로 진행중·이번달생성·마감임박(72h)·메일미발송·동가·결렬 집계(users.company_id 조인, 읽기 전용). 프론트: /dashboard 페이지(KPI 카드 + 액션 위젯, 행 클릭→/quotation?detail= 딥링크), 사이드바·라우트 배선, 루트·로그인 리다이렉트를 /dashboard 로. orval 재생성(useGetDashboardSummary + Dashboard* 타입, QuotationData.creator_name 동기화 포함). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f648965e2
commit
b42cc41b5e
22 files changed
+774
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { DashboardQuotationRef } from './dashboardQuotationRef';
|
||||
|
||||
export interface DashboardActionList {
|
||||
total?: number;
|
||||
items?: DashboardQuotationRef[];
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { DashboardEmailUnsentItem } from './dashboardEmailUnsentItem';
|
||||
|
||||
export interface DashboardEmailUnsent {
|
||||
total?: number;
|
||||
quotations?: DashboardEmailUnsentItem[];
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface DashboardEmailUnsentItem {
|
||||
qt_id: string;
|
||||
name?: string;
|
||||
unsent_count?: number;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { DashboardQuotationRefEndTime } from './dashboardQuotationRefEndTime';
|
||||
|
||||
export interface DashboardQuotationRef {
|
||||
qt_id: string;
|
||||
name?: string;
|
||||
end_time?: DashboardQuotationRefEndTime;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type DashboardQuotationRefEndTime = string | null;
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { DashboardActionList } from './dashboardActionList';
|
||||
import type { DashboardEmailUnsent } from './dashboardEmailUnsent';
|
||||
|
||||
export interface DashboardScope {
|
||||
in_progress?: number;
|
||||
this_month?: number;
|
||||
deadline_soon?: DashboardActionList;
|
||||
email_unsent?: DashboardEmailUnsent;
|
||||
equal_bid?: DashboardActionList;
|
||||
ruptured?: DashboardActionList;
|
||||
}
|
||||
@@ -35,6 +35,12 @@ export * from './companyUserDataEmail';
|
||||
export * from './companyUserDataLastAccessedAt';
|
||||
export * from './companyUserDataName';
|
||||
export * from './companyUserDataUpdatedAt';
|
||||
export * from './dashboardActionList';
|
||||
export * from './dashboardEmailUnsent';
|
||||
export * from './dashboardEmailUnsentItem';
|
||||
export * from './dashboardQuotationRef';
|
||||
export * from './dashboardQuotationRefEndTime';
|
||||
export * from './dashboardScope';
|
||||
export * from './deliveryType';
|
||||
export * from './errorInfo';
|
||||
export * from './errorInfoCode';
|
||||
@@ -80,6 +86,7 @@ export * from './quotationCardDataType';
|
||||
export * from './quotationCardDataWildCardId';
|
||||
export * from './quotationData';
|
||||
export * from './quotationDataCreatedAt';
|
||||
export * from './quotationDataCreatorName';
|
||||
export * from './quotationDataEqualBidData';
|
||||
export * from './quotationDataEqualBidYn';
|
||||
export * from './quotationDataItemId';
|
||||
@@ -212,6 +219,8 @@ export * from './resCompanyUserUser';
|
||||
export * from './resCreateQuotation';
|
||||
export * from './resCreateQuotationMsg';
|
||||
export * from './resCreateQuotationQtId';
|
||||
export * from './resDashboardSummary';
|
||||
export * from './resDashboardSummaryMsg';
|
||||
export * from './resDeleteCard';
|
||||
export * from './resDeleteCardMsg';
|
||||
export * from './resDeleteCompanyUser';
|
||||
|
||||
@@ -19,6 +19,7 @@ import type { QuotationDataEqualBidYn } from './quotationDataEqualBidYn';
|
||||
import type { QuotationDataEqualBidData } from './quotationDataEqualBidData';
|
||||
import type { QuotationDataItemId } from './quotationDataItemId';
|
||||
import type { QuotationDataItemName } from './quotationDataItemName';
|
||||
import type { QuotationDataCreatorName } from './quotationDataCreatorName';
|
||||
import type { QuotationDataCreatedAt } from './quotationDataCreatedAt';
|
||||
import type { QuotationDataUpdatedAt } from './quotationDataUpdatedAt';
|
||||
|
||||
@@ -49,7 +50,7 @@ export interface QuotationData {
|
||||
participation_count?: number;
|
||||
item_id?: QuotationDataItemId;
|
||||
item_name?: QuotationDataItemName;
|
||||
creator_name?: string | null;
|
||||
creator_name?: QuotationDataCreatorName;
|
||||
created_at?: QuotationDataCreatedAt;
|
||||
updated_at?: QuotationDataUpdatedAt;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type QuotationDataCreatorName = string | null;
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDashboardSummaryMsg } from './resDashboardSummaryMsg';
|
||||
import type { DashboardScope } from './dashboardScope';
|
||||
|
||||
export interface ResDashboardSummary {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResDashboardSummaryMsg;
|
||||
company?: DashboardScope;
|
||||
mine?: DashboardScope;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResDashboardSummaryMsg = string | null;
|
||||
Reference in new issue
Block a user