This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Releases: interval/interval-py
Releases · interval/interval-py
v1.5.0
New:
- Added new io.input.slider IO method to request a number with a range slider control.
- Added new io.display.html method to display rendered HTML to the user.
- Added
user.role
anduser.teams
properties to ctx for the current user running the action or viewing the page. - Added
warnOnClose
property to the action definition, set to false to suppress the default behavior of warning the user when leaving or restarting an in-progress transaction.
v1.4.0
New
- Added
initiallySelected
prop to io.select.table to specify the initial selection state.
v1.3.0
v1.2.0
New
- The ctx loading API (ctx.loading.start, ctx.loading.update, and ctx.loading.completeOne) are now available in Page handlers.
- It is now possible to display asynchronous data values in io.display.metadata.
v1.1.0
New
- Added ctx.redirect() support to Page handlers.
- Added replace property to ctx.redirect() to replace the current entry in the user's history stack, like
history.replaceState
. - Added highlightColor property to io.display.table and io.select.table's
renderCell
method to highlight a cell's background and text colors. - Added a global
onError
callback to the Interval constructor, perfect for logging or reporting to error services. - Page handlers can now return
undefined
orNone
to conditionally opt out of custom layouts and fall back to rendering the default index. - Markdown is now supported in io.display.table and io.select.table cells and in any input IO methods' helpText properties.
Fixed
- Improved retry and timeout behavior, preventing large payloads from saturating connection to Interval.
- Fixed issues with Pages showing up in the dashboard sidebar in some cases when they shouldn't.
- Fixed .validate() calls when chained after .withChoices() calls.
v1.0.0
🎉
Breaking changes
- The
ctx.environment
property now shows the specific environment that the Action or Page is running in, instead of just"live"
or"development"
.
New
- Added
with_choices()
chained method to io.group and other IO methods to allow for customizing the "Continue" buttons to enable branching logic and more advanced workflows. See the Branching
logic documentation for more information.
Fixed
- The
ctx.action.url
property and Interval client startup message now display the correct URL for custom environments. - Fixed an issue with the dashboard sidebar not showing up for some Page configurations.