Task summary
Wrap relative time strings on announcements and comments in accessible tooltips that display the exact localized timestamp in IST (Asia/Kolkata).
Estimated scope / difficulty
Starter (1 to 2 hours)
Motivation and context
Announcements and discussion comments currently render relative time strings (such as "2h ago" or "yesterday"). Students need to inspect the exact date and time for deadlines and schedule notices.
Relevant files and code pointers
src/pages/app/AnnouncementsPage.tsx
src/components/announcement-qa/AnnouncementQA.tsx
src/components/announcement-qa/AnnouncementCommentsDrawer.tsx
tests/unit/components.test.tsx
Acceptance criteria
Implementation guide and hints
Check how Radix UI Tooltip is used across other components in src/components/ui/ or src/components/AttachmentCard.tsx. Ensure the trigger element is focusable (e.g. <button> or <span tabIndex={0}>).
Task summary
Wrap relative time strings on announcements and comments in accessible tooltips that display the exact localized timestamp in IST (
Asia/Kolkata).Estimated scope / difficulty
Starter (1 to 2 hours)
Motivation and context
Announcements and discussion comments currently render relative time strings (such as "2h ago" or "yesterday"). Students need to inspect the exact date and time for deadlines and schedule notices.
Relevant files and code pointers
src/pages/app/AnnouncementsPage.tsxsrc/components/announcement-qa/AnnouncementQA.tsxsrc/components/announcement-qa/AnnouncementCommentsDrawer.tsxtests/unit/components.test.tsxAcceptance criteria
timeZone: 'Asia/Kolkata'usingIntl.DateTimeFormatordate-fns(including weekday, date, time, and timezone).Tab) as well as mouse hover.aria-label/aria-describedbyfor screen reader accessibility.npm testandnpm run lintpass with 0 errors.Implementation guide and hints
Check how Radix UI Tooltip is used across other components in
src/components/ui/orsrc/components/AttachmentCard.tsx. Ensure the trigger element is focusable (e.g.<button>or<span tabIndex={0}>).