Skip to content

Instantly share code, notes, and snippets.

@tabacitu
Created November 3, 2022 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabacitu/6795fb3c6e0e10cfa3f8db7d9d65966d to your computer and use it in GitHub Desktop.
Save tabacitu/6795fb3c6e0e10cfa3f8db7d9d65966d to your computer and use it in GitHub Desktop.
New Backpack field checklist

New field checklist:

  • does the value get saved to the database?
  • does the value need to be casted to something in the Model? is it mandatory? should it support both?
  • can the dev increase/decrease the size using Bootstrap classes?
  • does resizing also work with Fluent field syntax? eg. ->size(6)?
  • does it support ->disabled() and ->readonly()
  • does it support ->default()?
  • has all jQuery been removed in favor of vanilla Javascript?
  • have the CSS and JS dependencies been loaded with @loadOnce?
  • have the CSS and JS dependencies been pushed to proper stacks (after_scripts and after_styles)
  • on error, does the field properly show the error?
  • does the field support prefix and suffix?
  • does the field support hint?
  • on validation error, does the field properly get the old value?
  • can the dev customize the configuration/parameters from PHP?
  • are you sure there are no visible strings that should be turned into translated strings?
  • does this field work inside the repeatable field?
  • does this field work with our CrudField JS Library? do all events there work on this field?
  • if the input is first on page, does the focus correctly set on the input?
  • if the input is first in a modal, does the focus correctly set on the input?
  • does the field have documentation? should it say it needs assets to be published to work?
  • does the field have a screenshot?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment