@schandlergarcia/sf-web-components 2.3.14 → 2.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.3.16] - 2026-04-14
9
+
10
+ ### Changed
11
+ - **Reduced neutral theme metric sizes for visible brand distinction** — Neutral theme metrics scaled down to `2rem`/`1.5rem` (from `3.25rem`/`2.25rem`) so switching to Engine theme shows a clear visual upgrade. Engine theme retains the larger bold metrics.
12
+
13
+ ## [2.3.15] - 2026-04-14
14
+
15
+ ### Changed
16
+ - **Renamed agent to "Partner Hub Agent"** — Header title changed from "Engine Virtual Agent" to "Partner Hub Agent", subtitle from "Eva · Online" to "Agentforce · Online", and greeting updated to "I'm your Partner Hub assistant".
17
+ - **Removed Booking Segments (Data360Widget) from dashboard** — Removed the Data360Widget import and usage from PartnerHubDashboard. The component file remains in the library for future use.
18
+ - **Simplified appLayout** — Removed the nav bar header; appLayout now renders only the Outlet.
19
+
8
20
  ## [2.3.14] - 2026-04-14
9
21
 
10
22
  ### Fixed
@@ -1,90 +1,5 @@
1
- import { Outlet, Link, useLocation, useMatches } from "react-router";
2
- import { getAllRoutes } from "./router-utils";
3
- import { useState } from "react";
1
+ import { Outlet } from "react-router";
4
2
 
5
3
  export default function AppLayout() {
6
- const [isOpen, setIsOpen] = useState(false);
7
- const location = useLocation();
8
- const matches = useMatches();
9
-
10
- const showNavBar = matches.some(
11
- (m) => (m.handle as Record<string, unknown>)?.showNavBar === true,
12
- );
13
-
14
- const isActive = (path: string) => location.pathname === path;
15
-
16
- const toggleMenu = () => setIsOpen(!isOpen);
17
-
18
- const navigationRoutes: { path: string; label: string }[] = getAllRoutes()
19
- .filter(
20
- (route) =>
21
- route.handle?.showInNavigation === true &&
22
- route.fullPath !== undefined &&
23
- route.handle?.label !== undefined,
24
- )
25
- .map(
26
- (route) =>
27
- ({
28
- path: route.fullPath,
29
- label: route.handle?.label,
30
- }) as { path: string; label: string },
31
- );
32
-
33
- return (
34
- <>
35
- {showNavBar && (
36
- <nav className="bg-white border-b border-gray-200">
37
- <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
38
- <div className="flex justify-between items-center h-16">
39
- <Link to="/" className="text-xl font-semibold text-gray-900">
40
- Partner Hub
41
- </Link>
42
- <button
43
- onClick={toggleMenu}
44
- className="p-2 rounded-md text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
45
- aria-label="Toggle menu"
46
- >
47
- <div className="w-6 h-6 flex flex-col justify-center space-y-1.5">
48
- <span
49
- className={`block h-0.5 w-6 bg-current transition-all ${
50
- isOpen ? "rotate-45 translate-y-2" : ""
51
- }`}
52
- />
53
- <span
54
- className={`block h-0.5 w-6 bg-current transition-all ${isOpen ? "opacity-0" : ""}`}
55
- />
56
- <span
57
- className={`block h-0.5 w-6 bg-current transition-all ${
58
- isOpen ? "-rotate-45 -translate-y-2" : ""
59
- }`}
60
- />
61
- </div>
62
- </button>
63
- </div>
64
- {isOpen && (
65
- <div className="pb-4">
66
- <div className="flex flex-col space-y-2">
67
- {navigationRoutes.map((item) => (
68
- <Link
69
- key={item.path}
70
- to={item.path}
71
- onClick={() => setIsOpen(false)}
72
- className={`px-3 py-2 rounded-md text-sm font-medium transition-colors ${
73
- isActive(item.path)
74
- ? "bg-blue-100 text-blue-700"
75
- : "text-gray-700 hover:bg-gray-100"
76
- }`}
77
- >
78
- {item.label}
79
- </Link>
80
- ))}
81
- </div>
82
- </div>
83
- )}
84
- </div>
85
- </nav>
86
- )}
87
- <Outlet />
88
- </>
89
- );
4
+ return <Outlet />;
90
5
  }
@@ -22,7 +22,7 @@ const SCRIPT: ScriptStep[] = [
22
22
  // --- Auto-play greeting ---
23
23
  {
24
24
  role: "agent",
25
- text: "Hi Jamie! 👋 I'm Eva, your Engine partner assistant. How can I help you today?",
25
+ text: "Hi Jamie! 👋 I'm your Partner Hub assistant. How can I help you today?",
26
26
  },
27
27
 
28
28
  // --- Prompt 1: Ask about the canceled booking ---
@@ -296,9 +296,9 @@ export default function AgentPanel() {
296
296
  </div>
297
297
  <div>
298
298
  <h3 className="text-sm font-semibold text-white">
299
- Engine Virtual Agent
299
+ Partner Hub Agent
300
300
  </h3>
301
- <p className="text-xs text-white/60">Eva · Online</p>
301
+ <p className="text-xs text-white/60">Agentforce · Online</p>
302
302
  </div>
303
303
  </div>
304
304
  <button
@@ -33,7 +33,6 @@ import {
33
33
  } from "@heroicons/react/24/outline";
34
34
  import * as d3 from "d3";
35
35
  import engineLogo from "@/assets/images/engine_logo.png";
36
- import Data360Widget from "@/components/Data360Widget";
37
36
 
38
37
  /**
39
38
  * Partner Hub Dashboard
@@ -968,9 +967,6 @@ export default function PartnerHubDashboard() {
968
967
  </div>
969
968
  </div>
970
969
 
971
- {/* Data 360 Widget */}
972
- <Data360Widget />
973
-
974
970
  {/* Property Leaderboard - NEW SECTION */}
975
971
  {isLoading ? (
976
972
  <div className="bg-gradient-to-br from-white via-[var(--color-dash-surface)] to-white dark:from-[var(--color-dash-text)] dark:via-[var(--color-dash-dark)] dark:to-[var(--color-dash-text)] rounded-2xl p-8 shadow-xl border border-[var(--color-dash-label)]/20 dark:border-[var(--color-dash-muted)]/30">
@@ -95,8 +95,8 @@
95
95
  --dash-chart-2: #16a34a;
96
96
  --dash-chart-3: #e11d48;
97
97
  --dash-chart-4: #7c3aed;
98
- --dash-metric-size: 3.25rem;
99
- --dash-metric-sub: 2.25rem;
98
+ --dash-metric-size: 2rem;
99
+ --dash-metric-sub: 1.5rem;
100
100
  --color-dash-text: var(--dash-text);
101
101
  --color-dash-muted: var(--dash-muted);
102
102
  --color-dash-label: var(--dash-label);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "2.3.14",
3
+ "version": "2.3.16",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -95,8 +95,8 @@
95
95
  --dash-chart-2: #16a34a;
96
96
  --dash-chart-3: #e11d48;
97
97
  --dash-chart-4: #7c3aed;
98
- --dash-metric-size: 3.25rem;
99
- --dash-metric-sub: 2.25rem;
98
+ --dash-metric-size: 2rem;
99
+ --dash-metric-sub: 1.5rem;
100
100
  --color-dash-text: var(--dash-text);
101
101
  --color-dash-muted: var(--dash-muted);
102
102
  --color-dash-label: var(--dash-label);