All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Started since version 0.9.5
- [#279] move search records to a separate
search
action of typeresource
- fix of not showing empty badges in list and show (related to #418)
- e2e tests for sequelize
- [#401] - translations for nested properties
- [#364] - fix for node v12
- [#333] - translating "add new item" button in arrays
- [#418] - showing property.availableValues in Badges
- [#333] - translate Yes/No
- link changelog with github releases
- Change CI from travis to github actions
- add Cypress tests to CI
- [#422] - Cannot disable
datetime
andboolean
fields
- fixed warning in the terminal for password field
- fixed button hover in password field
- fix error when empty inputs weren't saved
- added
isSortable
to property options
- bring back old background color to the input
- fix drawer bottom line color
- improve DrawerPortal that it creates new DOM element if it doesn't exist
- fixing upload files problem
- Throwing ValidationError and ForbiddenError in action before hook causes action to return real json with error message.
- added
dev
yarn command
- export useSelectedRecord along with UseSelectedRecordResult
- fix Edit reference component to render nested objects.
- BREAKING CHANGE: Change interface of ValidationError and ForbiddenError, as they don't take error message as the first argument
- Type of error message is optional.
- not refreshing in list
- added component width to Action (#365)
- add the ability to hide action header (hideActionHeader)
- add option to change the default href for a resource in a sidebar
- add avatarUrl to CurrentAdmin
- add currentAdmin hook
- add
progress
touseRecord
hook - each DesignSystem component now has a custom css class starting with "admin-bro_" (#361)
- add option to set ResourceOptions['parent'] to null, which hides navigation parent (#169)
- Added Rect.memo to BasePropertyComponents which speeds up an UI.
- add Step and Stepper components
- add customParams to useRecord submit function
- add support for bunding JSON files.
- fixed show/hide filter button
- fix font from Theme not being passed to the frontend.
- move out bg color to a separate property in Theme
- useRecords automatically renders notice and redirects to given page if it was requested by the backend
- drop zone can have external state via files prop
- now after invoking action with no component there is no need to fetch data again from the backend to refresh the page.
- if assets are taken from
assetsCDN
they url has a timestamp which invalidates the cache on every deploy - now DropZone shows upload limit in different units
- empty loader bug #336
- error when setting AdminBro in root path #272
- add AdminBroOptions.assetsCDN
- add i18n support
- add "password" field [#112]
- add hooks: useNotice, useResourceEdit, useResourceNew, useResource, useResources
- add option to change resource id [#286]
- change the way of showing resources. From dedicated page to the UI based on Drawer
- change the way of entering the resource from a list - now entire row is clickable
- base the UI on a design-system ** drop bulma CDN dependency ** drop font-awesome CDN dependency ** move most of the dependencies to the global.bundle ** ui is responsive
- Fixed wrong show values on boolean fields in the list [#270]
- fixing wrong documentation in action interface [#264]
- fix wrong path when rendering on the server
- fix responsive issues
- remove AdminBroOption.assets.globalsFromCDN - they are always fetched from local bundle
- add ADMIN_BRO_SKIP_BUNDLE flag
- empty File object when uploading files
- introduction of a bulkActions
- added ErrorMessageBox component
- added custom pages in the sidebar
- add textarea property type
- export withNotice component
- change interface of ApiClient methods: change from
payload
todata
and reuse axios types - divide props for custom components to BasePropertyProps, EditPropertyProps, ShowPropertyProps and FilterPropertyProps
- Placeholder typo (was Placehoder)
- wrong property order [#223]
- PropertyOptions for nested properties (#244)
- Not showing 0 in list and show views (#247)
- Selected sidebar elements after page reload (#241)
- error when decorating nested properties [#220]
- add option to hide logo [PR: #226]
- add drop-area component
- change new and update actions to receive FormData
- add header option to ApiClient
- add isDisabled option to PropertyOptions
- add favicon to the branding options
- added source maps when NODE_ENV is not production
- export Types of Action Responses
- Improve Action interface that all fields are optional when passing via ResourceOptions
- Adjust default theme colours to comply with WCAG 2.0 contrast guidelines
- upgrade typescript to 3.7.3
- add option to pass any notice message in Action Response
- extend ValidationError to hold "base error" which if for entire record - not only for a particular property
- showing validation errors for nested mongoose fields [#200, #199]
- fixed issue with editing nested arrays: [#203]
- fixed overflow select problem in the filter [#189]
- by default assets are not fetched from CDN [#193]
- better API errors support [#190]
admin
cli withbundle
command [beta]- bring back tags showing total number of records in list action
- now bundle urls are written always in posix format - which fixes #136
- Export more types from "admin-bro"
- fix error when submit of entire record has been triggered by array add/remove buttons
- overlay error with select in filter - #189
- Id fields are now second in list by default (after title) - #189
- Improve typescript types export (fix errors when importing admin-bro)
- fix error with hidden resource filter
- 404 error has been seen when page loads - fixed.
- improve TypeScript setup by adding strict flags
- add 404 errors
- fix error with removing records
- all colors are added to the css theme - improve theme support
- migrate all remaining components to typescript
- added new component: Styled Link
- added ActionContext to both before nad after action hooks
- most of the app has been rewritten to typescript
- tsc check has been added to the build process
- linter has been updated to cover typescript
- documentation update to cover new types
- components can now be written in typescript
- isVisible and isAccessible have
record
passed to them [#139] - Action.After hook has also original request as a property
AdminBro.require
renamed toAdminBro.bundler
- components are now required via import { [ComponentName] } from 'admin-bro'
- bump up React version to 16.8.0
BaseRecord.toJSON
now takescurrentAdmin
as an argument
- fixed loading components on windows [#140]
- fixed issue with nested arrays [#135]
- remove AdminBro from page title [#121]
- change loader in list from a spinner to placeholder
- update documentation with new Components and adapters
- add option to define if globals should be fetched from CDM or from local bundle [#121]
- add
Placeholder
component - export all Application components, that users can also use them
- fixed errors seen when generating documentation (change <> to </React.Fragment>)
- new welcome screen
- PropertyTypes are now exported as they were before
alert
message when user is logged out
- obsolete
getRecord
action fromApiClient
- Added default color to ValueBlock [#133]
- fix ForbiddenError message
- Not present links to not accesible routes
- Custom components now are rendered always first (no matter if the field is an array or mixed type)
- support for Arrays in mongoose adapter [#90]
- support for Embeded objects in mongoose adapter [#110]
- BaseResource.param could return nested object
- fix error for nested fields in filter [#115]
- change deprecation message to better show which function is deprecated
- fix error for not existing route [#127]
- added action hooks [#123]
- access controll with BaseAction.isAccessible [#118]
- added new
list
action to the configuration - created new
ActionDecorator
object
- ResourceDecorator.recordsDecorator() in favour of new BaseAction.after hook
- ViewHelpers#listUrl in favour of ViewHelpers#resourceAction url
- create new record button is hidden when user cannot have an access to it [#122]
- add an option to pick default sort [#124]
- fixed a name of the version property (was
versions
instead of correct:version
) in AdminBroSettings