Skip to main content
Version: 4.37.0

feat-auto-attributes

New Features

Auto-attributes display (Phase 1)

ip-magicbox now displays documents deposited by automatic services (Tower v2, etc.) organized in "Smart Lists" (Listes Automatiques) filtered by attribute codes.

Reference (neo-backend): docs/auto-attributes.md in neo-backend repo — folder types, filter semantics, displayedCodes, filter bar.

Types (bcyipApi.ts):

  • AutoAttribute{code, value, label?, valueLabel?} (separate from Attribute, no attributeId)
  • AutoAttributesCount{code, label, values[]} for filter panel; each value may include valueLabel from neo catalogue LOV
  • Folder.type'manual' | 'auto'
  • Folder.targetAttributeCodes[] / Folder.displayedCodes[]
  • Document.autoAttributes[] — separate from Document.attributes[]

UI changes:

  • FolderSideBar — split into two sections: "All automatic deposit" + auto folders / "All manual deposit" + manual folders
  • ListItem — displays document.autoAttributes filtered by folder.displayedCodes when in an auto folder, document.attributes otherwise (unchanged)
  • FilterBarAttributes — attribute filter panel for auto folders, with aggregated codes across Tower view
  • AttributeValueTag — reusable tag with tooltip for long attribute values; shows valueLabel ?? value for auto attributes
  • AutoAttributes sidebar tab — auto-attribute counts per code
  • SelectFolders — auto folders excluded from the manual deposit picker

Files Modified:

  • src/protocol/bcyipApi.ts - Auto-attribute types, folder type / displayedCodes / targetAttributeCodes, Document.autoAttributes
  • src/components/DocumentsPanel/FolderSideBar.tsx - Manual vs automatic deposit sections
  • src/components/DocumentsPanel/Item/ListItem.tsx - Auto-attribute display with folder-aware filtering
  • src/components/DocumentsPanel/FilterBarAttributes.tsx - Auto-folder attribute filter bar
  • src/components/DocumentsPanel/redux/selectors.ts - Auto-attribute aggregation selectors
  • src/components/DocumentsPanel/utils/attributeSort.ts (new) - Alphabetical sort helpers for attribute codes/labels
  • src/components/DocumentsPanel/utils/folderAggregation.ts (new) - Displayed-code aggregation for Tower and auto folders
  • src/components/atoms/AttributeValueTag.tsx (new) - Tag component with portal tooltip
  • src/components/atoms/AttributeValueTag.scss (new) - Tag and tooltip styles
  • src/components/Sidebar/Sidebar.tsx - Auto-attributes tab wiring
  • src/components/SidebarTabs/AutoAttributes.tsx - Auto-attribute counts panel
  • src/components/AnchorPanel/SelectFolders.tsx - Exclude auto folders from manual deposit picker
  • src/config.ts - Feature flag for auto-attributes