Skip to content

fix(activities): Notes tab was showing every synced email and meeting - #5

Merged
franckh-stack merged 1 commit into
releasefrom
fix/notes-tab-scope
Sep 2, 2026
Merged

fix(activities): Notes tab was showing every synced email and meeting#5
franckh-stack merged 1 commit into
releasefrom
fix/notes-tab-scope

Conversation

@franckh-stack

Copy link
Copy Markdown
Owner

Summary

  • Root cause of "les mails atterrissent dans le canal notes": NOTE_TYPES (backing the Notes tab's filter clause in activities.service.ts) included ActivityType.EMAIL and ActivityType.MEETING alongside NOTE/CALL -- both of which already have their own dedicated tab (email, meetings). Every synced email and meeting was therefore also showing up under Notes, contradicting the tab's own empty-state copy ("Notes are what you write down for the next person to read").
  • Only surfaced now because the Notes tab was empty until the contact-history backfill (previous PR) put real synced data through it for the first time.
  • NOTE_TYPES narrowed to [NOTE, CALL] -- the two types with no dedicated tab of their own.

Test plan

  • TDD: new activities-timeline-filter.spec.ts, 5 cases (notes tab scoped correctly, email/meetings/all tabs unaffected, timelineCounts.notes matches)
  • Full apps/api suite: 429 pass / 1 fail (the pre-existing, unrelated auth.e2e.spec.ts flake)
  • bun run check-types clean
  • Franck: review before merge

Not yet deployed -- vigiep1 is at ~97% disk (separate issue, /var/lib/containerd bloat under investigation), holding off on a rebuild until that's resolved. Same --no-verify precedent as the last 2 PRs.

… email/meeting

NOTE_TYPES fed the "Notes" tab's filter clause, but included EMAIL and
MEETING alongside NOTE/CALL -- both of which already have their own
dedicated tab. Effect: every synced email and every synced meeting
also showed up under Notes, which its own empty-state copy describes
as "what you write down for the next person to read" -- i.e. manual
entries only.

Found investigating a report that "all mail lands in the notes
channel" after the contact-history backfill made Notes tab traffic
visible for the first time (previously the tab was empty because the
live sync had never stored anything). NOTE_TYPES narrowed to
[NOTE, CALL] -- the two types with no dedicated tab of their own.
@franckh-stack
franckh-stack merged commit cb6e6f2 into release Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant