Skip to content

v3.0.0-beta.11

Latest
Compare
Choose a tag to compare
@fgatti675 fgatti675 released this 13 Dec 17:43
· 39 commits to main since this release
  • New Next.js template for FireCMS PRO. You can now create a new project with the PRO template using the CLI.
  • [BREAKING] Removed userRoles from AuthController. You can now access the roles prop in the user object directly
  • [BREAKING] Many FireCMS UI sizes have been adjusted for better consistency. This will affect you only if you are using
    custom components.
    • smallest or tiny have been renamed to small.
    • small has been renamed to medium.
    • medium has been renamed to large.
  • [BREAKING] For self-hosted versions, there has been a change in the API for the data management controllers. The
    authController is now passed to the User Management controller, instead of the other way around. The
    userManagementController can be used as an auth controller, but with all the added logic for user management.

❌ Code before:

    /**
 * Controller in charge of user management
 */
const userManagement = useBuildUserManagement({
        dataSourceDelegate: firestoreDelegate
    });

/**
 * Controller for managing authentication
 */
const authController: FirebaseAuthController = useFirebaseAuthController({
    firebaseApp,
    signInOptions,
    loading: userManagement.loading,
    defineRolesFor: userManagement.defineRolesFor
});

✅ Code after:

    /**
 * Controller for managing authentication
 */
const authController: FirebaseAuthController = useFirebaseAuthController({
        firebaseApp,
        signInOptions
    });

/**
 * Controller in charge of user management
 */
const userManagement = useBuildUserManagement({
    dataSourceDelegate: firestoreDelegate,
    authController
});
  • Added many "use client" directives to UI components.
  • Fixed issues in collection editor code dialog.
  • Updated web styles and integrated improvements in Docusaurus.
  • Enhanced styling for empty references and minor design tweaks.
  • Continued work in progress on Editor custom components.
  • Reintroduced dark primary color variant for better theme options.
  • Minor web updates for improved aesthetics and functionality.
  • Fixed a bug where the Editor was not saving false values.
  • Replaced all instances of gray and slate colors with more unified surface and surface-accent colors for UI
    consistency.
  • Added Avatar component fallback and integrated ESLint configuration into templates.
  • Enhanced error handling in forms and improved cloud error messages.
  • Refactored user management logic for better code organization.
  • Improved the handling of boolean switch properties in configurations.
  • Introduced state management for children in ArrayContainer.
  • Added a recipe for slug creation, improving URL handling and SEO.
  • Fixed crash issues in repeat fields for subproperties and addressed various minor styling and functionality bugs.
  • Made improvements to heatmap responsiveness (HMR fixes).
  • Refactored text search functionalities for better efficiency and added relevant documentation.
  • Fixed issues with number input fields blocking scroll and replaced date picker with native HTML date input for
    consistency.
  • If you are using the Select component, you don't need to provide a renderValue function anymore. The component
    will handle it automatically.
  • Custom preview properties are now rendered if the value is undefined.
  • Fixed for Cloud version refreshing navigation too often.
  • Fix for local search not working when returning to a collection.
  • Fix for bug when selecting a read only entity.
  • Fixed selection bug in collection groups for entities sharing id.
  • Reference previews now take into account arrays of images for the preview image.