Tags: rybbit-io/rybbit
Tags
Refactor AccountInner and Organization components for improved readab… ( #484) * Refactor AccountInner and Organization components for improved readability and functionality - Consolidated import statements for better organization. - Streamlined JSX formatting and removed unnecessary line breaks for enhanced readability. - Replaced email validation regex with a dedicated `validateEmail` function for improved clarity. - Updated the RemoveMemberDialog component to enhance dialog structure and maintain consistency in button formatting. - Enhanced documentation for inviting users to clarify self-hosted instance workflows. * bump version * Update documentation for inviting users to clarify self-hosted instance workflows * Implement organization membership check in addUserToOrganization and refactor listOrganizationMembers for improved readability - Added getUserIsInOrg function to verify if a user is a member of an organization before allowing user addition. - Enhanced addUserToOrganization to return unauthorized status if the user lacks admin or owner role. - Refactored listOrganizationMembers to streamline query logic and improve code clarity. * Refactor organization management components and enhance query handling - Introduced USER_ORGANIZATIONS_QUERY_KEY for consistent query key usage across components. - Updated CreateOrganizationDialog and DeleteOrganizationDialog to invalidate user organizations query upon creation and deletion. - Improved OrganizationLayout by integrating CreateOrganizationDialog for streamlined organization creation. - Refactored import statements and JSX formatting for better readability and organization. * Refactor SignupPage for improved readability and consistency - Consolidated import statements for better organization. - Streamlined JSX formatting by removing unnecessary line breaks. - Enhanced domain validation error handling for clarity. - Updated button formatting for consistency across the component. * Refactor TopBar component for improved readability and functionality - Consolidated import statements for better organization. - Streamlined JSX formatting by removing unnecessary line breaks. - Enhanced admin role check to include IS_CLOUD constant for conditional rendering. - Improved link handling for signup based on the current hostname.
Fix rrweb (#434) * fix rrweb * Refactor session replay implementation and integrate rrweb - Replaced the import of rrweb with a require statement to resolve TypeScript module issues. - Defined a local interface for RRWebEvent to ensure type safety in event handling. - Updated the session replay recorder to utilize the new rrweb integration for recording events. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/analytics-script/sessionReplay.ts` * Enhance web vitals and session replay integration - Added asynchronous loading for web vitals and rrweb libraries to prevent blocking the main script execution. - Implemented error handling for failed library loads, ensuring graceful degradation of functionality. - Updated session replay recorder to check for rrweb availability before starting recording. - Refactored web vitals collector to initialize metrics tracking only after confirming library availability. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/analytics-script/index.ts` - `server/src/analytics-script/sessionReplay.ts` - `server/src/analytics-script/webVitals.ts` - `server/src/analytics-script/types.js` * Update analytics script to dynamically load libraries from configured host - Modified the session replay and web vitals scripts to load their respective libraries from the configured analytics host instead of hardcoded paths. - Updated the WebVitalsCollector and SessionReplayRecorder constructors to accept the configuration object, ensuring proper initialization with the analytics host. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/analytics-script/index.ts` - `server/src/analytics-script/sessionReplay.ts` - `server/src/analytics-script/webVitals.ts` * Enhance WebVitalsCollector initialization with configuration object - Updated the WebVitalsCollector to accept a configuration object, allowing for more flexible setup of analytics parameters. - Introduced a mock configuration in tests to ensure proper initialization and testing of the WebVitalsCollector functionality. Files modified: - `server/src/analytics-script/webVitals.test.ts` * Update analytics script paths to avoid ad-blocker detection - Changed the script loading paths for session replay and web vitals to use generic API endpoints, enhancing compatibility with ad-blockers. - Updated the server routes to serve the respective scripts from the new paths. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/index.ts` - `server/src/analytics-script/sessionReplay.ts` - `server/src/analytics-script/webVitals.ts` * Update script paths for session replay and web vitals to avoid ad-blocker detection - Changed the script loading paths for session replay and web vitals to use generic API endpoints, enhancing compatibility with ad-blockers. - Updated the respective files to reflect the new paths for loading scripts. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/analytics-script/sessionReplay.ts` - `server/src/analytics-script/webVitals.ts` * Refactor session replay implementation to reduce console logging - Removed excessive console logging from the session replay recorder to streamline the code and improve performance. - Updated the logic to handle rrweb loading and recording without logging unnecessary details, ensuring a cleaner output during execution. Files modified: - `server/public/script-full.js` - `server/public/script.js` - `server/src/analytics-script/sessionReplay.ts` * <message>
PreviousNext