Skip to content

Commit 17e88cf

Browse files
committed
Fix CI: fallback to footer_objects until footer_actions is released
footer_actions is not yet in any released panel-material-ui version. Use hasattr to detect it and fall back to footer_objects for now. Revert pin bump to >=0.8.1.
1 parent d91b685 commit 17e88cf

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

lumen/ai/ui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,11 +1634,12 @@ async def _generate_follow_up():
16341634

16351635
if len(self.interface):
16361636
message = self.interface.objects[-1]
1637+
attr = "footer_actions" if hasattr(message, "footer_actions") else "footer_objects"
16371638
existing = [
1638-
obj for obj in (message.footer_actions or [])
1639+
obj for obj in (getattr(message, attr) or [])
16391640
if getattr(obj, 'name', '') != "FollowUp"
16401641
]
1641-
message.footer_actions = existing + [follow_up_button]
1642+
setattr(message, attr, existing + [follow_up_button])
16421643

16431644
def __panel__(self):
16441645
return self._main

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lint = ["py312", "lint"]
2020
[dependencies]
2121
bokeh = "*"
2222
holoviews = ">=1.17.0"
23-
panel-material-ui = ">=0.9.0"
23+
panel-material-ui = ">=0.8.1"
2424
hvplot = "*"
2525
intake = "<2"
2626
jinja2 = ">3.0"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies = [
4242
"pandas",
4343
"panel >=1.7.5",
4444
"panel-graphic-walker[kernel] >=0.6.4",
45-
"panel-material-ui >=0.9.0",
45+
"panel-material-ui >=0.8.1",
4646
"panel-splitjs >=0.3.2",
4747
"param >=2.2.1",
4848
"pyarrow",

0 commit comments

Comments
 (0)