refactor: rename Step Library → Solutions Library site-wide
User-facing text updated across page title, sidebar, command palette, quick launch, quick actions, post-step modal, empty state, and procedural editor. File paths/component names unchanged — those will be renamed when the full Solutions Library feature ships. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import { Plus, Play, BookOpen, UserPlus } from 'lucide-react'
|
||||
const ACTIONS = [
|
||||
{ icon: Plus, label: 'New Flow', description: 'Create a new flow', href: '/trees/new', color: '#06b6d4' },
|
||||
{ icon: Play, label: 'Resume Session', description: 'Continue where you left off', href: '/sessions', color: '#34d399' },
|
||||
{ icon: BookOpen, label: 'Browse Library', description: 'Explore step library', href: '/step-library', color: '#fbbf24' },
|
||||
{ icon: BookOpen, label: 'Browse Solutions', description: 'Explore solutions library', href: '/step-library', color: '#fbbf24' },
|
||||
{ icon: UserPlus, label: 'Invite Team', description: 'Add team members', href: '/account', color: '#06b6d4' },
|
||||
] as const
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ const PAGES: PaletteItem[] = [
|
||||
{ id: 'page-scripts', group: 'pages', title: 'Script Generator', subtitle: 'Generate PowerShell scripts', path: '/scripts', icon: 'page' },
|
||||
{ id: 'page-analytics', group: 'pages', title: 'Analytics', subtitle: 'Team usage & metrics', path: '/analytics', icon: 'page' },
|
||||
{ id: 'page-settings', group: 'pages', title: 'Settings', subtitle: 'Account & preferences', path: '/account', icon: 'page' },
|
||||
{ id: 'page-library', group: 'pages', title: 'Step Library', subtitle: 'Reusable steps', path: '/library', icon: 'page' },
|
||||
{ id: 'page-library', group: 'pages', title: 'Solutions Library', subtitle: 'Team solutions', path: '/step-library', icon: 'page' },
|
||||
]
|
||||
|
||||
const ADMIN_PAGES: PaletteItem[] = [
|
||||
|
||||
@@ -24,7 +24,7 @@ const ACTIONS: QuickAction[] = [
|
||||
{ id: 'new-tree', icon: Plus, label: 'New Troubleshooting Flow', description: 'Create a branching decision tree', path: '/trees/new', color: '#3b82f6' },
|
||||
{ id: 'new-project', icon: Plus, label: 'New Project', description: 'Create a step-by-step project', path: '/flows/new', color: '#8b5cf6' },
|
||||
{ id: 'sessions', icon: Play, label: 'View Sessions', description: 'See active and recent sessions', path: '/sessions', color: '#f59e0b' },
|
||||
{ id: 'step-library', icon: Bookmark, label: 'Step Library', description: 'Browse reusable steps', path: '/step-library', color: '#10b981' },
|
||||
{ id: 'step-library', icon: Bookmark, label: 'Solutions Library', description: 'Browse team solutions', path: '/step-library', color: '#10b981' },
|
||||
{ id: 'exports', icon: FileText, label: 'Exports & Shares', description: 'View shared session exports', path: '/shares', color: '#06b6d4' },
|
||||
{ id: 'team', icon: Users, label: 'Team Settings', description: 'Manage team members and roles', path: '/account', color: '#ec4899' },
|
||||
]
|
||||
|
||||
@@ -87,7 +87,7 @@ export function Sidebar() {
|
||||
{ href: '/trees', label: 'Guided Flows', count: stats?.tree_counts.total || undefined },
|
||||
{ href: '/trees?type=troubleshooting', label: 'Troubleshooting', count: stats?.tree_counts.troubleshooting || undefined },
|
||||
{ href: '/trees?type=procedural', label: 'Projects', count: stats?.tree_counts.procedural || undefined },
|
||||
{ href: '/step-library', label: 'Step Library' },
|
||||
{ href: '/step-library', label: 'Solutions Library' },
|
||||
{ href: '/review-queue', label: 'Review Queue' },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -274,7 +274,7 @@ export function StepEditor({ step, stepNumber, onUpdate, onCollapse, availableVa
|
||||
<option value="public">Public</option>
|
||||
</select>
|
||||
<p className="mt-1 text-[10px] text-muted-foreground">
|
||||
Controls visibility in the step library. Defaults to the flow's own visibility setting.
|
||||
Controls visibility in the solutions library. Defaults to the flow's own visibility setting.
|
||||
</p>
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
@@ -50,7 +50,7 @@ export function PostStepActionModal({
|
||||
<div>
|
||||
<p className="font-medium text-foreground">Save for Later</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Add to your step library for future use
|
||||
Save to solutions library for future use
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -269,8 +269,8 @@ export function StepLibraryBrowser({ onInsert, onCreateNew, showCreateButton = f
|
||||
) : (
|
||||
<EmptyState
|
||||
illustration={<StepLibraryIllustration />}
|
||||
title="Build a reusable step library"
|
||||
description="Save common troubleshooting steps once, reuse them across flows. Keeps your team consistent and saves build time."
|
||||
title="Build your solutions library"
|
||||
description="Save proven resolutions from troubleshooting sessions. Your team's knowledge grows with every ticket solved."
|
||||
action={
|
||||
onCreateNew ? (
|
||||
<Button onClick={onCreateNew}>Browse Steps</Button>
|
||||
|
||||
@@ -89,17 +89,17 @@ export default function StepLibraryPage() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Step Library" />
|
||||
<PageMeta title="Solutions Library" />
|
||||
<div className="flex h-full flex-col">
|
||||
{/* Page Header */}
|
||||
<div className="flex items-center justify-between border-b border-border px-6 py-4">
|
||||
<div className="flex items-center gap-3">
|
||||
<span title="Step Library">
|
||||
<span title="Solutions Library">
|
||||
<Bookmark className="h-6 w-6 text-muted-foreground" />
|
||||
</span>
|
||||
<div>
|
||||
<h1 className="text-xl font-bold font-heading text-foreground">Step Library</h1>
|
||||
<p className="text-sm text-muted-foreground">Reusable steps you can insert into any flow</p>
|
||||
<h1 className="text-xl font-bold font-heading text-foreground">Solutions Library</h1>
|
||||
<p className="text-sm text-muted-foreground">Reusable solutions from your team's troubleshooting sessions</p>
|
||||
</div>
|
||||
</div>
|
||||
{canCreateSteps && (
|
||||
|
||||
Reference in New Issue
Block a user