github N3XT0R/filament-lockbox 1.0.0-alpha.2

pre-releaseone month ago

Added

  • Integration Tests:
    Added full coverage for DecryptedTextDisplay including cases for:

    • showing decrypted value when input provided
    • warning message when input is missing
    • dash display when record does not implement HasLockbox
    • error when user does not implement HasLockboxKeys
    • dash display when decrypted value is empty or missing
  • Model Factories:
    Introduced factories for Lockbox, LockboxUser, and stub user models to simplify test setup.
    Added a reusable trait to declare newFactory for all test user model variations.

  • Traits:
    Added EnsuresModelContext trait to DRY up and standardize model context checks used across InteractsWithLockbox
    and InteractsWithLockboxKeys.

Fixed

  • Config:
    filament-lockbox.user_model can now be overridden in config/filament-lockbox.php instead of being hardcoded.
    This allows custom user model configuration in consuming applications.

  • Static Analysis:

    • Corrected PHPStan return type for Lockbox::user() to eliminate covariance error.
    • Suppressed false positives for unused internal traits in PHPStan config.
  • Tests:
    Stabilized integration tests by using factories instead of manually persisted models, ensuring migrations and model
    attributes (e.g. lockbox_provider) align with the schema.

Don't miss a new filament-lockbox release

NewReleases is sending notifications on new releases.