Skip to content

Fix types for restricted mail/announcements#5954

Open
ch0rizo wants to merge 1 commit into
masterfrom
fix-types-restricted-mail
Open

Fix types for restricted mail/announcements#5954
ch0rizo wants to merge 1 commit into
masterfrom
fix-types-restricted-mail

Conversation

@ch0rizo
Copy link
Copy Markdown
Contributor

@ch0rizo ch0rizo commented May 12, 2026

Description

Fix types in restricted mail / announcements

Testing

  • I have thoroughly tested my changes.

Cause: FormValues typed the autocomplete fields as raw entities, but the form
holds the post-transformAutocompletes shape (SearchResult, with .value). The
same type was re-imported by createAnnouncement for its body - but the API
body is just IDs.

Fix:

  • FormValues: use SearchResult for autocomplete fields; option shape for
    meetingInvitationStatus.
  • createAnnouncement: new local CreateAnnouncementPayload type for the request
    body.

Errors fixed

  • initialValues (3× TS2322): SearchResult[] vs declared entity arrays - lines
    90, 98, 106.

  • .value access in onSubmit (5× TS2339, 1× TS2551): declared types have no
    .value - lines 124, 125, 126, 127, 128, 129.

@ch0rizo ch0rizo requested a review from a team May 12, 2026 20:27
@ch0rizo ch0rizo self-assigned this May 12, 2026
@github-actions github-actions Bot added the review-needed Pull requests that need review label May 12, 2026
@ch0rizo ch0rizo added types Pull requests that improve or fix types technical-debt Pull requests that reduces technical debt labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-needed Pull requests that need review technical-debt Pull requests that reduces technical debt types Pull requests that improve or fix types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant