Wpd 33 refactor msg gateway#66
Merged
Merged
Conversation
…fixed Checkbox styles
- Added a new `message_request_payloads` table to store request and response bodies separately for improved data privacy and retention policies. - Updated `MessageRequestLog` and related domain models to support payload storage. - Enhanced logging functionality in `SendHelper` to conditionally store request and response payloads based on dispatch metadata. - Updated tests to verify the correct behavior of payload storage and retrieval. This commit enhances the message dispatch system by ensuring that sensitive data is managed appropriately while maintaining operational logging capabilities.
…ment centralized error handling for settings updates.
- Added `inbox_message_id` to `message_request_logs` for improved tracking of messages. - Updated Go module dependencies to include `github.com/lib/pq` for PostgreSQL support. - Refined documentation on DTO usage in the presentation layer, emphasizing the separation of domain and presentation concerns. - Introduced new utility functions for inbox log handling and improved email content display logic. - Removed deprecated `SendTestModal` component and replaced it with a `GetStartedDialog` for better onboarding experience. This commit improves the overall structure and functionality of the inbox feature, ensuring better data management and user experience.
- Added utility functions for generating curl examples with workspace ID and client ID for improved onboarding experience in the frontend. - Refactored inbox-related components and hooks to utilize the new workspace ID structure, enhancing the overall user experience. - Changed workspace key references in documentation and code to use a UUID format instead of a slug for better consistency and clarity. This commit improves the database setup process and ensures a more robust handling of workspace identifiers across the application.
- Introduced Checkbox component with associated Storybook stories and tests to enhance form functionality. - Added GetStartedDialog, ConnectModal, and DisconnectModal components with tests to streamline user onboarding and integration management. - Implemented IntegrationRow and ApiKeyRow components with stories and tests for better integration handling and API key management. - Created AppHeader, AppFooter, AuthCard, and PageHeader components with corresponding tests and stories to improve overall layout and navigation. - Developed ThemeToggle and MessageGatewayLogo components to enhance theme management and branding. This commit enriches the frontend with essential UI components and ensures their functionality through comprehensive testing.
- Changed default guard name for roles and permissions from 'web' to 'msg_web' to align with the new messaging gateway structure. - Enhanced database migration scripts to include new indices for invitations and provider config fields, improving query performance. - Added tests for workspace API keys and email inbox functionalities to ensure robust integration and error handling. - Refactored inbox-related components and hooks to utilize updated API structures, enhancing user experience and data management. This commit improves the overall handling of roles and permissions while ensuring the frontend and backend are synchronized with the latest changes.
- Changed `content` to `content_html` in the email templates test to align with the updated data structure. - Added `reload` function mock to the integrations page test to enhance test coverage and functionality. - Introduced `activeWorkspace` to the workspaces page test to ensure proper state management during tests. - Updated SQL queries in the Go code to use `UNION ALL` and corrected type casting for improved query performance and accuracy. This commit enhances the testing framework and SQL query handling, ensuring better alignment with the current application structure.
…ment - Updated the Makefile and init-db.sh to reference the new script location for applying database seeds, improving organization. - Introduced a new apply-seeds.sh script to ensure idempotent SQL seed application, preventing issues during database initialization. - Modified the SQL seed files to include a guard name for roles, aligning with the updated permissions structure. - Enhanced the WorkspaceRepository interface and implementation to include owner ID management and added a delete method for better workspace handling. - Updated the PortalService and related handlers to support the new workspace creation logic, ensuring proper error handling and rollback mechanisms. This commit improves the database initialization process and enhances workspace management functionality, ensuring better alignment with the current application structure.
- Updated the `ShouldCaptureToInbox` method to simplify logic and ensure it only checks the `StoreMessageContent` flag. - Refactored the `dispatch` method in `GatewayService` to streamline message routing and inbox capture processes. - Introduced a new `routeMessage` method to handle message delivery based on dispatch mode, improving code organization. - Enhanced tests to verify the correct behavior of message dispatching and inbox capture under various configurations. - Updated frontend settings page to clarify the behavior of message retention in the inbox. This commit improves the overall message dispatch system, ensuring better clarity and functionality in capturing messages in the portal inbox.
…cess - Updated Makefile and init-db.sh to clarify the database initialization process, removing references to seed application during initialization. - Introduced a new ApplySeeds function in the database package to handle seed application on gateway startup, ensuring idempotency and proper execution order. - Removed the apply-seeds.sh script to simplify the seed application logic and prevent conflicts during database initialization. - Added tests for the new seed application functionality to ensure correct behavior and error handling. This commit enhances the database setup process by improving clarity and organization in seed management, aligning with the overall application structure.
- Refactored the `useInboxEmails` hook to introduce an `upsertMessage` function for better message management. - Updated the inbox API to include `fetchInboxEmailById`, improving email retrieval by ID. - Modified tests for the `useInboxEmails` hook and `EmailInboxPage` to utilize the new `upsertMessage` function, ensuring consistent behavior. - Enhanced the `PayloadInboxReader` to support email listing and deletion functionalities, improving inbox management. This commit improves the overall functionality and testing of the inbox email handling, ensuring better user experience and data integrity.
- Enhanced the CI workflow to include a readiness check for the server, ensuring it is fully operational before proceeding. - Removed the default configuration path from the server initialization, allowing for more flexible configuration management. - Updated the main function to clarify the configuration file path handling, defaulting to environment variables or a specified path. - Added support for an example configuration file in the application, improving the setup process for new developers. - Refactored health check endpoint in the router to return a structured JSON response, enhancing API clarity. This commit improves the CI process and server configuration management, ensuring better reliability and developer experience.
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.
No description provided.