Skip to content

Fix TypeScript errors, secure config, and add testing infrastructure#9

Open
ViVaLaDaniel wants to merge 1 commit intomainfrom
fix-bugs-and-secure-config-18259409877844216673
Open

Fix TypeScript errors, secure config, and add testing infrastructure#9
ViVaLaDaniel wants to merge 1 commit intomainfrom
fix-bugs-and-secure-config-18259409877844216673

Conversation

@ViVaLaDaniel
Copy link
Copy Markdown
Owner

Project Purpose:
PermitPilot is an AI-powered Permit Application Management System designed to assist with identifying permits, generating checklists, and validating applications.

Changes:

  1. Bug Fixes:
    • Fixed src/lib/seed-db.ts to correctly use Firebase Firestore Modular SDK (doc() function).
    • Fixed src/components/ui/calendar.tsx to support react-day-picker v9 (replaced IconLeft/IconRight with Chevron).
  2. Security:
    • Refactored src/firebase/config.ts to use environment variables.
    • Created .env.local with the existing keys (moved from source).
  3. Testing:
    • Added vitest and vite-tsconfig-paths.
    • Added src/lib/utils.test.ts as a sample test.
    • Added test script to package.json.

Future Work / Needed Improvements:

  • Code Validator: Implement RAG integration in src/ai/flows/validate-permit-application-against-local-codes.ts to automatically fetch building codes.
  • Linting: Resolve ESLint configuration issues.
  • Testing: Expand test coverage to include AI flows and components.

PR created automatically by Jules for task 18259409877844216673 started by @ViVaLaDaniel

Co-authored-by: ViVaLaDaniel <110051738+ViVaLaDaniel@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 28, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • npm_install.log is excluded by !**/*.log
  • package-lock.json is excluded by !**/package-lock.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant