From 8c21fb618bd24db67fe400948a71bf70fc20e75f Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Sat, 24 Oct 2026 20:51:25 +1000 Subject: [PATCH] Logo double-click to home, drop SNILS menu item, explain tab dots MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Double-click on the МИС Медицина logo navigates to the home page - Remove «Скопировать СНИЛС» from the patient ⋯ menu (header already copies it) - Tab alert is now the reason text, not a flag: shown in the tab tooltip and on the sidebar row («Хроническая боль», «Новые ответы: 2») Co-Authored-By: Claude Opus 5.5 --- src/kit/page-tabs.tsx | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/kit/page-tabs.tsx b/src/kit/page-tabs.tsx index d1ee49c..13ea5aa 100644 --- a/src/kit/page-tabs.tsx +++ b/src/kit/page-tabs.tsx @@ -22,8 +22,8 @@ export interface PageTabItem { readonly icon?: LucideIcon readonly letter?: string readonly tone?: PageTabTone - /** Красная точка — у пациента есть важная отметка. */ - readonly alert?: boolean + /** Красная точка и её причина — показывается в подсказке («Аллергия на пенициллин», «Новые ответы: 2»). */ + readonly alert?: string /** Нельзя закрыть и перетащить. */ readonly pinned?: boolean } @@ -272,7 +272,7 @@ function TabFace({ )} > {tab.letter ?? tab.label[0]} - {tab.alert && } + {tab.alert && } )} @@ -281,9 +281,17 @@ function TabFace({ {tab.label} - - {tab.label} - {hotkey && {hotkey}} + +
+ {tab.label} + {hotkey && {hotkey}} +
+ {tab.alert && ( +
+ + {tab.alert} +
+ )}
) : ( @@ -349,7 +357,7 @@ function OverflowTabs({ )} > {tab.letter ?? tab.label[0]} - {tab.alert && } + {tab.alert && } )} {tab.label}