@schandlergarcia/sf-web-components 2.3.13 → 2.3.15
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 +14 -0
- package/brands/engine/app/appLayout.tsx +2 -10
- package/brands/engine/app/components/AgentPanel.tsx +3 -3
- package/brands/engine/app/pages/PartnerHubDashboard.tsx +0 -4
- package/brands/engine/app/styles/global.css +35 -36
- package/package.json +1 -1
- package/scripts/apply-brand.mjs +29 -16
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ 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.15] - 2026-04-14
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- **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".
|
|
12
|
+
- **Removed Booking Segments (Data360Widget) from dashboard** — Removed the Data360Widget import and usage from PartnerHubDashboard. The component file remains in the library for future use.
|
|
13
|
+
- **Simplified appLayout** — Removed the nav bar header; appLayout now renders only the Outlet.
|
|
14
|
+
|
|
15
|
+
## [2.3.14] - 2026-04-14
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- **demo:engine now installs complete working state** — Synced all working project files (appLayout, routes, CommandCenter, AgentPanel, hooks, api, config, styles) into the brands/engine/app/ backup so `--demo engine` installs the full working Partner Hub with correct nav bar, Engine theme, and AgentPanel chat.
|
|
19
|
+
- **apply-brand.mjs --demo now copies styles and all top-level components** — The `--demo` command previously excluded the styles directory and only copied AgentforceConversationClient. Now it copies `app/styles/` (including Engine theme global.css), all top-level component files (AgentPanel, Data360Widget, etc.), and writes a `.brand` marker for theme-aware resets.
|
|
20
|
+
- **Fixed broken appLayout.tsx in backup** — Removed placeholder `AgentforceConversationClient` with invalid agent ID from the Engine brand backup. Restored working nav bar with dynamic route-driven navigation.
|
|
21
|
+
|
|
8
22
|
## [2.3.13] - 2026-04-14
|
|
9
23
|
|
|
10
24
|
### Changed
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Outlet, Link, useLocation } from "react-router";
|
|
3
|
-
import { getAllRoutes } from "./router-utils";
|
|
4
|
-
import { useState } from "react";
|
|
1
|
+
import { Outlet } from "react-router";
|
|
5
2
|
|
|
6
3
|
export default function AppLayout() {
|
|
7
|
-
return
|
|
8
|
-
<>
|
|
9
|
-
<Outlet />
|
|
10
|
-
<AgentforceConversationClient agentId="<USER_AGENT_ID_18_CHAR_0Xx...>" />
|
|
11
|
-
</>
|
|
12
|
-
);
|
|
4
|
+
return <Outlet />;
|
|
13
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
|
|
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
|
-
|
|
299
|
+
Partner Hub Agent
|
|
300
300
|
</h3>
|
|
301
|
-
<p className="text-xs text-white/60">
|
|
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">
|
|
@@ -10,42 +10,6 @@
|
|
|
10
10
|
body {
|
|
11
11
|
@apply antialiased bg-white;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
/* Smooth scrolling */
|
|
15
|
-
html {
|
|
16
|
-
scroll-behavior: smooth;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* Custom animations */
|
|
20
|
-
@keyframes fade-in {
|
|
21
|
-
from {
|
|
22
|
-
opacity: 0;
|
|
23
|
-
transform: translateY(10px);
|
|
24
|
-
}
|
|
25
|
-
to {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
transform: translateY(0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes slide-up {
|
|
32
|
-
from {
|
|
33
|
-
opacity: 0;
|
|
34
|
-
transform: translateY(20px);
|
|
35
|
-
}
|
|
36
|
-
to {
|
|
37
|
-
opacity: 1;
|
|
38
|
-
transform: translateY(0);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.animate-fade-in {
|
|
43
|
-
animation: fade-in 0.6s ease-out;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.animate-slide-up {
|
|
47
|
-
animation: slide-up 0.5s ease-out;
|
|
48
|
-
}
|
|
49
13
|
}
|
|
50
14
|
|
|
51
15
|
@import 'tw-animate-css';
|
|
@@ -128,6 +92,41 @@
|
|
|
128
92
|
}
|
|
129
93
|
|
|
130
94
|
:root {
|
|
95
|
+
--dash-text: #0D1117;
|
|
96
|
+
--dash-muted: #3d4047;
|
|
97
|
+
--dash-label: #8b8d91;
|
|
98
|
+
--dash-surface: #fef9ef;
|
|
99
|
+
--dash-border: #e2c97a;
|
|
100
|
+
--dash-accent: #FFB200;
|
|
101
|
+
--dash-success: #34d399;
|
|
102
|
+
--dash-info: #67e8f9;
|
|
103
|
+
--dash-warning: #FD4B23;
|
|
104
|
+
--dash-danger: #dc2626;
|
|
105
|
+
--dash-dark: #0D1117;
|
|
106
|
+
--dash-darker: #06090d;
|
|
107
|
+
--dash-chart-1: #FFB200;
|
|
108
|
+
--dash-chart-2: #1E9D6D;
|
|
109
|
+
--dash-chart-3: #7DCBD9;
|
|
110
|
+
--dash-chart-4: #FD4B23;
|
|
111
|
+
--dash-metric-size: 3.25rem;
|
|
112
|
+
--dash-metric-sub: 2.25rem;
|
|
113
|
+
--color-dash-text: var(--dash-text);
|
|
114
|
+
--color-dash-muted: var(--dash-muted);
|
|
115
|
+
--color-dash-label: var(--dash-label);
|
|
116
|
+
--color-dash-surface: var(--dash-surface);
|
|
117
|
+
--color-dash-border: var(--dash-border);
|
|
118
|
+
--color-dash-accent: var(--dash-accent);
|
|
119
|
+
--color-dash-success: var(--dash-success);
|
|
120
|
+
--color-dash-info: var(--dash-info);
|
|
121
|
+
--color-dash-warning: var(--dash-warning);
|
|
122
|
+
--color-dash-danger: var(--dash-danger);
|
|
123
|
+
--color-dash-dark: var(--dash-dark);
|
|
124
|
+
--color-dash-darker: var(--dash-darker);
|
|
125
|
+
--color-dash-chart-1: var(--dash-chart-1);
|
|
126
|
+
--color-dash-chart-2: var(--dash-chart-2);
|
|
127
|
+
--color-dash-chart-3: var(--dash-chart-3);
|
|
128
|
+
--color-dash-chart-4: var(--dash-chart-4);
|
|
129
|
+
|
|
131
130
|
--radius: 0.625rem;
|
|
132
131
|
--background: oklch(1 0 0);
|
|
133
132
|
--foreground: oklch(0.145 0 0);
|
package/package.json
CHANGED
package/scripts/apply-brand.mjs
CHANGED
|
@@ -141,9 +141,8 @@ if (isDemo) {
|
|
|
141
141
|
console.log(`\n🚀 Installing "${brandName}" demo app...\n`);
|
|
142
142
|
let installed = 0;
|
|
143
143
|
|
|
144
|
-
// Copy the full app directory tree into src/
|
|
145
|
-
|
|
146
|
-
const appSubdirs = ['pages', 'hooks', 'api', 'config', 'features', 'components/workspace', 'components/alerts', 'components/layouts'];
|
|
144
|
+
// Copy the full app directory tree into src/ (including styles for brand theming)
|
|
145
|
+
const appSubdirs = ['pages', 'hooks', 'api', 'config', 'features', 'styles', 'components/workspace', 'components/alerts', 'components/layouts'];
|
|
147
146
|
|
|
148
147
|
for (const sub of appSubdirs) {
|
|
149
148
|
const src = path.join(appDir, sub);
|
|
@@ -157,20 +156,20 @@ if (isDemo) {
|
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
|
|
160
|
-
// Copy
|
|
161
|
-
const agentClient = path.join(appDir, 'components/AgentforceConversationClient.tsx');
|
|
162
|
-
const agentClientInherit = path.join(appDir, 'components/__inherit_AgentforceConversationClient.tsx');
|
|
159
|
+
// Copy top-level component files to src/components/
|
|
163
160
|
const componentsDir = path.join(cwd, 'src/components');
|
|
164
161
|
if (!fs.existsSync(componentsDir)) fs.mkdirSync(componentsDir, { recursive: true });
|
|
165
162
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
163
|
+
const componentFiles = fs.readdirSync(path.join(appDir, 'components')).filter(f =>
|
|
164
|
+
f.endsWith('.tsx') || f.endsWith('.jsx') || f.endsWith('.ts') || f.endsWith('.js')
|
|
165
|
+
);
|
|
166
|
+
for (const file of componentFiles) {
|
|
167
|
+
const src = path.join(appDir, 'components', file);
|
|
168
|
+
if (fs.statSync(src).isFile()) {
|
|
169
|
+
fs.copyFileSync(src, path.join(componentsDir, file));
|
|
170
|
+
console.log(` ✓ Installed src/components/${file}`);
|
|
171
|
+
installed++;
|
|
172
|
+
}
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
// Copy root-level app files (routes, appLayout, etc.)
|
|
@@ -224,9 +223,23 @@ if (isDemo) {
|
|
|
224
223
|
installed++;
|
|
225
224
|
}
|
|
226
225
|
|
|
226
|
+
// If app/styles didn't exist, apply brand colors from the brand root global.css
|
|
227
|
+
const targetCSS = path.join(cwd, 'src/styles/global.css');
|
|
228
|
+
if (!fs.existsSync(path.join(appDir, 'styles'))) {
|
|
229
|
+
const brandCSS = path.join(brandDir, 'global.css');
|
|
230
|
+
if (fs.existsSync(brandCSS)) {
|
|
231
|
+
fs.mkdirSync(path.dirname(targetCSS), { recursive: true });
|
|
232
|
+
fs.copyFileSync(brandCSS, targetCSS);
|
|
233
|
+
console.log(' ✓ Brand theme applied (global.css)');
|
|
234
|
+
installed++;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Write .brand marker
|
|
239
|
+
fs.writeFileSync(path.join(cwd, '.brand'), brandName + '\n', 'utf-8');
|
|
240
|
+
|
|
227
241
|
console.log(`\n✅ "${brandName}" demo app installed (${installed} files).`);
|
|
228
|
-
console.log(
|
|
229
|
-
console.log(` Run "npm run brand:${brandName}" to switch to ${brandName} colors.\n`);
|
|
242
|
+
console.log(` Brand colors applied. Run "npm run brand:reset" to revert to neutral.\n`);
|
|
230
243
|
process.exit(0);
|
|
231
244
|
}
|
|
232
245
|
|