Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Aug 4, 2025

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.

…ion and caching

- Updated buildspec.yml to clear Next.js cache before builds, verify S3 uploads, and invalidate CloudFront cache, ensuring fresh deployments and robust error handling.
- Modified next.config.ts to prevent caching of POST requests and improve server action stability, enhancing performance and reliability.
[dev] [claudfuen] claudio/fix-file-upload
- Removed unnecessary blank lines in buildspec.yml to enhance clarity and maintainability.
- Reformatted allowedOrigins in next.config.ts for better readability while preserving functionality.
- Added CommentsModule and CommentsService to handle comment-related operations.
- Introduced AttachmentsModule and AttachmentsService for managing file attachments.
- Enhanced API with new endpoints for creating, updating, and deleting comments, including support for attachments.
- Integrated AWS S3 for file storage and retrieval, ensuring secure and efficient handling of attachments.
- Updated app.module.ts to include new modules and configured global settings for environment variables.
- Refactored existing services and controllers to accommodate new comment and attachment features, improving overall functionality and user experience.
- Updated the Trust model to add support for HIPAA compliance, including new fields for `hipaa` and `hipaa_status`.
- Enhanced TrustPortal settings and components to manage HIPAA status alongside existing frameworks (SOC 2, ISO 27001, GDPR).
- Introduced new actions and UI elements for toggling and updating HIPAA compliance status.
- Updated package version for @trycompai/db to 1.3.1 to reflect changes in the database schema.
- Added migration script to alter the Trust table for HIPAA compliance integration.
- Updated CommentForm and CommentItem components to utilize new API hooks for managing comments and attachments, simplifying the codebase.
- Removed unnecessary interfaces and server action calls, streamlining the comment creation and editing processes.
- Introduced optimistic updates for task attachments, improving user experience during file uploads and deletions.
- Enhanced error handling and response management in the API client for better reliability.
- Simplified loading states and UI elements in TaskBody component for improved clarity during attachment loading.
- Introduced `useOptimisticComments` and `useOptimisticTaskAttachments` hooks to enhance user experience with optimistic updates for comment creation, updates, and deletions.
- Simplified optimistic data handling by wrapping API responses in expected formats, improving cache management and rollback capabilities.
- Updated existing hooks to follow official SWR patterns, ensuring consistency across the application.
[dev] [claudfuen] claudio/fix-file-upload
- Enhanced `useOptimisticComments` and `useOptimisticTaskAttachments` hooks to better align with the Comment and Attachment type structures.
- Updated optimistic data handling to ensure correct replacement of optimistic entries with real API responses, improving cache management.
- Streamlined the optimistic data structure for both comment and attachment operations, ensuring consistency and reliability during updates and deletions.
- Added auto-resize functionality to the description textarea in TaskBody component, enhancing user experience by dynamically adjusting height based on content.
- Refactored textarea handling to improve responsiveness during user input and programmatic changes.
- Cleaned up unused input handling code for better maintainability.
[dev] [claudfuen] claudio/fix-file-upload
- Introduced NEXT_PUBLIC_API_URL to the environment configuration, allowing for dynamic API endpoint management.
- Updated turbo.json to include the new environment variable in the build process.
- Enhanced env.mjs to support the new variable, ensuring it is accessible throughout the application.
… URL

- Replaced direct access to process.env.NEXT_PUBLIC_API_URL with env.NEXT_PUBLIC_API_URL for improved environment variable management.
- Ensured consistency in accessing environment variables across the application.
[dev] [claudfuen] claudio/fix-file-upload
- Deleted unused files related to comment creation, deletion, updating, and attachment management to streamline the codebase.
- Cleaned up associated test files to reflect the removal of these actions, ensuring the test suite remains relevant and maintainable.
- Enhanced overall project organization by eliminating obsolete code components.
[dev] [claudfuen] claudio/fix-file-upload
@cursor
Copy link

cursor bot commented Aug 5, 2025

🚨 Bugbot Trial Expired

Your Bugbot trial has expired. Please purchase a license in the Cursor dashboard to continue using Bugbot.

- Added configuration for cross-subdomain cookies in the authentication utility, allowing cookies to be shared across all *.trycomp.ai subdomains.
- This enhancement improves user experience by maintaining session consistency across different subdomains.
[dev] [claudfuen] claudio/fix-file-upload
…cation

- Refactored ApiClient to utilize Bearer tokens for authentication instead of session cookies, enhancing security and modernizing the authentication method.
- Implemented logic to store Bearer tokens in localStorage upon successful authentication and retrieve them for API calls.
- Updated auth utility to include Bearer token handling, ensuring consistent authentication across the application.
- Introduced JWT authentication in the HybridAuthGuard, replacing session-based authentication.
- Updated types to reflect the shift to JWT, removing session-related interfaces.
- Added JwtTokenManager component to manage JWT token storage and retrieval.
- Refactored ApiClient to utilize JWT tokens for API calls, enhancing security.
- Updated auth utility to support JWT handling, ensuring consistent authentication across the application.
- Added Jwks model to the database schema for Better Auth JWT plugin integration.
[dev] [claudfuen] claudio/fix-file-upload
@cursor
Copy link

cursor bot commented Aug 5, 2025

Bugbot found 7 bugs

To see them, activate your membership in the Cursor dashboard.

- Created a new migration file to establish the "jwks" table in the database schema.
- The table includes fields for id, publicKey, privateKey, and createdAt, facilitating JWT key management.
[dev] [claudfuen] claudio/fix-file-upload
@cursor
Copy link

cursor bot commented Aug 5, 2025

Bugbot found 1 bug

To see it, activate your membership in the Cursor dashboard.

…package.json

- Bumped the version of @trycompai/db from 1.3.1 to 1.3.2 in both bun.lock and apps/app/package.json to ensure compatibility and access to the latest features and fixes.
- Added Prisma client setup in the new client.ts and index.ts files for database interactions.
- Updated service files to utilize the new database structure, replacing direct imports from @prisma/client with imports from the new @db module.
- Enhanced the .gitignore to exclude the Prisma schema file, ensuring it remains untracked.
- Introduced new database generation scripts in package.json to streamline schema management and generation processes.
- Deleted buildspec.yml files from both the app and portal directories to streamline the project structure.
- This change may indicate a shift in the build process or configuration management.
- Improved HybridAuthGuard to clarify authentication methods and error messages.
- Updated JWT handling to extract user information directly from the payload.
- Added new BetterAuthUser and BetterAuthSession interfaces for better type definitions.
- Refactored auth client to utilize Bearer tokens and removed legacy JWT retrieval logic.
- Enhanced session creation logic to set active organization based on user membership.
…authentication types

- Deleted BetterAuthUser, BetterAuthSession, and BetterAuthSessionResponse interfaces to simplify authentication type definitions.
- Updated comments to clarify the focus on API keys and JWT tokens.
[dev] [claudfuen] claudio/fix-portal
- Updated ApiClient to retrieve JWT tokens from localStorage and session responses.
- Enhanced authClient to store both Bearer and JWT tokens for improved authentication handling.
- Added logging for better visibility of token retrieval processes.
- Removed legacy Bearer token retrieval from ApiClient and authClient.
- Introduced jwtManager to handle JWT token storage, retrieval, and automatic refresh.
- Updated ApiClient to utilize the new jwtManager for authentication.
- Enhanced logging for better visibility of token operations.
[dev] [claudfuen] claudio/fix-portal
@vercel vercel bot temporarily deployed to staging – portal August 6, 2025 17:52 Inactive
- Deleted legacy favicon and manifest links from the layout component to streamline the HTML structure.
- This change simplifies the layout and focuses on essential elements.
- Deleted the quality attribute from the Avatar component in the user menu to streamline the code and improve performance.
[dev] [claudfuen] claudio/fix-portal
@cursor
Copy link

cursor bot commented Aug 6, 2025

Bugbot found 3 bugs

To see them, activate your membership in the Cursor dashboard.

… environment configuration

- Updated environment variable references from BETTER_AUTH_URL to NEXT_PUBLIC_BETTER_AUTH_URL across multiple files to ensure consistency and proper usage in public contexts.
- Adjusted related logging and API calls to reflect the new variable name, enhancing clarity in the codebase.
[dev] [claudfuen] claudio/fix-portal
- Consolidated comment fetching logic by removing direct calls to getComments in multiple pages and replacing them with a reusable Comments component.
- Updated the Comments component to handle data fetching, loading states, and error handling, enhancing reusability and maintainability.
- Removed the CreateCommentForm component as its functionality is now integrated into the Comments component.
- This refactor simplifies the codebase and improves the user experience by providing a consistent comments interface.
[dev] [claudfuen] claudio/fix-portal
@claudfuen claudfuen merged commit be584ae into release Aug 6, 2025
12 of 13 checks passed
@claudfuen
Copy link
Contributor

🎉 This PR is included in version 1.51.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants