0.5.0
Added
- New
Field::HasOneforhas_oneassociations. - A JSON:API for repositories at
/uchi/api/:resource, with pagination, search, and sorting. It uses the same authentication as the admin UI by default; overrideUchi::Api::ApplicationControllerto authenticate it differently. -
Repository.for_controller_namereturns the repository with the givencontroller_name. -
Repository#find_allaccepts an array of sort orders, applied in order.
Fixed
- The close button on toasts, e.g. flash messages, now dismisses the toast.
-
Field::BelongsTois no longer sortable by default. Sorting by it failed with an SQL error, since the association isn't a column. Pass a lambda tosortableto sort by a column in the associated table. -
ActionResponse#turbo_streamyields a Turbo Stream builder to its block, as documented. Callingturbo_stream.remove(record)inside the block previously raisedNameError. -
Field#readeraccepts a block, e.g.reader { |record, field_name| ... }. It previously raisedArgumentError.