From 789e9a34ea96f36fb68eed5245aba814b054ad1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Ben=C3=ADtez?= Date: Tue, 7 Jul 2026 22:18:25 -0300 Subject: [PATCH] =?UTF-8?q?feat(library):=20bot=C3=B3n=20Importar=20BPMN?= =?UTF-8?q?=20visible=20para=20client=5Feditor;=20empty=20state=20diferenc?= =?UTF-8?q?iado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/features/library/LibraryPage.tsx | 21 ++++++++++++++++++++- tests/features/library/library-ui.test.tsx | 4 ++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/features/library/LibraryPage.tsx b/src/features/library/LibraryPage.tsx index 729fd53..256dad7 100644 --- a/src/features/library/LibraryPage.tsx +++ b/src/features/library/LibraryPage.tsx @@ -383,6 +383,25 @@ function HomeView({ // Empty state: sin grupos ni procesos (ya terminó de cargar) if (groups.length === 0 && processes.length === 0) { if (isClientRole) { + if (user?.platformRole === 'client_editor') { + return ( +
+ +

Tu biblioteca está vacía

+

+ Importá tu primer BPMN para empezar a cuantificar costos +

+ +
+ ) + } return (
@@ -847,7 +866,7 @@ export function LibraryPage() { )} - {!isClientRole && ( + {user.platformRole !== 'client_viewer' && (