Implement role management, enhance server safety, and refactor code#83
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.razorpayas a dependency inapi/package.jsonfor serverless deployments.Documentation and Deployment Updates
WEBSITE_CONTEXT.mdto document the Razorpay sponsorship feature, API endpoints, Vercel deployment configuration, and environment variable management. [1] [2] [3]CHANGELOG.md) to announce the new sponsorship and payment safety features..kilo/agent-manager.jsonfor local dev tooling, and updated.vscode/settings.jsonand.vscodeignorefor improved workspace and deployment hygiene. [1] [2] [3] [4]CNAMEfile, 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.