Skip to content

Releases: bengr-digital/package.admin

0.9.2

25 Jul 22:26
Compare
Choose a tag to compare

Changes

  • Allow only auth users to access Me builtin page

Upgrade Guide

  • no changes are required to be made

Credits

0.9.1

25 Jul 22:24
Compare
Choose a tag to compare

Changes

Configuration

  • embed media-libary and activitylog configs
  • embed migrations of media-library, activitylog a auth libaries
  • logos properties of admin.php config are now reflected into response
  • global-seach in topbar is true only of at least one page with global search exists
  • fixing bugs in Logout global actions and in Builtin pages

Upgrade Guide

  • structure of page builder changed slightly so if frontend of admin is strict to structure of page builder response, than change it

Credits

0.9.0

17 Jul 20:50
Compare
Choose a tag to compare

Changes

Configuration

  • Modifing whole config
    • All api routes are now modified in admin.api
    • Dashboard, login and other important pages (even yours) are now putted into admin.components.pages.register with use of unique key. The page can be then resolved with use of Admin::getPageByKey('dashboard')
  • media-libarary and activity-log packages by spatie are now required by package
    • Also their migrations comes with migrations of this package
  • New method to register renderable handlers Admin::registerHandler(Handler $handrel)

AdminManager

  • registerComponents and registerComponentsFromDirectory is now part of AdminManager
  • admin alias for resolving from service container was changed to AdminManager::class
  • If page with key of me exists in admin.components.pages.register its automatically registered into UserMenu
  • Admin::serving method was changed to Admin::onServing
  • Methods like authUserModel, authTokenModel and more were prefixed with get
  • AdminManager was equiped with new methods getApiPrefix, getApiMiddleware, etc. that describes Api configuration
  • loginPage and dashboardPage methods on AdminManager were renamed to getLoginPage and getDashboardPage
    • These are basically just aliases for getPageByKey('dashboard') and getPageByKey('login')

API

  • Logout route is gone. Loging admin user out is processed by GlobalAction called Logout (you can see this one in admin.components.global_actions.register)

Pages

  • You are now able to use also class objects as middlewares in pages
  • Pages are now resolved in way Laravel Router resolves the routes
    • params specified in slug of specific page are binded to public same-name property on Page and are implicitly binded to that property by its type (Type of this property must be child of Model class)
    • if there is no public property on Matching same name as name of the param in slug, they wont be properly resolved
  • $model property on Page is gone and is no more used as Model for Global search. Instead new paramater called $globalSearchModel is used as model for global search instead
  • $slug on Page is being trimed now, allowing to define slug with '/' prefix without problem
  • $largeForm was removed from Page and is no more present in PageResource response
    • Therefore also getShowOnlyChildren() and withoutProps() methods were removed from Widget

Widgets

  • page is no more passed to FormWidget via current page instance, instead record for form is binded via record method exclusively
  • Property $widgetColumnSpan on Widgets was changed to $columnSpan as well as the setter method columnSpan() and getter method getColumnSpan()

Others

  • Adding testing environment including Unit tests
  • Exceptions and all other response Entities stoped using response function from bengr/support and started using regular laravel response function

Upgrade Guide

Configuration

  • Publish new configuration file admin.php because there were significant changes:
php artisan vendor:publish --tag="admin-config"
  • In Handler.php class remove registered renderable handlers for admin and register them with new builin method Admin::registerHandler($this)

AdminManager

  • Everywhere you were resolving AdminManager from service container by admin alias, you have to change that to resolve from AdminManager::class
  • Change all instances of Admin::serving to Admin::onServing
  • Carefully check that methods, that you are using from Admin facade are compatible (e.g. authUserModel or authTokenModel)
  • Everywhere you were using loginPage and dashboardPage methods, change them to be compatible

API

  • On client of administration you have to change logout logic to use logout global action instead of previous logging out route

Pages

  • Replace Page slugs to be compatible with new way of slugs with params
  • Remove $model property on Page and use new $globalSearchModel to describe model that should be used for global search

Widgets

  • Change all widgetColumnSpan() and others setters of columnSpan of widget to new setter columnSpan()

Others

  • Change all instances of using response function from bengr/support to use response function from laravel

Credits

0.5.3

28 Jun 16:24
Compare
Choose a tag to compare
  • add actionOnSubmit for FormWidget
  • add type for actions describing type of the action
  • detectUnsavedChanges on FormWidget

0.5.2

26 Jun 17:11
Compare
Choose a tag to compare
  • fixing typos in previous version

0.5.1

26 Jun 17:06
Compare
Choose a tag to compare
  • params for call and model property on actions (these props are, at this time, used only by Modal)

dynamic widget connection for actions inside of TableWidget

  • it will connect all actions, actionOnClick and bulkActions to current TableWidget instance (ofcourse if there is no handleWidgetId provided)

0.5.0

25 Jun 14:08
Compare
Choose a tag to compare
  • fixing static column names in ImageColumn getValue method
  • lazyloading methods for ChartWidget
  • actions and actionOnClick on TableWidget are able to automatically resolve which modal to open

0.4.9

24 Jun 16:26
Compare
Choose a tag to compare
  • remove rule for username input on login page

0.4.8

24 Jun 16:08
Compare
Choose a tag to compare
  • fix bugs after last release

0.4.7

23 Jun 15:29
Compare
Choose a tag to compare
  • builtin Settings, Login, Me and Dashboard page (rewritable)
  • builtin GlobalSearch GlobalAction
  • possibility to register global actions through admin config
  • cs translations for builtin pages
  • add modals builder route for getting instance of modal
  • lazyloaded modals
  • lazyloaded widgets
  • automated ids for widgets and automated connecting actions with modals and widgets (this is still in process so does not work 100%)
  • save function for Form is capable of saving PageEditor value
  • more convinient GlobalSearch on Page
  • automatically resolve hasLargeForm and isGloballySearchable
  • activity log on adminuser
  • bug fixed on table columns and other widgets
  • and more...