feat: filter conversations by user in organization exports#13
Open
kalus-msic wants to merge 8 commits into
Open
feat: filter conversations by user in organization exports#13kalus-msic wants to merge 8 commits into
kalus-msic wants to merge 8 commits into
Conversation
kalus-msic
force-pushed
the
feat/user-filter
branch
from
June 30, 2026 16:56
c0d2ef3 to
e5b3e39
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Merge UserMap into existing `import type` statement in both filter components (biome useImportType rule) - Apply biome formatter fixes (import order, line length) - Add loadKey counter to ChatViewer; key MasterDetailView and ConversationBrowser on it so selectedUserUuids resets on each new file load Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- UserDataSchema: accept null for email_address and verified_phone_number (org exports set verified_phone_number: null for most users, breaking safeParse and causing all but one user to be silently dropped) - usersWithCounts: derive user list from distinct account.uuid values in conversations instead of from userMap entries; use userMap only for name lookup with fallback to "User <uuid-prefix>" when name is absent - JsonInput: keep userMap even when size < 2 (name lookup still useful); use regex search for users.json to handle nested ZIP structures Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Artifact.tsx: sort Sheet imports alphabetically sorting.ts: use double quotes (biome formatter) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kalus-msic
force-pushed
the
feat/user-filter
branch
from
June 30, 2026 16:59
e5b3e39 to
3debdfb
Compare
Author
|
Note: bun test reports 1 pre-existing failure unrelated to this PR — ChatDataSchema > should parse conversation with artifacts format fails because testdata/conversation-with-artifacts.json is missing from the repository (the test references a file that was never committed upstream). All 16 other tests pass. bun run check (biome + tsc) passes cleanly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
account.uuidvalues inconversations.json; usesusers.jsonfor name lookup where available, falls back toUser <uuid-prefix>when notusers.jsonUserDataSchemato acceptnullforverified_phone_numberandemail_address(org exports set these to JSONnullfor most users)onConversationListcallback with an optionaluserMap?: UserMapparameter (backward compatible)Behavior
Test plan
bun run checkpasses (typecheck + lint)bun testpasses🤖 Generated with Claude Code