Commit Graph

654 Commits

Author SHA1 Message Date
gbuomprisco
2f082b1c56 Refactored Scopes for oAuth providers 2024-09-03 16:13:47 +02:00
gbuomprisco
7c7c3340a6 Updated dependencies 2024-09-03 13:51:29 +02:00
gbuomprisco
5d8e4b24d7 Fix correct locale env variable 2024-09-03 13:50:22 +02:00
gbuomprisco
65a04fcf1b Merge remote-tracking branch 'origin/main' 2024-09-03 12:18:51 +02:00
Giancarlo Buomprisco
fafcafc221 Updated UI package to work with the new Shadcn CLI (#59)
Updated UI package to work with the new Shadcn CLI
2024-09-03 18:17:51 +08:00
Giancarlo Buomprisco
b3b061fc2e Remove RQ experimental (#60)
* Updated dependencies

* Remove RQ Experimental - unused and some customers report issues with it
2024-09-03 18:17:11 +08:00
gbuomprisco
8a0648be4a Updated dependencies 2024-09-03 11:47:19 +02:00
gbuomprisco
53302fba7e Update dependencies
Upgraded multiple dependencies across the project, including @types/node to ^22.5.1 and @supabase/supabase-js to ^2.45.3. This change also includes updates to react-related types and various other packages to their latest versions to maintain compatibility and leverage new features.
2024-08-31 17:47:21 +02:00
gbuomprisco
0c415be8ee Refactor account-selector to use useMemo instead of useEffect
Replaced useEffect with useMemo for computing the account value. This simplifies the state management and ensures that the value is memoized based on the selectedAccount prop.
2024-08-30 17:05:57 +02:00
Giancarlo Buomprisco
5fada83913 Fix invitations to lower roles (#58)
Adjusted the SQL query to include a condition for roles at the same hierarchy level. This ensures that users with the same level of permission can properly manage invitations, improving the accuracy of role-based access control.
2024-08-30 20:43:17 +08:00
Giancarlo Buomprisco
e23489d308 Fix RLS Policy for Storage preventing non-uuid file names (#57) 2024-08-30 20:39:10 +08:00
gbuomprisco
94d0c1607d Fix async rendering in email templates
Updated `render` calls to be `await` in account-delete and invite email templates to ensure proper asynchronous operation. Added an empty line in `account-webhooks.service.ts` for code clarity.
2024-08-29 11:46:18 +02:00
gbuomprisco
d477a5c7bb Update dependencies to latest versions
Upgraded various dependencies across multiple packages to their latest versions, including `@supabase/supabase-js` to `2.45.2`, `next` to `14.2.7`, and `react-hook-form` to `7.53.0`. This ensures compatibility and includes the latest features and bug fixes.
2024-08-29 11:35:54 +02:00
gbuomprisco
bfe16a24de Switch to server-admin-client in dashboard loader. Reverts wrong refactoring to new clients. 2024-08-29 11:32:31 +02:00
gbuomprisco
5cc3c2c097 Upgrade dependencies to latest versions
Updated multiple packages including @marsidev/react-turnstile, @tanstack/react-query, @types/react, lucide-react, next, and others to their latest versions. This ensures we stay up-to-date with the latest features and bug fixes.
2024-08-22 10:36:42 +02:00
gbuomprisco
015df51cf9 Add type annotations and import missing dependencies
Added type annotations to CustomMarkdocTags to ensure type safety. Also, included missing imports for Schema and block, improving the integrity of the file.
2024-08-22 10:32:17 +02:00
Giancarlo Buomprisco
1d10dd210a Refactor to support custom Markdoc components (#52)
* Refactor to support custom Markdoc components

Introduced a new file for custom Markdoc components and updated the client to render Markdoc content using React components. Modified content renderer to handle React nodes instead of dangerously setting inner HTML.

* Add custom Markdoc tags support in Keystatic

Introduced `CustomMarkdocTags` for defining user tags. Updated `transform` to accommodate the new custom tags, enhancing tag customization in the CMS.
2024-08-22 04:34:10 +08:00
gbuomprisco
2afa736f4c Update dependencies across multiple packages
Upgraded various dependencies in package.json files and pnpm-lock.yaml to their latest versions. This includes updates to @tanstack/react-query, lucide-react, and @playwright/test, among others, to ensure compatibility and improved performance.
2024-08-19 19:24:12 +02:00
gbuomprisco
089fd37ece Refactor Supabase type imports for improved clarity
Replaced specific object paths with generic type helpers across several files to enhance readability and maintainability. This change standardizes the import patterns and type definitions for database tables and enums.
2024-08-16 12:48:29 +02:00
gbuomprisco
475325d5eb Add onClose callback to LemonSqueezyEmbeddedCheckout
This update introduces an optional onClose callback for the LemonSqueezyEmbeddedCheckout component. The callback is triggered when the "PaymentMethodUpdate.Closed" event occurs, providing a way to execute custom logic upon closing the payment window. Additionally, proper cleanup of the script element is implemented in the useEffect hook.
2024-08-16 12:32:01 +02:00
gbuomprisco
8647c13896 Integrate user traits into event payloads
Extends the user traits (e.g., email) in dispatch events and integrates monitoring to identify users alongside emitting events. Additionally, ensures the analytics service captures these traits when identifying users.
2024-08-16 11:00:37 +02:00
gbuomprisco
9b114454e6 Update dependencies across multiple packages
Upgraded various library versions for monitoring, UI, ESLint, and other dependencies. This includes changes to `@sentry/nextjs`, `tailwindcss`, `eslint-config-turbo`, and various other packages to ensure compatibility and enhance features. Changes were reflected in `pnpm-lock.yaml` to maintain consistency.
2024-08-16 10:29:00 +02:00
gbuomprisco
ff18a294ad Refactor Supabase client usage
Replaced various Supabase client imports with standardized admin and server clients across multiple files. This change ensures consistent and appropriate usage of admin and non-admin Supabase clients in server actions and services.
2024-08-14 13:43:53 +02:00
Giancarlo Buomprisco
ba6e649461 Refactored Supabase Clients using the new recommended approach by Supabase by centralizing all clients around one single implementation. (#51)
The previous clients have been marked as deprecated and will be removed at some point.
2024-08-14 17:13:59 +08:00
gbuomprisco
2f0c4b4ae3 Update dependencies across multiple packages
Upgraded several dependencies, including `wp-types`, `tailwind-merge`, `supabase`, and `typescript-eslint` plugins, to their latest versions. This ensures compatibility and includes critical bug fixes and performance improvements.
2024-08-13 13:00:21 +02:00
gbuomprisco
085980316c Enable conditional password update card in settings page
Added a conditional check for displaying the password update card in the account settings page based on the new `enablePasswordUpdate` feature flag. This ensures the card is shown only if the password update feature is supported.
2024-08-13 12:58:24 +02:00
gbuomprisco
2d6d95d72a Add ready method to monitoring services
Implemented a ready method for all monitoring services to standardize initialization readiness checks. Updated initialization logic in SentryMonitoringService to determine environment and invoke appropriate client initialization.
2024-08-13 12:56:51 +02:00
gbuomprisco
29e23c837d Update dependencies in multiple packages
Upgraded various dependencies including "@tanstack/react-query" to 5.51.23, "tailwindcss" to 3.4.9, "lucide-react" to 0.427.0, and "tailwind-merge" to 2.5.0. These updates were applied across multiple packages to ensure compatibility and access to the latest features and bug fixes.
2024-08-12 11:00:36 +02:00
gbuomprisco
f054db212b Limit API results to finite values only
Previously, the API call would attempt to limit results even if the limit was set to Infinity. This commit ensures that the 'per_page' parameter is only appended if the limit is a finite number.
2024-08-11 12:31:48 +02:00
gbuomprisco
3d7a7c6ce8 Set limit to Infinity in getContentItems calls
Added a limit parameter with a value of Infinity to the getContentItems calls for 'posts' and 'documentation' collections. This ensures all items are retrieved without any restrictions.
2024-08-11 12:15:33 +02:00
gbuomprisco
babdecb78f Refactor code and update dependencies
Rearranged imports for better organization and readability across multiple files. Updated the `react-i18next` dependency to version 15.0.1 in various `package.json` files. Adjusted formatting in multiple TypeScript files to ensure code style consistency.
2024-08-11 12:04:49 +02:00
gbuomprisco
e3503d8d47 Update parameter names and add Node.js type definitions
Renamed `url` to `path` in `trackPageView` method to reflect its actual use. Added `@types/node` package to the dependencies for improved type safety and development experience.
2024-08-07 12:38:42 +02:00
gbuomprisco
573f3495e6 Updated dependencies 2024-08-07 10:30:20 +02:00
gbuomprisco
d7560654e9 Update invite and confirmation email templates
Refactor the styling and layout of invite-user and confirm-email HTML templates. Adjusted inline CSS and font declarations for consistency and readability.
2024-08-06 14:29:38 +02:00
gbuomprisco
c35631ac73 Initialize analytics service upon creation
This change ensures that each analytics service is initialized immediately after it is created. By calling the `initialize` method on the service, we ensure all necessary setup steps are performed. This prevents potential issues related to uninitialized service use.
2024-08-06 14:19:57 +02:00
gbuomprisco
2565b8bcb9 Add conditional display for monthly price in Price component
This commit introduces a prop `isMonthlyPrice` to the `Price` component, allowing for dynamic control over the display of the monthly price label. By default, it shows the monthly price, but this behavior can now be customized based on the `alwaysDisplayMonthlyPrice` prop passed down to the `Price` component.
2024-08-05 19:42:47 +02:00
gbuomprisco
9ca094ccf6 Add support to always display monthly pricing
Introduced a prop `alwaysDisplayMonthlyPrice` for the pricing table component. This prop enforces the display of monthly pricing even for yearly plans. Modified relevant function calls and default values to incorporate this new functionality.
2024-08-05 18:48:35 +02:00
gbuomprisco
790cc09338 Update dependencies across multiple packages
This commit upgrades various dependencies including @tanstack/react-query, lucide-react, react-hook-form, and autoprefixer to their latest versions. These updates aim to ensure compatibility and take advantage of the latest features and fixes. Additionally, it updates @supabase/postgrest-js, @sentry/nextjs, and stripe libraries in the pnpm-lock.yaml file.
2024-08-05 17:04:53 +02:00
gbuomprisco
6fee1c086a Merge remote-tracking branch 'origin/main'
# Conflicts:
#	packages/ui/package.json
#	packages/ui/src/shadcn/breadcrumb.tsx
2024-08-04 17:26:29 +02:00
Giancarlo Buomprisco
e696f1aed0 Design Updates: Breadcrumbs, Empty State, new Charts and new colors
Design Updates: Breadcrumbs, Empty State, new Charts and new colors

* Add Breadcrumb component to UI package

* Add AppBreadcrumbs for improved navigation: Replaced static text descriptions with the new AppBreadcrumbs component across multiple pages to enhance navigation. Addressed an issue with Supabase client warnings by temporarily suppressing getSession warnings. Also made minor UI adjustments, including adjustments to heading styles and layout features.

* Enhance UI styling and configuration settings: Updated various UI components and global styles to improve styling consistency and responsiveness.

* Update global styles and adjust padding: Updated several CSS variables for improved color accuracy and appearance. Added padding to admin account page body for better layout consistency.

* Refactor UI components and adjust styling: Replaced Heading tags in Plan Picker with span for consistency. Added active and hover states to buttons in the sidebar. Refined background, layout styling, and color schemes across various components. Removed sidebar case in Page component switch statement.

* Add Chart Components and Integrate into Dashboard: Introduced `recharts` library and created `Chart` components. Updated dashboard to use the new components and enhanced UI/UX with descriptions and restructured cards.
* Enhance dashboard demo UI layout: Refactor the layout by adjusting flex properties and spacing classes to improve component alignment. Update dummy data generation and Figure font size for better visual consistency.

* Update localization keys for navigation labels: Changed localization keys for tab labels to use 'routes' prefix for consistency. Adjusted corresponding component references and added missing keys for routes. This ensures better organization and uniformity in the code.

* Add EmptyState component and enhance account handling: Introduced a new EmptyState component for UI consistency and updated JSON locales with 'account' route. Modified HomeAddAccountButton to accept className prop and refactored HomeAccountsListEmptyState to use the new EmptyState component. Updated navigation config to align labels in locales.

* Add locale support and enhance currency formatting: This commit introduces locale-based currency formatting across billing components by utilizing the `useTranslation` hook to fetch the current language. It also refactors the `formatCurrency` function to accept an object parameter for better readability and reusability.

* Fix typo in devDependencies section of template generator: Corrected a syntax error in `package.json.hbs` template affecting the `@kit/tsconfig` entry. The change ensures that the dependency is properly defined and prevents potential issues during package management.

* Update heading levels and add tracking-tight class in auth shell: Changed Heading components from level 4 to level 5 and added the 'tracking-tight' class in multiple auth-related pages. This improves visual consistency and better aligns the typography across the application.
2024-08-04 23:25:28 +08:00
gbuomprisco
4ac90f322a Add Breadcrumb component to UI package
Implemented the Breadcrumb component with various subcomponents including BreadcrumbList, BreadcrumbItem, and BreadcrumbLink. Updated package.json and pnpm-lock.yaml to include the new Breadcrumb component.
2024-08-01 19:51:04 +02:00
gbuomprisco
23154c366d Remove Cloudflare mailer implementation, update dependencies and updated code to reflect stricter EsLint settings
Deleted CloudflareMailer class and its implementation from the mailers package. Updated dependencies across various packages, converting certain imports to use `type` only, and bumped versions for packages like `react-query`, `lucide-react`, and others.
2024-08-01 14:57:55 +02:00
gbuomprisco
5c28eaabeb Removed types from the Plugins which mistakenly made it to the generated types 2024-07-31 17:57:07 +02:00
gbuomprisco
0935ecd90f Update ESLint and Supabase dependencies
Upgraded `@typescript-eslint` plugins and parser from ^7.17.0 to ^7.18.0 and `supabase` from ^1.187.8 to ^1.187.10. These updates incorporate recent improvements and bug fixes. Updated the pnpm-lock.yaml file to reflect these changes and ensure compatibility.
2024-07-30 12:18:37 +02:00
gbuomprisco
7b2af5d3a9 Update key dependencies for bug fixes and improvements
Updated `@supabase/supabase-js` from ^2.44.4 to ^2.45.0 in multiple packages to gain recent enhancements and bug fixes. Also updated `lucide-react` and `@types/node` to their latest versions to ensure consistency and leverage new features. Adjusted the pnpm-lock file accordingly to reflect these changes.
2024-07-29 11:15:45 +02:00
gbuomprisco
2c59dfd7f0 Updated dependencies 2024-07-26 21:10:58 +02:00
gbuomprisco
4eef94fcd6 Refactor analytics event handling and manager setup
Updated event handling in `analytics-provider.tsx` to return results, enhancing consistency. Added a new function `registerActiveServices` in `analytics-manager.ts` for initializing active services, streamlining provider setup. Clarified types for `AnalyticsProviderFactory` to accept optional configuration.
2024-07-26 21:09:02 +02:00
gbuomprisco
b9e9b8af48 Refactor analytics services to support multiple providers
The analytics manager has been significantly refactored to allow the use of multiple providers simultaneously. The API has been adjusted, replacing the single active service with a new Map called activeServices, to hold the active analytics services. Additionally, several methods have been modified to return promises rather than void. The 'defaultProvider' property has been removed, as it no longer fits into the system architecture.
2024-07-23 10:49:04 +02:00
gbuomprisco
24c2ea2d27 Update various package versions
Several of the package versions across the project have been updated. These include, among others, "typescript" in tailwind, "lucide-react" in team-accounts, billing, auth, and web, "@keystatic/core" in cms/keystatic, and "@playwright/test" in e2e. Other altered versions include those of "supabase" and "eslint" in web, along with numerous changes in the lock file.
2024-07-23 10:30:04 +02:00
gbuomprisco
84f838d3a1 Add feature flag for team account deletion
Updated the team account settings page to support a new feature flag for enabling team deletion. Only the primary user can delete the account if this feature is enabled. Also, corrected the required error message in feature-flags.config.ts file for more clarity.
2024-07-22 19:14:48 +02:00