Skip to content

v1.4.1#18

Merged
b-at-neu merged 38 commits intomainfrom
dev
Feb 16, 2026
Merged

v1.4.1#18
b-at-neu merged 38 commits intomainfrom
dev

Conversation

@b-at-neu
Copy link
Copy Markdown
Collaborator

This pull request introduces a robust local development workflow for the database using Docker, standardizes the singleton settings pattern in the application, and improves developer onboarding and documentation. The changes streamline how developers set up and manage the local PostgreSQL database, enforce best practices for the settings record, and clarify project conventions.

Local Development Database Workflow:

  • Added a docker-compose.yml file to enable developers to spin up a local PostgreSQL database using Docker with persistent storage and health checks.
  • Updated package.json scripts to include commands for starting, stopping, and resetting the local database container, as well as running Prisma migrations and Studio.
  • Modified .env.example to provide ready-to-use local database connection strings for Docker-based development, and clarified production configuration.
  • Enhanced the README.md with detailed instructions for local database setup, workflow, troubleshooting, and command references, emphasizing Docker usage over manual PostgreSQL installation. [1] [2] [3] [4]

Settings Singleton Pattern:

  • Refactored the settings logic in lib/actions/settings.ts and lib/data/settings.ts to use a fixed ID ('default') and atomic upsert operations, ensuring only one settings record exists and simplifying retrieval and updates. [1] [2] [3] [4] [5]
  • Updated the settings form in app/admin/settings/settings-form.tsx to refresh the page after a successful update, ensuring UI reflects the latest settings. [1] [2] [3]
  • Added a migration to set the default value of endorsementsOpen to true in the database schema.

Developer Experience & Documentation:

  • Added a comprehensive .github/copilot-instructions.md to document commit, branch, and PR conventions, architectural patterns, file organization, and best practices for the project.
  • Improved error handling in lib/db.ts to provide clear instructions if DATABASE_URL is missing, guiding developers to set up their environment correctly.

Dependency Updates:

  • Updated minor versions of several dependencies and devDependencies for improved stability and compatibility. [1] [2]

Local Development & Database Management

  • Introduced Docker-based local PostgreSQL setup via docker-compose.yml and supporting package.json scripts for starting, stopping, and resetting the database. [1] [2]
  • Updated .env.example and README.md to document and facilitate Docker-based database development, including troubleshooting and workflow tips. [1] [2] [3] [4] [5]

Settings Singleton Refactor

  • Enforced a singleton pattern for the settings record using a fixed ID and upsert logic in both data access and mutation, preventing duplicates and simplifying logic. [1] [2] [3] [4] [5]
  • Updated the admin settings form to refresh after updates, ensuring the UI stays in sync. [1] [2] [3]
  • Added migration to set default value for endorsementsOpen.

Developer Experience & Documentation

  • Added .github/copilot-instructions.md to standardize contribution and architectural practices.
  • Improved error handling for missing database environment variables.

Dependency Updates

  • Bumped several dependencies and devDependencies to latest patch versions. [1] [2]

dependabot Bot and others added 30 commits February 14, 2026 16:51
Bumps the development-dependencies group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react).


Updates `@types/node` from 25.2.0 to 25.2.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/react` from 19.2.13 to 19.2.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.2.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: "@types/react"
  dependency-version: 19.2.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the production-dependencies group with 2 updates: [dotenv](https://github.com/motdotla/dotenv) and [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react).


Updates `dotenv` from 17.2.4 to 17.3.1
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](motdotla/dotenv@v17.2.4...v17.3.1)

Updates `lucide-react` from 0.563.0 to 0.564.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/0.564.0/packages/lucide-react)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-version: 17.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: lucide-react
  dependency-version: 0.564.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
…n-dependencies-6b8dbf03b7

Bump the production-dependencies group with 2 updates
…nt-dependencies-bef923c98e

Bump the development-dependencies group with 2 updates
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
…ettings

#14 Fix Endorsements Open Default Value
b-at-neu and others added 8 commits February 14, 2026 13:41
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
#11 Fix Saving Settings Issue and Prevent Duplicate Rows
@b-at-neu b-at-neu self-assigned this Feb 16, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
senate-path Ready Ready Preview, Comment Feb 16, 2026 1:56am

@b-at-neu b-at-neu merged commit 6c510be into main Feb 16, 2026
2 checks passed
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.

2 participants