From 6bd751957c92569fdf206e1156ead7f48c49d5a6 Mon Sep 17 00:00:00 2001
From: adilallo <39313955+adilallo@users.noreply.github.com>
Date: Tue, 7 Oct 2025 17:27:07 -0600
Subject: [PATCH] Run lint and prettier
---
app/api/web-vitals/route.js | 12 +-
app/components/AskOrganizer.js | 2 +-
app/components/Avatar.js | 2 +-
app/components/AvatarContainer.js | 2 +-
app/components/Button.js | 2 +-
app/components/ContentContainer.js | 2 +-
app/components/ContentLockup.js | 2 +-
app/components/ContentThumbnailTemplate.js | 2 +-
app/components/ErrorBoundary.js | 3 +-
app/components/FeatureGrid.js | 2 +-
app/components/HeaderTab.js | 2 +-
app/components/HeroBanner.js | 2 +-
app/components/HomeHeader.js | 8 +-
app/components/ImagePlaceholder.js | 2 +-
app/components/Logo.js | 40 +-
app/components/MenuBar.js | 2 +-
app/components/MenuBarItem.js | 2 +-
app/components/MiniCard.js | 2 +-
app/components/NavigationItem.js | 89 +-
app/components/NumberedCards.js | 2 +-
app/components/QuoteBlock.js | 4 +-
app/components/RelatedArticles.js | 12 +-
app/components/RuleCard.js | 2 +-
app/components/SectionHeader.js | 2 +-
app/components/WebVitalsDashboard.js | 2 +-
docs/performance-optimization-guide.md | 2 +-
docs/testing-framework.md | 2 +-
...127_0_0_1--2025_09_30_21_08_52.report.html | 16221 +++++++++++++++-
...127_0_0_1--2025_09_30_21_09_10.report.html | 16057 ++++++++++++++-
...127_0_0_1--2025_09_30_21_09_25.report.html | 16069 ++++++++++++++-
...127_0_0_1--2025_09_30_23_00_30.report.html | 16170 ++++++++++++++-
...127_0_0_1--2025_09_30_23_00_46.report.html | 15998 ++++++++++++++-
...127_0_0_1--2025_09_30_23_01_01.report.html | 16111 ++++++++++++++-
next.config.mjs | 2 +-
scripts/bundle-analyzer.js | 4 +-
scripts/performance-monitor.js | 12 +-
scripts/test-performance.js | 24 +-
scripts/web-vitals-tracker.js | 4 +-
stories/ErrorBoundary.stories.js | 2 -
tests/unit/LogoWall.test.jsx | 12 +-
40 files changed, 96370 insertions(+), 524 deletions(-)
diff --git a/app/api/web-vitals/route.js b/app/api/web-vitals/route.js
index 94d59a5..6dd1db4 100644
--- a/app/api/web-vitals/route.js
+++ b/app/api/web-vitals/route.js
@@ -46,7 +46,7 @@ export async function POST(request) {
// Log for monitoring
console.log(
- `Web Vital received: ${metric} = ${data.value}ms (${data.rating})`
+ `Web Vital received: ${metric} = ${data.value}ms (${data.rating})`,
);
return NextResponse.json({ success: true });
@@ -54,7 +54,7 @@ export async function POST(request) {
console.error("Error processing web vital:", error);
return NextResponse.json(
{ error: "Internal server error" },
- { status: 500 }
+ { status: 500 },
);
}
}
@@ -70,7 +70,7 @@ export async function GET() {
if (file.endsWith(".json")) {
const metric = file.replace(".json", "");
const data = JSON.parse(
- fs.readFileSync(path.join(WEB_VITALS_DIR, file), "utf8")
+ fs.readFileSync(path.join(WEB_VITALS_DIR, file), "utf8"),
);
if (data.length > 0) {
@@ -86,14 +86,14 @@ export async function GET() {
average:
values.length > 0
? Math.round(
- values.reduce((a, b) => a + b, 0) / values.length
+ values.reduce((a, b) => a + b, 0) / values.length,
)
: 0,
min: values.length > 0 ? Math.min(...values) : 0,
max: values.length > 0 ? Math.max(...values) : 0,
goodCount: ratings.filter((r) => r === "good").length,
needsImprovementCount: ratings.filter(
- (r) => r === "needs-improvement"
+ (r) => r === "needs-improvement",
).length,
poorCount: ratings.filter((r) => r === "poor").length,
lastUpdated: data[data.length - 1]?.receivedAt,
@@ -108,7 +108,7 @@ export async function GET() {
console.error("Error fetching web vitals:", error);
return NextResponse.json(
{ error: "Internal server error" },
- { status: 500 }
+ { status: 500 },
);
}
}
diff --git a/app/components/AskOrganizer.js b/app/components/AskOrganizer.js
index e24f611..aa99ce3 100644
--- a/app/components/AskOrganizer.js
+++ b/app/components/AskOrganizer.js
@@ -106,7 +106,7 @@ const AskOrganizer = memo(
);
- }
+ },
);
AskOrganizer.displayName = "AskOrganizer";
diff --git a/app/components/Avatar.js b/app/components/Avatar.js
index 357065f..aa447e7 100644
--- a/app/components/Avatar.js
+++ b/app/components/Avatar.js
@@ -12,7 +12,7 @@ const Avatar = memo(
const baseStyles = `rounded-[var(--radius-measures-radius-full)] object-cover ${sizeStyles[size]} ${className}`;
return
;
- }
+ },
);
Avatar.displayName = "Avatar";
diff --git a/app/components/AvatarContainer.js b/app/components/AvatarContainer.js
index 1fa638b..e77156c 100644
--- a/app/components/AvatarContainer.js
+++ b/app/components/AvatarContainer.js
@@ -16,7 +16,7 @@ const AvatarContainer = memo(
{children}
);
- }
+ },
);
AvatarContainer.displayName = "AvatarContainer";
diff --git a/app/components/Button.js b/app/components/Button.js
index c029042..497ee44 100644
--- a/app/components/Button.js
+++ b/app/components/Button.js
@@ -108,7 +108,7 @@ const Button = memo(
{children}
);
- }
+ },
);
Button.displayName = "Button";
diff --git a/app/components/ContentContainer.js b/app/components/ContentContainer.js
index cd725a6..6d1835e 100644
--- a/app/components/ContentContainer.js
+++ b/app/components/ContentContainer.js
@@ -123,7 +123,7 @@ const ContentContainer = memo(
);
- }
+ },
);
ContentContainer.displayName = "ContentContainer";
diff --git a/app/components/ContentLockup.js b/app/components/ContentLockup.js
index 66fc490..63c42d2 100644
--- a/app/components/ContentLockup.js
+++ b/app/components/ContentLockup.js
@@ -179,7 +179,7 @@ const ContentLockup = memo(
)}
);
- }
+ },
);
ContentLockup.displayName = "ContentLockup";
diff --git a/app/components/ContentThumbnailTemplate.js b/app/components/ContentThumbnailTemplate.js
index a3b7e96..b39474a 100644
--- a/app/components/ContentThumbnailTemplate.js
+++ b/app/components/ContentThumbnailTemplate.js
@@ -91,7 +91,7 @@ const ContentThumbnailTemplate = memo(
);
- }
+ },
);
ContentThumbnailTemplate.displayName = "ContentThumbnailTemplate";
diff --git a/app/components/ErrorBoundary.js b/app/components/ErrorBoundary.js
index d8ee65f..19e7a8b 100644
--- a/app/components/ErrorBoundary.js
+++ b/app/components/ErrorBoundary.js
@@ -28,7 +28,7 @@ class ErrorBoundary extends Component {
Something went wrong
- We're sorry, but something unexpected happened.
+ We're sorry, but something unexpected happened.