diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml new file mode 100644 index 0000000..de4b92b --- /dev/null +++ b/.github/workflows/claude-code.yml @@ -0,0 +1,50 @@ +name: Claude Code Integration + +on: + # Trigger when a Pull Request is opened, updated, or reopened + pull_request: + types: [opened, synchronize, reopened] + branches: + - master + - main + + # Trigger when code is pushed directly to the main branches + push: + branches: + - master + - main + +jobs: + claude: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + issues: write + actions: read # Required so Claude can read CI results on PRs + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 1 + + # Run Claude Code using the official GitHub Action + - name: Run Claude Code + id: claude + uses: anthropics/claude-code-action@v1 + with: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + + # Uncomment to customize Claude's behavior + # claude_args: | + # --model claude-opus-4-1-20250805 + # --max-turns 10 + # --allowedTools "Bash(npm ci),Bash(npm run build),Bash(npm test),Read,Edit" + + # settings: | + # { + # "env": { + # "NODE_ENV": "test" + # } + # } diff --git a/client/src/pages/ContactUs.jsx b/client/src/pages/ContactUs.jsx index f242fd1..0efb2a0 100644 --- a/client/src/pages/ContactUs.jsx +++ b/client/src/pages/ContactUs.jsx @@ -27,20 +27,18 @@ const InputField = ({ {error && ( diff --git a/client/src/pages/News.jsx b/client/src/pages/News.jsx index de98806..5044364 100644 --- a/client/src/pages/News.jsx +++ b/client/src/pages/News.jsx @@ -105,7 +105,7 @@ const News = () => { return (
setHoveredCard(news.id)} onMouseLeave={() => setHoveredCard(null)} @@ -176,24 +176,24 @@ const News = () => { > {news.category} -
+
{news.date}
{/* Title */} -

+

{news.title}

{/* Description */} -

{news.description}

+

{news.description}

{/* Footer */}
-
+
{news.readTime}
@@ -202,14 +202,14 @@ const News = () => { href={news.link} target="_blank" rel="noopener noreferrer" - className="flex items-center text-indigo-600 hover:text-indigo-800 font-medium transition-colors duration-300 group/btn" + className="flex items-center text-indigo-400 hover:text-indigo-300 font-medium transition-colors duration-300 group/btn" > Read More
-
+
{news.author @@ -217,7 +217,7 @@ const News = () => { .map((n) => n[0]) .join("")}
- By {news.author} + By {news.author}
@@ -227,7 +227,7 @@ const News = () => { }; return ( -
+
{/* Header */}
diff --git a/client/src/pages/SignIn.jsx b/client/src/pages/SignIn.jsx index 6fb29a5..a5b311b 100644 --- a/client/src/pages/SignIn.jsx +++ b/client/src/pages/SignIn.jsx @@ -363,11 +363,14 @@ export default function Signin() { } }; - const handleGitHubLogin = () => { - console.log("GitHub login clicked"); - //implement GitHub OAuth login logic here later -}; - +const handleGitHubLogin = async () => { + try { + toast.info("GitHub login feature is coming soon! Please use email/password login."); + } catch (error) { + console.error("GitHub login error:", error); + toast.error("GitHub login is currently unavailable. Please use email login."); + } +}; master return ( <> diff --git a/client/src/routes/routes.jsx b/client/src/routes/routes.jsx index f4c7072..e5b824e 100644 --- a/client/src/routes/routes.jsx +++ b/client/src/routes/routes.jsx @@ -38,7 +38,6 @@ const router = createBrowserRouter([ children: [ { index: true, element: }, { path: "about", element: }, - { path: "blog", element: }, { path: "contactus", element: }, { path: "news", element: }, { path: "contributors", element: }, @@ -55,28 +54,6 @@ const router = createBrowserRouter([ }, ], }, - - { - - path: "care-co-pilot", - element: , - }, - { - path: "*", - element: , - handle: { noLayout: true }, - }, - - { - path: "babyfeeder", - element: , - }, - { - path: "sleeper", - element: , - - }, - { path: "learning-hub", element: }, { path: "vaccine-reminder", element: }, { path: "growth-tracker", element: }, @@ -84,8 +61,7 @@ const router = createBrowserRouter([ { path: "terms-of-service", element: }, { path: "cookie-policy", element: }, { path: "services", element: }, - { path: "github-login-redirect", element: }, - +{ path: "github-login-redirect", element: }, master { path: "*", element: , handle: { noLayout: true } }, ],