Goal
Populate properties.title and properties.source on document nodes so that deriveLabel() in the frontend can show meaningful names instead of raw IDs.
What to do
- In
akb_adapter.py, when building document Node objects:
- Add
properties["title"] = CategoricalProperty(value=block.title) if block.title is set
- Add
properties["source"] = CategoricalProperty(value=block.source) if block.source is set
- For chunk nodes: optionally emit
properties["position_label"] as "{chunk_index} / {total_chunks}" (useful in breadcrumbs)
- Update
test_adapter.py to assert these properties are present on document nodes
Acceptance criteria
- Exported manifests have
properties.title on document nodes
deriveLabel() in frontend shows document title, not raw block ID
test_adapter.py covers this
Goal
Populate
properties.titleandproperties.sourceon document nodes so thatderiveLabel()in the frontend can show meaningful names instead of raw IDs.What to do
akb_adapter.py, when building documentNodeobjects:properties["title"] = CategoricalProperty(value=block.title)ifblock.titleis setproperties["source"] = CategoricalProperty(value=block.source)ifblock.sourceis setproperties["position_label"]as"{chunk_index} / {total_chunks}"(useful in breadcrumbs)test_adapter.pyto assert these properties are present on document nodesAcceptance criteria
properties.titleon document nodesderiveLabel()in frontend shows document title, not raw block IDtest_adapter.pycovers this