diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b89f4bd..1df729c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1 @@ -# Default owners for everything in the repo. -# These maintainers are requested for review on every pull request. * @eluciano11 @rnegron diff --git a/CLAUDE.md b/CLAUDE.md index 532e8a6..fdec86f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Commands -Node version is pinned via `.nvmrc` (currently `22.22.2`, lts/jod). Use `nvm use` before running anything. +Node version is pinned via `.nvmrc`. Use `nvm use` before running anything. - `npm run develop` — start the Gatsby dev server (`gatsby develop`); also aliased as `npm start` - `npm run build` — production build into `public/` diff --git a/gatsby-config.js b/gatsby-config.js index 2b6ce87..5724cd6 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -24,7 +24,7 @@ module.exports = { background_color: `#0282f8`, theme_color: `#0282f8`, display: `standalone`, - icon: `src/images/fsn.png` // This path is relative to the root of the site. + icon: `src/images/fsn.png` } }, `gatsby-plugin-postcss`, diff --git a/netlify/functions/submission-created.js b/netlify/functions/submission-created.js index 25807db..9778e2c 100644 --- a/netlify/functions/submission-created.js +++ b/netlify/functions/submission-created.js @@ -1,19 +1,9 @@ -// Netlify calls this automatically on every verified form submission -// (spam/honeypot hits are filtered out before this runs). It forwards the -// submission to a private Discord channel via an incoming webhook. -// -// This is an event-triggered function (named after the "submission-created" -// event), so Netlify invokes it internally — it is not exposed as a public -// HTTP endpoint. Set DISCORD_WEBHOOK_URL in Netlify → Environment variables. - -// null-prototype map so a form-controlled name can't resolve to an inherited -// Object.prototype member (e.g. "toString", "constructor"). +// Null prototype: form names are user-controlled. const TITLES = Object.assign(Object.create(null), { "speaker-submission": "🎤 New speaker / topic submission", feedback: "💬 New feedback" }); -// Netlify metadata we don't want to echo into Discord. const HIDDEN_FIELDS = new Set(["bot-field", "form-name"]); exports.handler = async (event) => { diff --git a/src/components/layout.js b/src/components/layout.js index 172f295..8dae9dd 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -1,10 +1,3 @@ -/** - * Layout component that queries for data - * with Gatsby's useStaticQuery component - * - * See: https://www.gatsbyjs.org/docs/use-static-query/ - */ - import React from "react"; import PropTypes from "prop-types"; diff --git a/src/components/netlify-honeypot.js b/src/components/netlify-honeypot.js index 42643c1..0e47866 100644 --- a/src/components/netlify-honeypot.js +++ b/src/components/netlify-honeypot.js @@ -1,8 +1,7 @@ import React from "react"; import { useTranslation } from "react-i18next"; -// Shared Netlify form plumbing: the hidden form-name (must match the