All notable changes to nova-settings-tool
will be documented in this file.
- Fix styling issues introduced in Nova v4.26.5.
- Add
Authenticate
middleware to fix publicly accessible API routes by @ramonrietdijk in #54
- Handle null values in code fields by @bakerkretzmar in 9d348e3
- Add support for Nova 4
- Default Settings tool page title to
Settings
and make it translatable
- Set (and allow configuring) the Settings tool page title (#42)
- Add a
SettingsChanged
event that fires every time any settings are updated (#39)
- Fix an issue where the "Other" panel heading displays even when empty
This is a major release. Upgrading will only take a few minutes and mostly just involves restructuring the config file, but this release is a major departure from previous versions of the package in a few ways, and therefore it is not backwards compatible.
The top-level panels
array containing panels, which in turn contained settings, has been replaced with a single settings
array. The structure of each setting has remained mostly the same, and the panel that a setting belongs to is now specified directly in that setting. Panels are computed based on the unique values of all settings' panel
keys.
Within individual settings:
- the
name
key has been renamed tolabel
description
has been renamed tohelp
and now accepts any valid HTMLlink
has been removed becausehelp
accepts HTML- all keys are now optional except
key
The top-level navigation
key in the config file has been renamed to sidebar-label
.
The package's config file has been renamed to avoid possible conflicts. Fixes #8.
In your NovaServiceProvider.php
, and anywhere else you're importing the tool, update your imports:
- use Bakerkretzmar\SettingsTool\SettingsTool;
+ use Bakerkretzmar\NovaSettingsTool\SettingsTool;
This package doesn't affect the behaviour of your app, it just provide's a nice interface for managing settings in Nova—so setting something like 'default' => 'true'
on a toggle, as was previously possible, wouldn't actually set a default value for the setting, it would just change the way the setting was initially displayed, which could be misleading. Reverts a4ad702 and closes #17.
- Add
number
andselect
setting types - Add support for settings file on a custom disk
- Add ability to set a placeholder value on
text
andtextarea
settings - Simplify interface and consolidate save action
- Adjust styles to more closely match Nova’s
- Add bucketloads of tests
- Add support for setting Toggle to be on by default
- Tweak styles to more closely match the rest of Nova
- Add
code
setting type
- Add
textarea
setting type (#11) - Fix bug translating the "Settings saved!" message
- Allow localization of package's built-in strings and all passed settings (#9)
- Initial release