Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 41 additions & 13 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
#!/usr/bin/env sh
set -euo pipefail

printf "\033[1m Running local pre-commit checks (mirrors CI)\033[0m\n\n"
echo "Running pre-commit checks (mirrors GitHub Actions)..."
echo ""

run_step() {
label="$1"
shift
printf "-> %s\n" "$label"
"$@"
printf "%s passed\n\n" "$label"
}
# Run type checking
echo "Type checking..."
npm run typecheck
if [ $? -ne 0 ]; then
echo "Type check failed. Commit aborted."
exit 1
fi
echo "Type check passed"
echo ""

run_step "Lint" npm run lint
run_step "Tests" npm test
run_step "Production build" sh -c 'NODE_ENV=production npm run build'
# Run linting
echo "Linting..."
npm run lint
if [ $? -ne 0 ]; then
echo "Linting failed. Commit aborted."
exit 1
fi
echo "Linting passed"
echo ""

printf "All pre-commit checks passed!\n"
# Run tests
echo "Running tests..."
npm test
if [ $? -ne 0 ]; then
echo "Tests failed. Commit aborted."
exit 1
fi
echo "Tests passed"
echo ""

# Run production build (catches build-time errors like the next-themes import issue)
echo "Production build..."
NODE_ENV=production npm run build
if [ $? -ne 0 ]; then
echo "Build failed. Commit aborted."
exit 1
fi
echo "Build passed"
echo ""

echo "All pre-commit checks passed!"
16 changes: 16 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@
scroll-behavior: smooth;
}

::selection {
background: #cce4ff;
color: #1f2933;
}

::-moz-selection {
background: #cce4ff;
color: #1f2933;
}

.dark ::selection,
.dark ::-moz-selection {
background: rgba(96, 165, 250, 0.35);
color: #f8fafc;
}

/* Focus styles for accessibility */
:focus-visible {
@apply outline-none ring-2 ring-ring ring-offset-2 ring-offset-background;
Expand Down
2 changes: 1 addition & 1 deletion app/publications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function PublicationsPage() {
Our research contributions spanning computational neuroscience, machine learning,
and computer vision. For a complete list, visit our{" "}
<a
href="https://scholar.google.com"
href="https://scholar.google.com/citations?user=Y1xCzE0AAAAJ&hl=en"
target="_blank"
rel="noopener noreferrer"
className="text-primary hover:underline"
Expand Down