@makoai/app-sdk 2.7.1 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makoai/app-sdk",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Mako app SDK: data bindings (useQuery/useDuckDB), URL state, theme, and the house dashboard kit (/ui).",
5
5
  "license": "MIT",
6
6
  "repository": {
package/ui.js CHANGED
@@ -347,7 +347,9 @@ export function FreshnessBadge({
347
347
  const ref = React.useRef(null);
348
348
  usePopover(open, setOpen, ref, align);
349
349
  const t = normalizeTone(tone);
350
- const hasPanel = title != null || schedule != null || sources.length > 0 || action || footer;
350
+ // A footer alone is not a panel: while the app is still checking, the
351
+ // badge must not open onto an empty box.
352
+ const hasPanel = title != null || schedule != null || sources.length > 0 || !!action;
351
353
 
352
354
  return h(
353
355
  "div",