UPGRADING.md in activeadmin-4.0.0.beta3 vs UPGRADING.md in activeadmin-4.0.0.beta4

- old
+ new

@@ -6,18 +6,18 @@ **IMPORTANT**: there is **no sortable functionality for has-many forms** in this release so if needed, **do not upgrade**. We are [open to community proposals](https://github.com/activeadmin/activeadmin/discussions/new?category=ideas). The add/remove functionality for has-many forms remains supported. These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing. -Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta2"` and then run `gem install activeadmin --pre`. +Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta3"` and then run `gem install activeadmin --pre`. Now, run `rails generate active_admin:assets` to replace the old assets with the new files. Then add the npm package and update the `build:css` script. ``` -yarn add @activeadmin/activeadmin@4.0.0-beta2 +yarn add @activeadmin/activeadmin@4.0.0-beta3 npm pkg set scripts.build:css="tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c tailwind-active_admin.config.js" ``` If you are already using Tailwind in your app, then update the `build:css` script to chain the above command to your existing one, e.g. `"tailwindcss ... && tailwindcss ..."`, so both stylesheets are generated. @@ -189,12 +189,11 @@ ### Localization Updates This release includes several locale changes. Please [reivew the en.yml locale](https://github.com/activeadmin/activeadmin/blob/master/config/locales/en.yml) for the latest translations. - The `dashboard_welcome`, `dropdown_actions`, `main_content` and `unsupported_browser` keys have been removed. -- Overriding Kaminari's `previous` and `next` pagination keys to only use words and remove HTML entities. -- The `active_admin.pagination` keys have been rewritten to be less verbose. +- The `active_admin.pagination` keys have been rewritten to be less verbose and include new entries: next and previous. ```diff - one: "Displaying <b>1</b> %{model}" + one: "Showing <b>1</b> of <b>1</b>" - one_page: "Displaying <b>all %{n}</b> %{model}" @@ -203,9 +202,11 @@ + multiple: "Showing <b>%{from}-%{to}</b> of <b>%{total}</b>" - multiple_without_total: "Displaying %{model} <b>%{from}&nbsp;-&nbsp;%{to}</b>" + multiple_without_total: "Showing <b>%{from}-%{to}</b>" - per_page: "Per page: " + per_page: "Per page " + + previous: "Previous" + + next: "Next" ``` - The `search_status` key contents has multiple, breaking changes: ```diff