Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

chore(web): fix all lint warnings — canonical classes, unused vars, exhaustive-deps

Gener50db78272cd3
diff --git a/src/web/src/app/(app)/w/[slug]/calendar/page.tsx b/src/web/src/app/(app)/w/[slug]/calendar/page.tsx
index 9745be254..24c5923c5 100644
--- a/src/web/src/app/(app)/w/[slug]/calendar/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/calendar/page.tsx
@@ -514,7 +514,7 @@ export default function CalendarPage() {
setCreateOpen(true);
}}
disabled={agents.length === 0}
- className="min-w-[44px] min-h-[44px] sm:min-w-0 sm:min-h-0"
+ className="min-w-11 min-h-11 sm:min-w-0 sm:min-h-0"
>
<Plus className="size-3.5" />
<span className="hidden sm:inline">New event</span>
diff --git a/src/web/src/app/blog/[slug]/page.tsx b/src/web/src/app/blog/[slug]/page.tsx
index 51650bbaa..1aeaee151 100644
--- a/src/web/src/app/blog/[slug]/page.tsx
+++ b/src/web/src/app/blog/[slug]/page.tsx
@@ -115,7 +115,7 @@ export default async function BlogPostPage({
</div>
</header>
- <div className="blog-content blog-content-editorial font-sans text-lg leading-[1.7] text-foreground max-w-[65ch] [&_h2]:font-sans [&_h2]:text-[1.625rem] [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2]:mt-16 [&_h2]:mb-6 [&_p]:mb-8 [&_blockquote]:border-l-[3px] [&_blockquote]:border-foreground/20 [&_blockquote]:pl-6 [&_blockquote]:italic [&_blockquote]:text-foreground/70 [&_blockquote]:my-10 [&_blockquote]:text-xl [&_blockquote]:leading-relaxed [&_code]:font-mono [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_pre]:bg-muted [&_pre]:rounded-lg [&_pre]:px-5 [&_pre]:py-4 [&_pre]:my-10 [&_pre]:overflow-x-auto [&_pre]:text-[0.875rem] [&_pre]:leading-relaxed [&_pre]:max-w-none [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_img]:rounded-lg [&_img]:my-12 [&_img]:w-full [&_img]:max-w-none [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-8 [&_ul]:mt-[-0.25rem] [&_li]:mb-3 [&_li]:leading-[1.7] [&_strong]:font-semibold [&_em]:italic [&_a]:underline [&_a]:underline-offset-3 [&_a]:decoration-foreground/30 [&_a]:hover:decoration-foreground/60 [&_a]:transition-colors">
+ <div className="blog-content blog-content-editorial font-sans text-lg leading-[1.7] text-foreground max-w-[65ch] [&_h2]:font-sans [&_h2]:text-[1.625rem] [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2]:mt-16 [&_h2]:mb-6 [&_p]:mb-8 [&_blockquote]:border-l-[3px] [&_blockquote]:border-foreground/20 [&_blockquote]:pl-6 [&_blockquote]:italic [&_blockquote]:text-foreground/70 [&_blockquote]:my-10 [&_blockquote]:text-xl [&_blockquote]:leading-relaxed [&_code]:font-mono [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_pre]:bg-muted [&_pre]:rounded-lg [&_pre]:px-5 [&_pre]:py-4 [&_pre]:my-10 [&_pre]:overflow-x-auto [&_pre]:text-[0.875rem] [&_pre]:leading-relaxed [&_pre]:max-w-none [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_img]:rounded-lg [&_img]:my-12 [&_img]:w-full [&_img]:max-w-none [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-8 [&_ul]:-mt-1 [&_li]:mb-3 [&_li]:leading-[1.7] [&_strong]:font-semibold [&_em]:italic [&_a]:underline [&_a]:underline-offset-3 [&_a]:decoration-foreground/30 [&_a]:hover:decoration-foreground/60 [&_a]:transition-colors">
<PostContent />
</div>
@@ -129,7 +129,7 @@ export default async function BlogPostPage({
<ArrowLeft className="size-3" />
Previous
</span>
- <span className="text-[15px] font-sans group-hover:translate-x-[-2px] transition-transform duration-200 leading-snug">
+ <span className="text-[15px] font-sans group-hover:-translate-x-0.5 transition-transform duration-200 leading-snug">
{prevPost.title}
</span>
</Link>
@@ -145,7 +145,7 @@ export default async function BlogPostPage({
Next
<ArrowRight className="size-3" />
</span>
- <span className="text-[15px] font-sans group-hover:translate-x-[2px] transition-transform duration-200 leading-snug">
+ <span className="text-[15px] font-sans group-hover:translate-x-0.5 transition-transform duration-200 leading-snug">
{nextPost.title}
</span>
</Link>
diff --git a/src/web/src/app/blog/page.tsx b/src/web/src/app/blog/page.tsx
index 06b3fb70b..7771d8287 100644
--- a/src/web/src/app/blog/page.tsx
+++ b/src/web/src/app/blog/page.tsx
@@ -46,7 +46,7 @@ export default function BlogPage() {
/>
<div className="mx-auto max-w-3xl px-6 pt-10 sm:pt-20 pb-24">
<header className="mb-16">
- <h1 className="font-news text-5xl sm:text-6xl font-semibold tracking-[-0.025em] leading-none">
+ <h1 className="font-news text-5xl sm:text-6xl font-semibold tracking-tight leading-none">
Blog
</h1>
<p className="mt-4 text-[1.0625rem] text-muted-foreground font-sans leading-relaxed max-w-xl">
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsx
index 6792f8395..1d72c241f 100644
--- a/src/web/src/components/agent-chat/agent-chat-view.tsx
+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx
@@ -692,6 +692,7 @@ export function AgentChatView({
}
load();
return () => { ignore = true; };
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [agentId, workspaceId, targetConvId, scrollToTaskId, activeChannel, channelLoading]);
const refreshInboxCountRef = useRef(refreshInboxCount);
diff --git a/src/web/src/components/calendar/calendar-agent-filter.tsx b/src/web/src/components/calendar/calendar-agent-filter.tsx
index c0f0cab24..6aa0e2e76 100644
--- a/src/web/src/components/calendar/calendar-agent-filter.tsx
+++ b/src/web/src/components/calendar/calendar-agent-filter.tsx
@@ -47,7 +47,7 @@ export function CalendarAgentFilter({
<span
className={cn("size-2 rounded-full", agentColor(a.id).split(" ")[0])}
/>
- <span className="max-w-[120px] truncate sm:max-w-none">{a.name}</span>
+ <span className="max-w-30 truncate sm:max-w-none">{a.name}</span>
</button>
);
})
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet-activity.ts b/src/web/src/components/home-pet/cloud-code-monster-pet-activity.ts
index 1a080bf75..093183130 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet-activity.ts
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet-activity.ts
@@ -444,6 +444,7 @@ export function createWalkToTargetVelocity(
return { x: (dx / distance) * speed, y: (dy / distance) * speed };
}
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function getBounds(_boundary: HTMLElement | null): PetBounds {
return {
width: window.innerWidth,
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet-walk-target.ts b/src/web/src/components/home-pet/cloud-code-monster-pet-walk-target.ts
index c8d2d5847..8ea36dac5 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet-walk-target.ts
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet-walk-target.ts
@@ -144,6 +144,7 @@ export function useWalkToTarget({
return () => {
clearStepTimer();
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [enabled, targetId, !!position, boundaryRef, cancel, clearStepTimer, onArrive, onStep, setPosition]);
return { isWalking, isIdlingAtTarget, walkDirection };
diff --git a/src/web/src/components/home/feature-showcase.tsx b/src/web/src/components/home/feature-showcase.tsx
index e98238605..8d45d251a 100644
--- a/src/web/src/components/home/feature-showcase.tsx
+++ b/src/web/src/components/home/feature-showcase.tsx
@@ -257,7 +257,7 @@ function FlipCard({ feature }: { feature: Feature }) {
return (
<div
- className="flip-card panel-crt relative z-[1] cursor-pointer"
+ className="flip-card panel-crt relative z-1 cursor-pointer"
style={{ perspective: "1200px" }}
onClick={(e) => {
if ((e.target as HTMLElement).closest("a")) return;
@@ -265,7 +265,7 @@ function FlipCard({ feature }: { feature: Feature }) {
}}
>
<div
- className="flip-card-inner relative w-full transition-transform duration-500 ease-out [transform-style:preserve-3d]"
+ className="flip-card-inner relative w-full transition-transform duration-500 ease-out transform-3d"
style={flipped ? { transform: "rotateY(180deg)" } : undefined}
>
{/* Front — ASCII art */}
@@ -335,7 +335,7 @@ function FlipCard({ feature }: { feature: Feature }) {
</p>
<a
href={feature.cta.href}
- className="inline-flex items-center gap-2 px-5 py-2.5 text-xs uppercase tracking-[0.1em] transition-opacity hover:opacity-80"
+ className="inline-flex items-center gap-2 px-5 py-2.5 text-xs uppercase tracking-widest transition-opacity hover:opacity-80"
style={{
fontFamily: "var(--font-mono)",
color: "var(--landing-crt-bg)",
diff --git a/src/web/src/components/home/use-cases-section.tsx b/src/web/src/components/home/use-cases-section.tsx
index 447a69f29..bdfb8ca28 100644
--- a/src/web/src/components/home/use-cases-section.tsx
+++ b/src/web/src/components/home/use-cases-section.tsx
@@ -4,7 +4,7 @@ import { useId, useRef, useState } from "react";
import gsap from "gsap";
import { useGSAP } from "@gsap/react";
import { ScrollTrigger } from "gsap/ScrollTrigger";
-import { Mail, Calendar, FileText, MessageSquare, Check, ChevronRight, DollarSign, BarChart3, Bug, Brain } from "lucide-react";
+import { Mail, Calendar, FileText, MessageSquare, Check, DollarSign, BarChart3, Bug, Brain } from "lucide-react";
gsap.registerPlugin(ScrollTrigger);
@@ -809,7 +809,7 @@ export function UseCasesSection() {
{/* Demo content area — scoped with app design tokens */}
<div
- className="usecase-demo-panel h-[480px] overflow-y-auto thin-scrollbar"
+ className="usecase-demo-panel h-120 overflow-y-auto thin-scrollbar"
>
<ActiveDemo key={activeIndex} />
</div>