Skip to content

Comments

convert announcements to typescript#2667

Open
junjun107 wants to merge 4 commits into2577-convert-frontend-to-typescriptfrom
2577-convert-announcements-to-typescript
Open

convert announcements to typescript#2667
junjun107 wants to merge 4 commits into2577-convert-frontend-to-typescriptfrom
2577-convert-announcements-to-typescript

Conversation

@junjun107
Copy link
Member

No description provided.

@SAUMILDHANKAR SAUMILDHANKAR self-requested a review February 9, 2026 01:49
@junjun107 junjun107 mentioned this pull request Feb 9, 2026
23 tasks
@junjun107 junjun107 changed the title 2577 convert announcements to typescript convert announcements to typescript Feb 9, 2026
@junjun107 junjun107 force-pushed the 2577-convert-announcements-to-typescript branch from 71d4571 to 4aa8716 Compare February 9, 2026 23:35
@junjun107 junjun107 changed the base branch from develop to 2577-convert-frontend-to-typescript February 10, 2026 02:32
Copy link
Member

@SAUMILDHANKAR SAUMILDHANKAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @junjun107 for so much top-quality work on this PR.

It is taking me sometime to finish this PR, I expect 2 more days to try out all the typescript code so wanted to share my timeline.

On a quick glance as a part-time PM, if we keep code changes to playwright and vite config files in a separate PR/issue, maybe that will be easier to track what happened where.

Also want to thank the authors at
https://git-scm.com/docs/git-diff)https://stackoverflow.com/questions/15436859/why-does-git-diff-show-no-output
https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-diff
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork
https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection%23_commit_ranges
https://www.freecodecamp.org/news/git-diff-command-explained/
https://www.digitalocean.com/community/cheatsheets/how-to-use-git-log-and-git-diff
https://swcarpentry.github.io/git-novice/05-history.html
https://gemini.google.com/
for helping me review this PR so far.

@junjun107 junjun107 marked this pull request as draft February 10, 2026 03:22
@junjun107 junjun107 marked this pull request as ready for review February 14, 2026 23:56

const handleChangeRowsPerPage = (event) => {
const handleChangeRowsPerPage = (
event: React.ChangeEvent<HTMLInputElement>
Copy link
Member

@SAUMILDHANKAR SAUMILDHANKAR Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe nit picky:

event: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>

or

event: React.ChangeEvent<HTMLSelectElement>

because pagination rows‑per‑page, which in Material UI is rendered as a select, If you try to use properties specific to input (like event.target.checked or event.target.type), TypeScript will allow it — but at runtime, those properties don’t exist on a select*

*Help from Copilot AI

React TypeScript Cheatsheet

Acknowledging a small contributor from that project because it is not obvious who wrote that page:
TomasHubelbauer

}

type SortField = "created_at" | "severity" | "title" | "announcementId";
type SortDirection = "asc" | "desc";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learning from Hannah #2562 (comment)
maybe we can move the two interfaces and two types to separate file for future clarity?

Stretch goal: :) we can have something like announcements extends formikvalues similar to how you did in service file.

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.

2 participants