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 fromAttribute, noattributeId)AutoAttributesCount—{code, label, values[]}for filter panel; each value may includevalueLabelfrom neo catalogue LOVFolder.type—'manual' | 'auto'Folder.targetAttributeCodes[]/Folder.displayedCodes[]Document.autoAttributes[]— separate fromDocument.attributes[]
UI changes:
FolderSideBar— split into two sections: "All automatic deposit" + auto folders / "All manual deposit" + manual foldersListItem— displaysdocument.autoAttributesfiltered byfolder.displayedCodeswhen in an auto folder,document.attributesotherwise (unchanged)FilterBarAttributes— attribute filter panel for auto folders, with aggregated codes across Tower viewAttributeValueTag— reusable tag with tooltip for long attribute values; showsvalueLabel ?? valuefor auto attributesAutoAttributessidebar tab — auto-attribute counts per codeSelectFolders— auto folders excluded from the manual deposit picker
Files Modified:
src/protocol/bcyipApi.ts- Auto-attribute types, foldertype/displayedCodes/targetAttributeCodes,Document.autoAttributessrc/components/DocumentsPanel/FolderSideBar.tsx- Manual vs automatic deposit sectionssrc/components/DocumentsPanel/Item/ListItem.tsx- Auto-attribute display with folder-aware filteringsrc/components/DocumentsPanel/FilterBarAttributes.tsx- Auto-folder attribute filter barsrc/components/DocumentsPanel/redux/selectors.ts- Auto-attribute aggregation selectorssrc/components/DocumentsPanel/utils/attributeSort.ts(new) - Alphabetical sort helpers for attribute codes/labelssrc/components/DocumentsPanel/utils/folderAggregation.ts(new) - Displayed-code aggregation for Tower and auto folderssrc/components/atoms/AttributeValueTag.tsx(new) - Tag component with portal tooltipsrc/components/atoms/AttributeValueTag.scss(new) - Tag and tooltip stylessrc/components/Sidebar/Sidebar.tsx- Auto-attributes tab wiringsrc/components/SidebarTabs/AutoAttributes.tsx- Auto-attribute counts panelsrc/components/AnchorPanel/SelectFolders.tsx- Exclude auto folders from manual deposit pickersrc/config.ts- Feature flag for auto-attributes