Files
device-voice-h5/openspec/changes/update-asset-package-history-hierarchy/tasks.md
2026-09-08 09:56:16 +08:00

1.1 KiB

1. API contract and data handling

  • 1.1 Document the hierarchical node fields, relationship exceptions, and top-level pagination shell for package history.
  • 1.2 Add a client-side response normalizer that preserves recursively returned children and all relationship metadata.
  • 1.3 Use total and returned top-level groups to drive pagination, so children never consume page capacity or cross pages.

2. Package history UI

  • 2.1 Render returned top-level relationship groups and their addon children with the existing package metrics and status styling.
  • 2.2 Initialize groups from expand_by_default and add an accessible expand/collapse control for groups with children.
  • 2.3 Render master_missing as a standalone relationship-exception item and preserve normal shared-request error handling for all other API failures.

3. Verification

  • 3.1 Verify nested, collapsed, expanded, filtered-group, master_missing, and multi-page response fixtures.
  • 3.2 Run the H5 production build and inspect the changed files for contract consistency.