Skip to content

bug: restore proxiwash time - #176

Open
iSaborit wants to merge 1 commit into
ClubInfoInsaT:masterfrom
iSaborit:feat/proxiwash-relative-time
Open

iSaborit wants to merge 1 commit into
ClubInfoInsaT:masterfrom
iSaborit:feat/proxiwash-relative-time

Conversation

@iSaborit

@iSaborit iSaborit commented Oct 9, 2026

Copy link
Copy Markdown

Closes #139

The react-native-timeago lib was removed (unmaintained, broke peer deps) and left a TODO in the Proxiwash header, so I added a small component instead.

src/components/Lists/Proxiwash/ProxiwashUpdatedText.tsx: new component showing just now / N minutes ago (hours fallback), re-renders on a 15s interval, no new dependency
src/components/Lists/Proxiwash/ProxiwashListHeader.tsx: uses the new component, removed the TODO and the dead dayjs setup
locales/en.json, fr.json, es.json, it.json: added updatedJustNow, updatedOneMinute, updatedMinutes, updatedOneHour, updatedHours

Removes leftover TODO after 195fe17 and dead dayjs setup in
ProxiwashListHeader. New lightweight component shows relative
update time (just now / minutes / hours) with a 15s interval and
localized strings, no external dependency.

@ignyx ignyx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR, it looks good ! I requested a minor change in the input props.

import i18n from 'i18n-js';

type Props = {
date: Date | string | number;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Force the date to always be a Date

return () => clearInterval(id);
}, [intervalMs, time]);

if (Number.isNaN(time)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

time should always be a number once the date prop's type is changed

This branch has not been deployed

No deployments
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.

bug: restore proxiwash time since

2 participants