From 0e2aaff571f34e3d8b91b4fe309b6188c2e6ae4b Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sat, 14 Mar 2026 23:39:54 -0400 Subject: [PATCH] feat(psa): add Post History tab placeholder to Integrations page Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/pages/account/IntegrationsPage.tsx | 47 ++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/account/IntegrationsPage.tsx b/frontend/src/pages/account/IntegrationsPage.tsx index ebb7c5b8..fd5595d3 100644 --- a/frontend/src/pages/account/IntegrationsPage.tsx +++ b/frontend/src/pages/account/IntegrationsPage.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react' -import { Plug, CheckCircle2, AlertCircle, Loader2, Pencil, Trash2, Shield } from 'lucide-react' +import { Plug, CheckCircle2, AlertCircle, Loader2, Pencil, Trash2, Shield, History, Ticket } from 'lucide-react' import { PageMeta } from '@/components/common/PageMeta' import { integrationsApi } from '@/api/integrations' import type { PsaConnectionResponse, PsaConnectionCreate, PsaConnectionUpdate, PsaConnectionTestResponse } from '@/types' @@ -38,7 +38,10 @@ const emptyForm: ConnectionForm = { client_id: '', } +type Tab = 'connection' | 'post-history' + export function IntegrationsPage() { + const [activeTab, setActiveTab] = useState('connection') const [connection, setConnection] = useState(null) const [isLoading, setIsLoading] = useState(true) const [error, setError] = useState(null) @@ -224,6 +227,30 @@ export function IntegrationsPage() {

+ {/* Tabs */} +
+ {([ + { id: 'connection' as Tab, label: 'Connection', icon: Plug }, + { id: 'post-history' as Tab, label: 'Post History', icon: History }, + ]).map(({ id, label, icon: Icon }) => ( + + ))} +
+ + {/* Connection Tab */} + {activeTab === 'connection' && (
{/* Setup / Edit Form */} {(mode === 'setup' || mode === 'edit') && ( @@ -497,6 +524,24 @@ export function IntegrationsPage() {
)} + )} + + {/* Post History Tab */} + {activeTab === 'post-history' && ( +
+
+
+ +

Post History

+
+

+ View post history from individual sessions by clicking on linked tickets. + When a session has a ConnectWise ticket linked, use the Update button to post + session documentation and view previous posts. +

+
+
+ )} )