diff --git a/.husky/pre-commit b/.husky/pre-commit index 262e782..016f09b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -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!" diff --git a/app/globals.css b/app/globals.css index 395c19c..67cd6c9 100644 --- a/app/globals.css +++ b/app/globals.css @@ -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; diff --git a/app/publications/page.tsx b/app/publications/page.tsx index 7c02263..f62a4e4 100644 --- a/app/publications/page.tsx +++ b/app/publications/page.tsx @@ -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{" "}