Skip to content

Commit 3ce7097

Browse files
authored
Merge branch 'main' into add-3-14-support
2 parents 75678cf + ef0c82d commit 3ce7097

File tree

98 files changed

+4302
-1582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+4302
-1582
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,4 @@ test-results.xml
130130
results-inspect-ai/
131131
test-results-inspect-ai/
132132
tests/inspect-ai/scripts/test_metadata.json
133+
/.claude/

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ All notable changes to Shiny for Python will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [UNRELEASED]
9+
10+
### New features
11+
12+
* Added toast notification system with `ui.toast()`, `ui.toast_header()`, `ui.show_toast()`, and `ui.hide_toast()`. Toast notifications are temporary, non-intrusive messages that support multiple semantic types (success, warning, error, etc.), flexible positioning (9 positions: top/middle/bottom × left/center/right), auto-hide with configurable duration, optional headers with icons, and programmatic control. (#2111)
13+
14+
* Added a new `input_submit_textarea()` input element, which is similar to `input_text_area()`, but includes a submit button to only submit the text changes to the server on click. This is especially useful when the input text change triggers a long-running operation and/or the user wants to type longer-form input and review it before submitting it. (#2099)
15+
16+
### Bug fixes
17+
18+
* Fixed `ui.tooltip()`'s `options` parameter to properly pass Bootstrap tooltip options to the underlying web component. (#2101)
19+
20+
* Fixed an issue where `session.bookmark()` would error when non-existent `input` values are read. (#2117)
21+
22+
* Revised `accordion()`'s `open` logic to close all panels when an empty list is passed. (#2109)
23+
824
## [1.5.0] - 2025-09-11
925

1026
### New features

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ format-isort: FORCE
112112
@echo "-------- Sorting imports with isort --------"
113113
isort .
114114

115+
test-update-snapshots: FORCE ## Update test snapshots
116+
@echo "-------- Updating test snapshots ----------"
117+
pytest --snapshot-update
118+
115119
docs: FORCE ## docs: build docs with quartodoc
116120
@echo "-------- Building docs with quartodoc ------"
117121
@cd docs && make quartodoc

docs/_quartodoc-core.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ quartodoc:
5555
- ui.input_numeric
5656
- ui.input_text
5757
- ui.input_text_area
58+
- ui.input_submit_textarea
5859
- ui.input_password
5960
- ui.input_action_button
6061
- ui.input_action_link
@@ -166,6 +167,7 @@ quartodoc:
166167
- ui.update_text
167168
- name: ui.update_text_area
168169
dynamic: "shiny.ui.update_text"
170+
- ui.update_submit_textarea
169171
- ui.update_navset
170172
- ui.update_action_button
171173
- ui.update_action_link
@@ -235,6 +237,10 @@ quartodoc:
235237
- ui.help_text
236238
- ui.notification_show
237239
- ui.notification_remove
240+
- ui.toast
241+
- ui.toast_header
242+
- ui.show_toast
243+
- ui.hide_toast
238244
- ui.modal
239245
- ui.modal_show
240246
- ui.modal_remove

docs/_quartodoc-express.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ quartodoc:
2727
- express.ui.input_numeric
2828
- express.ui.input_text
2929
- express.ui.input_text_area
30+
- express.ui.input_submit_textarea
3031
- express.ui.input_password
3132
- express.ui.input_action_button
3233
- express.ui.input_action_link
@@ -126,6 +127,7 @@ quartodoc:
126127
- express.ui.update_numeric
127128
- express.ui.update_text
128129
- express.ui.update_text_area
130+
- express.ui.update_submit_textarea
129131
- express.ui.update_navset
130132
- express.ui.update_action_button
131133
- express.ui.update_action_link
@@ -146,6 +148,10 @@ quartodoc:
146148
- express.ui.help_text
147149
- express.ui.notification_show
148150
- express.ui.notification_remove
151+
- express.ui.toast
152+
- express.ui.toast_header
153+
- express.ui.show_toast
154+
- express.ui.hide_toast
149155
- express.ui.modal
150156
- express.ui.modal_show
151157
- express.ui.modal_remove

docs/_quartodoc-testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ quartodoc:
2020
- playwright.controller.Card
2121
- playwright.controller.Popover
2222
- playwright.controller.Sidebar
23+
- playwright.controller.Toast
2324
- playwright.controller.Tooltip
2425
- title: UI Inputs
2526
desc: Methods for interacting with Shiny app input value controller.
@@ -39,6 +40,7 @@ quartodoc:
3940
- playwright.controller.InputSelectize
4041
- playwright.controller.InputSlider
4142
- playwright.controller.InputSliderRange
43+
- playwright.controller.InputSubmitTextarea
4244
- playwright.controller.InputSwitch
4345
- playwright.controller.InputTaskButton
4446
- playwright.controller.InputText

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ add-test = [
128128
"chatlas[anthropic,openai]",
129129
"openai>=1.104.1",
130130
"anthropic>=0.62.0",
131-
"inspect-ai>=0.3.129",
131+
"inspect-ai>=0.3.129;python_version>='3.10'",
132132
"pytest-timeout",
133133
"pytest>=6.2.4",
134134
"pytest-playwright>=0.5.2",

0 commit comments

Comments
 (0)