From 287faa45709f89d7e923462551a0ab7520e669c7 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 11 Feb 2026 03:34:12 +0530 Subject: [PATCH] feat: add action icons to table row actions and refine focus styles for various form elements. --- .../agent-types/[id]/sections/page.tsx | 2 +- src/app/dashboard/agent-types/page.tsx | 30 +++++++++----- .../dashboard/profile-sections/[id]/page.tsx | 38 +++++++++--------- src/app/dashboard/profile-sections/page.tsx | 40 +++++++++++++------ src/app/dashboard/users/[id]/page.tsx | 4 +- src/app/login/page.tsx | 4 +- 6 files changed, 73 insertions(+), 45 deletions(-) diff --git a/src/app/dashboard/agent-types/[id]/sections/page.tsx b/src/app/dashboard/agent-types/[id]/sections/page.tsx index 380de86..b8d7e65 100644 --- a/src/app/dashboard/agent-types/[id]/sections/page.tsx +++ b/src/app/dashboard/agent-types/[id]/sections/page.tsx @@ -297,7 +297,7 @@ export default function AgentTypeSectionsPage() { type="checkbox" checked={section.isRequired} onChange={() => toggleRequired(index)} - className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-[#f5a623]" + className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-0" /> Required diff --git a/src/app/dashboard/agent-types/page.tsx b/src/app/dashboard/agent-types/page.tsx index e4a8a6a..87abd70 100644 --- a/src/app/dashboard/agent-types/page.tsx +++ b/src/app/dashboard/agent-types/page.tsx @@ -159,7 +159,7 @@ export default function AgentTypesPage() { type="checkbox" checked={showInactive} onChange={(e) => setShowInactive(e.target.checked)} - className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-[#f5a623]" + className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-0" /> Show Inactive @@ -273,20 +273,32 @@ export default function AgentTypesPage() { @@ -322,7 +334,7 @@ export default function AgentTypesPage() { type="text" value={formData.name} onChange={(e) => setFormData({ ...formData, name: e.target.value })} - className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:ring-2 focus:ring-[#f5a623] focus:border-[#f5a623] text-[#00293d] bg-white" + className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:outline-none focus:border-[#f5a623] text-[#00293d] bg-white" required /> @@ -334,7 +346,7 @@ export default function AgentTypesPage() { value={formData.description} onChange={(e) => setFormData({ ...formData, description: e.target.value })} rows={3} - className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:ring-2 focus:ring-[#f5a623] focus:border-[#f5a623] text-[#00293d] bg-white" + className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:outline-none focus:border-[#f5a623] text-[#00293d] bg-white" />
@@ -345,7 +357,7 @@ export default function AgentTypesPage() { type="text" value={formData.icon} onChange={(e) => setFormData({ ...formData, icon: e.target.value })} - className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:ring-2 focus:ring-[#f5a623] focus:border-[#f5a623] text-[#00293d] bg-white placeholder:text-[#666666]" + className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:outline-none focus:border-[#f5a623] text-[#00293d] bg-white placeholder:text-[#666666]" placeholder="e.g. house, building, key" />
@@ -360,7 +372,7 @@ export default function AgentTypesPage() { onFocus={(e) => e.target.select()} placeholder="0" min={0} - className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:ring-2 focus:ring-[#f5a623] focus:border-[#f5a623] text-[#00293d] bg-white placeholder:text-[#666666]" + className="w-full px-3 py-2 border border-[#e5e7eb] rounded-xl focus:outline-none focus:border-[#f5a623] text-[#00293d] bg-white placeholder:text-[#666666]" />
@@ -369,7 +381,7 @@ export default function AgentTypesPage() { id="isActive" checked={formData.isActive} onChange={(e) => setFormData({ ...formData, isActive: e.target.checked })} - className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-[#f5a623]" + className="rounded border-[#e5e7eb] text-[#f5a623] focus:ring-0" />