Skip to content

Implement role management, enhance server safety, and refactor code#83

Merged
ric-v merged 11 commits into
dev-asterix:mainfrom
ric-v:main
May 23, 2026
Merged

Implement role management, enhance server safety, and refactor code#83
ric-v merged 11 commits into
dev-asterix:mainfrom
ric-v:main

Conversation

@ric-v
Copy link
Copy Markdown
Member

@ric-v ric-v commented May 23, 2026

This pull request introduces a complete Razorpay payment integration for the PgStudio docs website, enabling users to sponsor development via a secure, production-ready checkout flow. The implementation includes a new "Pro Sponsor" pricing option on the landing page, a modular frontend checkout experience with dynamic API calls, and a secure serverless backend deployed via Vercel. Documentation and deployment instructions have also been updated to reflect the new payment capability.

Key changes:

Serverless API Implementation

  • Added three secure API endpoints under api/:
    • config.js: Serves the public Razorpay Key ID.
    • create-order.js: Creates Razorpay orders, validates inputs, and handles errors robustly.
    • verify-payment.js: Verifies payment signatures using HMAC-SHA256 and returns clear success/failure responses.
  • Added razorpay as a dependency in api/package.json for serverless deployments.

Documentation and Deployment Updates

  • Updated WEBSITE_CONTEXT.md to document the Razorpay sponsorship feature, API endpoints, Vercel deployment configuration, and environment variable management. [1] [2] [3]
  • Updated the changelog (CHANGELOG.md) to announce the new sponsorship and payment safety features.
  • Added .kilo/agent-manager.json for local dev tooling, and updated .vscode/settings.json and .vscodeignore for improved workspace and deployment hygiene. [1] [2] [3] [4]
  • Deprecated the old CNAME file, noting that custom domains are now managed via Vercel.

These changes collectively enable a secure, user-friendly sponsorship workflow and prepare the docs site for modern serverless deployment and payment processing.

ric-v added 11 commits May 13, 2026 19:30
- Added RolePrivilegeFlag type and RoleDesigner interfaces for managing role properties, privileges, and memberships.
- Implemented functions to generate SQL migration statements for role creation, updates, and privilege changes.
- Introduced delta detection for incremental changes in role configurations.
- Enhanced ResultCursorService to track row count attempts and errors, providing better diagnostics.
- Updated CursorWindowHandler and renderQueryResult to display row count status and errors in the UI.
- Introduced a development server using Express to handle API requests and serve static files.
- Added environment variable loading from a .env file for local development.
- Enhanced SSL connection handling for production environments to prevent automatic downgrades.
- Implemented parameter comment suggestions in SQL queries for better user experience.
- Added a production warning banner in the connection form to encourage enabling read-only mode.
- Updated various handlers to respect read-only mode settings and prevent write operations in production.
- Improved error handling and messaging for database connections and query executions.
- Added new CSS styles for the production warning banner and updated related JavaScript logic.
- Created a Vercel configuration file for deployment.
@ric-v ric-v merged commit 470f5b0 into dev-asterix:main May 23, 2026
3 of 13 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.

1 participant