feat: add unknown .mrpack install warning modal (#5942)

* Update modpack button copy

* Change outlined button style for standard buttons

* add unknown pack warning modal

* implementation

* Redo download toasts

* prepr

* improve hit area of window controls

* implement "don't show again"

* prepr

* duplicate modal ref declarations

* increase spacing of progress items

* address truman review
This commit is contained in:
Prospector
2026-04-29 09:53:10 -07:00
committed by GitHub
parent a80cc7e47b
commit dfb6814095
24 changed files with 1208 additions and 587 deletions
@@ -6,11 +6,22 @@ export interface PopupNotificationButton {
color?: 'brand' | 'red' | 'orange' | 'green' | 'blue' | 'standard'
}
export interface PopupNotificationProgressItem {
id: string
title: string
text?: string
progress: number
waiting: boolean
}
export interface PopupNotification {
id: string | number
title: string
text?: string
type?: 'error' | 'warning' | 'success' | 'info'
type?: 'error' | 'warning' | 'success' | 'info' | 'download'
progress?: number
waiting?: boolean
progressItems?: PopupNotificationProgressItem[]
buttons?: PopupNotificationButton[]
autoCloseMs?: number | null
timer?: NodeJS.Timeout