Files
multica/packages
Naiyuan Qing f72891ff20 chore(issues): performance, accessibility, and code quality fixes across all views
Performance:
- Convert O(n³) nested includes() to Map index in swimlane drag lookup
- Convert O(n²) array.includes() to Set in list-view and drag-utils
- Convert O(n*m) array.find() to Map in cache-helpers and delete-cache
- Combine 9 filter().map() chains into single-pass flatMap
- Memoize JSX trigger props in batch-action-toolbar, board-card, label-picker,
  issue-actions-dropdown, issue-actions-context-menu
- Memoize object prop in board-view
- Convert useState to useRef for non-rendered highlightedIndex in property-picker
- Extract stable EMPTY_STATUSES constant to prevent memo invalidation in swimlane-view

Accessibility:
- Add aria-label to 6 unlabeled controls (filter inputs, color picker, checkboxes)
- Add role="presentation" to non-interactive event-stopping wrapper in board-card
- Add role="group" to comment edit containers in comment-card
- Convert span[role="button"] to semantic <button> in issues-header

Code quality:
- Replace px-X py-X with p-X shorthand (4 files)
- Remove 2 unused exports (BOARD_COL_WIDTH, getIssueGroupId)
- Destructure useNavigation() in issue-detail
- Add i18n keys for new aria-labels (en + zh-Hans)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 16:01:04 +08:00
..