5 Commits

Author SHA1 Message Date
3c5fdfc149 fix: 查看素材页面Form高度固定,结果区用filler自适应 2026-06-01 14:23:26 +08:00
304e4c4071 fix: wrap rl_asset_results in VScrollPanel for scrolling
When many assets are returned, the results area needs scroll.
Wrap the target VBox in a VScrollPanel with fixed height.
2026-05-30 11:22:53 +08:00
7c3e77e612 fix: view_assets — use actiontype:urlwidget + target + mode:replace
Replace custom JS fetch script with proper bricks-native pattern:
- actiontype: urlwidget, target: app.rl_asset_results, mode: replace
- method: POST in urlwidget options (required for form data)
- Remove duplicate id from dspy response widgets (id belongs to container only)
2026-05-30 10:54:48 +08:00
f94207dd86 fix: view_assets form submit — use script bind instead of urlwidget
Remove submit_url + submited/urlwidget pattern (event.params is Response
object, not widget descriptor, causes silent failure).
Replace with submit event + actiontype:script that manually POSTs form
data via fetch() and renders response widget tree via bricks.widgetBuild.
2026-05-30 10:48:32 +08:00
6491182249 feat: add view_assets page — browse media by group with bricks widgets
- init.py: add rl_list_assets_client() — validates org ownership, syncs
  from vendor, returns asset list with status/url/type
- view_assets.ui: dropdown to select vendor_group_id, submit triggers
  asset list display
- submit_list_assets.dspy: returns responsive card grid with Image/
  VideoPlayer/AudioPlayer widgets, per-asset refresh status + download
- index.ui: add '查看素材' card for customers
- load_path.py: register view_assets.ui under logined RBAC
2026-05-30 10:31:08 +08:00