260716_01_ENH: 본 서버에서 기동 후 중간 테스트를 위한 커밋

This commit is contained in:
2026-07-16 09:12:57 +09:00
parent c710a60beb
commit 36c7b41191
29 changed files with 864 additions and 532 deletions

View File

@@ -1,6 +1,7 @@
'use client'
import type { ReactNode } from 'react'
import { useAtomValue } from 'jotai'
import { Button } from '@/components/ui/button'
import {
Dialog,
@@ -12,6 +13,7 @@ import {
DialogTitle,
} from '@/components/ui/dialog'
import { cn } from '@/lib/utils'
import { loadingAtom } from '@/store/jotai/loading'
export interface KriDialogProps {
open: boolean
@@ -42,6 +44,8 @@ export function KriDialog({
bodyClassName,
footerClassName,
}: KriDialogProps) {
const isLoading = useAtomValue(loadingAtom)
const renderFooter = () => {
if (footer !== undefined) {
if (footer === null) return null
@@ -63,7 +67,16 @@ export function KriDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className={contentClassName} showCloseButton={showCloseButton}>
<DialogContent
className={contentClassName}
showCloseButton={showCloseButton}
onInteractOutside={(e) => {
if (isLoading) e.preventDefault()
}}
onEscapeKeyDown={(e) => {
if (isLoading) e.preventDefault()
}}
>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>
{description ? <DialogDescription>{description}</DialogDescription> : null}

View File

@@ -18,6 +18,9 @@ export function KriLoadingOverlay({ open, label = '로딩 중', className, spinn
aria-live="polite"
aria-label={label}
className={cn('fixed inset-0 z-[9999] flex items-center justify-center bg-black/70', className)}
onPointerDown={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
onClick={(e) => e.stopPropagation()}
>
<div className={cn('size-12 animate-spin rounded-full border-4 border-gray-400 border-t-white', spinnerClassName)} />
<span className="sr-only">{label}</span>