Skip to content

Add Duolingo Tracking Dashboard#20

Draft
google-labs-jules[bot] wants to merge 2 commits intomainfrom
duolingo-dashboard-13187624728466897877
Draft

Add Duolingo Tracking Dashboard#20
google-labs-jules[bot] wants to merge 2 commits intomainfrom
duolingo-dashboard-13187624728466897877

Conversation

@google-labs-jules
Copy link
Contributor

Implemented a mini dashboard for tracking Duolingo habits as requested.

  1. Backend: Created api/duolingo.js, an Edge Function (compatible with the existing project structure) that connects to a Neon PostgreSQL database using @neondatabase/serverless. It handles GET requests to fetch history and POST requests to add new daily records. It also handles lazy table creation.
  2. Frontend: Updated src/pages/duolingo.md (renamed from .md to .njk locally then reverted to .md with templateEngineOverride to maintain file extension consistency while enabling Nunjucks) to display the dashboard.
    • Added Chart.js to visualize accuracy over time.
    • Added a table to list detailed history (streak, accuracy, words, position).
    • Added a hidden/collapsible form to input new daily records.
  3. Configuration: The system relies on the DATABASE_URL environment variable being set in the Netlify project settings.

Verification was done using a Playwright script that mocked the API response to ensure the dashboard renders correctly with data. Tests pass.


PR created automatically by Jules for task 13187624728466897877 started by @si

- Create `api/duolingo.js` Edge Function to fetch and store Duolingo stats in Neon Postgres
- Update `src/pages/duolingo.md` to include a Chart.js dashboard and data table
- Install `@neondatabase/serverless` dependency
- Add form for manually adding daily records
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
11ty c2e92eb Jan 20 2026, 06:37 PM

@netlify
Copy link

netlify bot commented Jan 20, 2026

Deploy Preview for sijobling ready!

Name Link
🔨 Latest commit c2e92eb
🔍 Latest deploy log https://app.netlify.com/projects/sijobling/deploys/696fcb3b5c4fc10008520001
😎 Deploy Preview https://deploy-preview-20--sijobling.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Update `api/duolingo.js` to use `NETLIFY_DATABASE_URL` instead of `DATABASE_URL` for Neon connection.
- Update error message in `src/pages/duolingo.md` to reflect the correct environment variable name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants