Skip to content

Releases: substancelab/uchi

v0.1.5

07 Nov 15:35

Choose a tag to compare

v0.1.5 Pre-release
Pre-release

Added

  • Labels in the navigation can now be translated. If the navigation-specific translation key isn't set, we'll use the title translation for the repositorys index page.
  • The button to add a new model now falls back to the translation from common.new when the button-specific translation doesn't exist before falling back to "New %{model}".
  • The button to edit a model now falls back to the translation from common.edit when the button-specific translation doesn't exist before falling back to "Edit".
  • The button to delete a model now falls back to the translation from common.destroy when the button-specific translation doesn't exist before falling back to "Delete".
  • Page title for the new page can now be customized using a repository.[name].new.title translation. If that translation isn't present, the title falls back to repository.[name].button.link_to_new, and then common.new before ultimately falling back to "New %{model}"
  • Page title for the edit page can now be customized using a repository.[name].edit.title translation. If that translation isn't present, the title falls back to repository.[name].button.link_to_edit, and then common.edit before ultimately falling back to "Edit %{model}"
  • The label of the root item in breadcrumbs can now be translated using the translation key breadcrumb.root.label.

Fixed

  • BelongsTo fields no longer fail when showing an association where the associated record is nil.
  • BelongsTo dropdowns for optional associations now include a blank option.

v0.1.4

04 Nov 15:34
b6d3c0a

Choose a tag to compare

v0.1.4 Pre-release
Pre-release

Added

  • Uchi::Repository#title now dynamically checks for common methods to use as the string representation of a model, ultimately falling back to #to_s if none are found.
  • File field. You can now use the File field to work with Rails ActiveStorage attachments.
  • Image field. Based on the File field it is now possible to upload images to your models and render them inline in Uchi.
  • Breadcrumb labels for links to index pages now use the title for the index page if that's been translated. You can still specify a more precise text in repository.[name].breadcrumb.index.label.

v0.1.3

02 Nov 12:25

Choose a tag to compare

v0.1.3 Pre-release
Pre-release

What's Changed

Full Changelog: v0.1.2...v0.1.3

v0.1.2

02 Nov 12:13

Choose a tag to compare

v0.1.2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: https://github.com/substancelab/uchi/commits/v0.1.2