From 4aa2d0a62c5e6fcb06be06080c0e116eee6216c9 Mon Sep 17 00:00:00 2001 From: bicochan Date: Wed, 5 Aug 2026 17:18:38 +0900 Subject: [PATCH] =?UTF-8?q?[as]=20chore:=20=ED=96=89=EC=A0=95=EC=A7=80?= =?UTF-8?q?=EC=9B=90=20=EB=A9=94=EB=89=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/tech-review-opinion-section.tsx | 5 ++- .../ui/components/checklist-task-panel.tsx | 10 ++---- .../sections/tech-review-opinion-section.tsx | 5 ++- .../ui/components/checklist-task-panel.tsx | 10 ++---- .../sections/tech-review-opinion-section.tsx | 5 ++- .../pages/sewer-bsc-plan/model/view-types.ts | 19 +++-------- .../ui/components/checklist-task-panel.tsx | 3 +- .../sections/tech-review-opinion-section.tsx | 5 ++- .../ui/sections/tmplnt-form-section.tsx | 5 ++- apps/as/src/shared/ui/alert-dialog.tsx | 10 ++---- apps/as/src/shared/ui/index.ts | 4 ++- apps/as/src/shared/ui/text-shimmer.tsx | 19 +++++++++++ .../ui/attachments-form-section.tsx | 32 +++++++++++-------- .../pbadms-sprt/ui/checklist-form-section.tsx | 14 ++++---- .../pbadms-sprt/ui/fnrs-shar-form-section.tsx | 19 +++++++---- .../pbadms-sprt/ui/splmnt-dmnd-dialog.tsx | 5 ++- .../ui/splmnt-dmnd-form-section.tsx | 5 ++- tailwind.config.preset.ts | 5 +++ 18 files changed, 108 insertions(+), 72 deletions(-) create mode 100644 apps/as/src/shared/ui/text-shimmer.tsx diff --git a/apps/as/src/pages/design-cnstn/ui/sections/tech-review-opinion-section.tsx b/apps/as/src/pages/design-cnstn/ui/sections/tech-review-opinion-section.tsx index f53e1bc72..773110fca 100644 --- a/apps/as/src/pages/design-cnstn/ui/sections/tech-review-opinion-section.tsx +++ b/apps/as/src/pages/design-cnstn/ui/sections/tech-review-opinion-section.tsx @@ -6,6 +6,7 @@ import { Paperclip } from "lucide-react"; import { PROXY_HOST } from "@/shared/config"; import { dayjs, getDefaultFileKey, useTus } from "@/shared/lib"; +import { TextShimmer } from "@/shared/ui"; import { Field, FieldLabel, FieldSet } from "@/shared/ui/field"; import { attachService } from "@/entities/attach"; import type { DesignCnstnRvwOpnnResponseDto } from "@/entities/design-cnstn"; @@ -240,7 +241,9 @@ const TechReviewOpinionSection = forwardRef< {uploadedFile ? (
- {uploadedFile.fileName} + + {uploadedFile.fileName} + diff --git a/apps/as/src/pages/fnrs-cnsltn/ui/sections/tech-review-opinion-section.tsx b/apps/as/src/pages/fnrs-cnsltn/ui/sections/tech-review-opinion-section.tsx index 21ea2c7a6..f8d416af1 100644 --- a/apps/as/src/pages/fnrs-cnsltn/ui/sections/tech-review-opinion-section.tsx +++ b/apps/as/src/pages/fnrs-cnsltn/ui/sections/tech-review-opinion-section.tsx @@ -6,6 +6,7 @@ import { Paperclip } from "lucide-react"; import { PROXY_HOST } from "@/shared/config"; import { dayjs, getDefaultFileKey, useTus } from "@/shared/lib"; +import { TextShimmer } from "@/shared/ui"; import { Field, FieldLabel, FieldSet } from "@/shared/ui/field"; import { attachService } from "@/entities/attach"; import type { FnrsCnsltnRvwOpnnResponseDto } from "@/entities/fnrs-cnsltn"; @@ -247,7 +248,9 @@ const TechReviewOpinionSection = forwardRef< {uploadedFile ? (
- {uploadedFile.fileName} + + {uploadedFile.fileName} + diff --git a/apps/as/src/pages/instl-sncn/ui/sections/tech-review-opinion-section.tsx b/apps/as/src/pages/instl-sncn/ui/sections/tech-review-opinion-section.tsx index eb5530c78..62efef962 100644 --- a/apps/as/src/pages/instl-sncn/ui/sections/tech-review-opinion-section.tsx +++ b/apps/as/src/pages/instl-sncn/ui/sections/tech-review-opinion-section.tsx @@ -6,6 +6,7 @@ import { Paperclip } from "lucide-react"; import { PROXY_HOST } from "@/shared/config"; import { dayjs, getDefaultFileKey, useTus } from "@/shared/lib"; +import { TextShimmer } from "@/shared/ui"; import { Field, FieldLabel, FieldSet } from "@/shared/ui/field"; import { attachService } from "@/entities/attach"; import type { InstlSncnRvwOpnnResponseDto, ReviewStepCode } from "@/entities/instl-sncn"; @@ -240,7 +241,9 @@ const TechReviewOpinionSection = forwardRef< {uploadedFile ? (
- {uploadedFile.fileName} + + {uploadedFile.fileName} + diff --git a/apps/as/src/pages/sewer-bsc-plan/ui/sections/tech-review-opinion-section.tsx b/apps/as/src/pages/sewer-bsc-plan/ui/sections/tech-review-opinion-section.tsx index 506704cdc..cf8135717 100644 --- a/apps/as/src/pages/sewer-bsc-plan/ui/sections/tech-review-opinion-section.tsx +++ b/apps/as/src/pages/sewer-bsc-plan/ui/sections/tech-review-opinion-section.tsx @@ -6,6 +6,7 @@ import { Paperclip } from "lucide-react"; import { PROXY_HOST } from "@/shared/config"; import { dayjs, getDefaultFileKey, useTus } from "@/shared/lib"; +import { TextShimmer } from "@/shared/ui"; import { Field, FieldLabel, FieldSet } from "@/shared/ui/field"; import { attachService } from "@/entities/attach"; import type { SewerBscPlanRvwOpnnResponseDto } from "@/entities/sewer-bsc-plan"; @@ -247,7 +248,9 @@ const TechReviewOpinionSection = forwardRef< {uploadedFile ? (
- {uploadedFile.fileName} + + {uploadedFile.fileName} + + + {!uploading && ( + + )}
); })} @@ -489,7 +491,9 @@ function AttachmentsFormSection({ key={item.fileKey} className="flex items-center justify-between rounded-sm border p-2" > - {item.file?.name ?? item.fileName} + + {item.file?.name ?? item.fileName} + diff --git a/apps/as/src/widgets/pbadms-sprt/ui/fnrs-shar-form-section.tsx b/apps/as/src/widgets/pbadms-sprt/ui/fnrs-shar-form-section.tsx index e8bff5b35..5365db9c9 100644 --- a/apps/as/src/widgets/pbadms-sprt/ui/fnrs-shar-form-section.tsx +++ b/apps/as/src/widgets/pbadms-sprt/ui/fnrs-shar-form-section.tsx @@ -4,6 +4,7 @@ import { useEffect, useMemo, useState } from "react"; import { Controller, useFormContext, useWatch } from "react-hook-form"; import { getDefaultFileKey, useTus } from "@/shared/lib"; +import { TextShimmer } from "@/shared/ui"; import { Field } from "@/shared/ui/field"; import { useAcntgSeMngTree } from "@/entities/acntg"; import type { AtflMngClientResponseDto } from "@/entities/fnrs-cnsltn"; @@ -257,12 +258,18 @@ function FnrsSharFormSection({ initialSharTree, initialSharAtchFiles }: FnrsShar

첨부파일

- + {isSharUploading && uploadedFileName ? ( + + {uploadedFileName} + + ) : ( + + )}