- {/* Bouton aide (?) — toujours visible quand sélectionné */}
- {selected && action && (
+ {/* Bouton aide (?) */}
+ {action && (
diff --git a/visual_workflow_builder/frontend_v4/src/services/uiDetection.ts b/visual_workflow_builder/frontend_v4/src/services/uiDetection.ts
index 703754a22..587610be4 100644
--- a/visual_workflow_builder/frontend_v4/src/services/uiDetection.ts
+++ b/visual_workflow_builder/frontend_v4/src/services/uiDetection.ts
@@ -2,8 +2,8 @@
* Service de détection UI (UI-DETR-1)
*/
-// Utilise l'hostname actuel pour permettre l'accès réseau
-const API_BASE = `http://${window.location.hostname}:5001`;
+// VWB backend (port 5002) — contient le screen capturer et la détection UI
+const API_BASE = `http://${window.location.hostname}:5002`;
export interface UIElement {
id: number;
diff --git a/visual_workflow_builder/frontend_v4/src/styles.css b/visual_workflow_builder/frontend_v4/src/styles.css
index 9e3d17f5f..e2280a4f4 100644
--- a/visual_workflow_builder/frontend_v4/src/styles.css
+++ b/visual_workflow_builder/frontend_v4/src/styles.css
@@ -96,6 +96,21 @@ body {
border-left: 1px solid var(--border);
}
+/* Panneau droit à onglets — redimensionnement dynamique */
+.sidebar.right.right-panel-tabbed {
+ width: 320px;
+ transition: width 0.3s ease;
+ overflow: hidden;
+}
+
+.sidebar.right.right-panel-tabbed.expanded {
+ width: 480px;
+}
+
+.sidebar.right.right-panel-tabbed.collapsed {
+ width: 320px;
+}
+
.sidebar h3, .sidebar h4 {
padding: 0.75rem 1rem;
background: var(--bg-sidebar);
@@ -4225,3 +4240,148 @@ body {
background: var(--bg-sidebar);
color: var(--text-primary);
}
+
+/* Galerie bibliothèque plein écran */
+.library-gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ gap: 16px;
+ padding: 20px;
+ overflow-y: auto;
+ max-height: calc(100vh - 60px);
+}
+
+.library-gallery-item {
+ cursor: pointer;
+ border: 2px solid transparent;
+ border-radius: 8px;
+ overflow: hidden;
+ transition: border-color 0.2s, transform 0.2s;
+ background: var(--bg-paper);
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
+}
+
+.library-gallery-item:hover {
+ border-color: var(--primary);
+ transform: scale(1.02);
+}
+
+.library-gallery-item img {
+ width: 100%;
+ display: block;
+}
+
+.library-gallery-label {
+ padding: 8px 12px;
+ font-size: 13px;
+ color: var(--text-secondary);
+ text-align: center;
+ background: var(--bg-default);
+}
+
+.library-show-all {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: var(--bg-default);
+ border: 2px dashed var(--border);
+ border-radius: 6px;
+ color: var(--primary);
+ cursor: pointer;
+ font-size: 13px;
+ min-height: 60px;
+}
+
+.library-show-all:hover {
+ background: var(--bg-paper);
+ border-color: var(--primary);
+}
+
+/* ===========================================
+ Panneau droit à onglets (RightPanel)
+ =========================================== */
+
+/* Barre d'onglets en haut du panneau droit */
+.right-panel-tabs {
+ display: flex;
+ background: var(--bg-sidebar);
+ border-bottom: 2px solid var(--border);
+ flex-shrink: 0;
+}
+
+.right-panel-tab {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.35rem;
+ padding: 0.6rem 0.5rem;
+ border: none;
+ background: transparent;
+ color: var(--text-secondary);
+ cursor: pointer;
+ font-size: 0.8rem;
+ font-weight: 500;
+ transition: all 0.2s ease;
+ position: relative;
+ white-space: nowrap;
+}
+
+.right-panel-tab:hover {
+ color: var(--primary);
+ background: rgba(25, 118, 210, 0.04);
+}
+
+.right-panel-tab.active {
+ color: var(--primary);
+ font-weight: 600;
+}
+
+/* Bordure inférieure colorée sur l'onglet actif */
+.right-panel-tab.active::after {
+ content: '';
+ position: absolute;
+ bottom: -2px;
+ left: 0;
+ right: 0;
+ height: 2px;
+ background: var(--primary);
+}
+
+.right-panel-tab .tab-icon {
+ font-size: 1rem;
+ line-height: 1;
+}
+
+.right-panel-tab .tab-label {
+ font-size: 0.78rem;
+}
+
+/* Zone de contenu scrollable */
+.right-panel-content {
+ flex: 1;
+ overflow-y: auto;
+ overflow-x: hidden;
+}
+
+.tab-content-inner {
+ display: flex;
+ flex-direction: column;
+}
+
+/* Ajustements des sous-composants dans le panneau à onglets */
+.right-panel-tabbed .properties-panel {
+ border-top: none;
+}
+
+.right-panel-tabbed .capture-panel {
+ border-top: none;
+}
+
+.right-panel-tabbed .variable-manager {
+ border-top: none;
+}
+
+.right-panel-tabbed .capture-library {
+ border-top: 1px solid var(--border);
+}