Skip to content

fix: add 'unknown' to PresenceStatus type#28

Merged
fredsmith merged 3 commits into
mainfrom
fix/presence-status-type
Mar 1, 2026
Merged

fix: add 'unknown' to PresenceStatus type#28
fredsmith merged 3 commits into
mainfrom
fix/presence-status-type

Conversation

@fredsmith

Copy link
Copy Markdown
Owner

Summary

  • Added 'unknown' to the PresenceStatus union type in src/lib/types.ts
  • Fixes 4 TypeScript errors in FindUser.svelte and BuddyList.svelte that were failing svelte-check in CI

The 'unknown' state is used for users whose presence hasn't been received yet (e.g., direct user ID entry in FindUser, or initial buddy list load).

Test plan

  • npx svelte-check --tsconfig ./tsconfig.json passes with 0 errors

🤖 Generated with Claude Code

fredsmith and others added 3 commits February 28, 2026 21:14
The type was missing the 'unknown' variant used in FindUser and BuddyList
for users whose presence state hasn't been received yet.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Test files import from 'vitest' which isn't available to svelte-check.
Exclude *.test.ts from the main tsconfig so they're only type-checked
by vitest itself.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change <label>To:</label> to <span> (not associated with a control)
- Add role="article" to message divs with contextmenu handlers
- Add href and role="button" to file download <a> elements

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fredsmith fredsmith merged commit 2986edf into main Mar 1, 2026
1 check passed
@fredsmith fredsmith deleted the fix/presence-status-type branch March 1, 2026 02:19
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