New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrgUsers: Refactor change LastSeenAtAge
from '10 years' to 'Never'
#84247
Conversation
LastSeenAtAge
to NeverLastSeenAtAge
from '10 years' to 'Never'
This PR must be merged before a backport PR will be created. |
@@ -107,7 +108,9 @@ export const OrgUsersTable = ({ | |||
{ | |||
id: 'lastSeenAtAge', | |||
header: 'Last active', | |||
cell: ({ cell: { value } }: Cell<'lastSeenAtAge'>) => value, | |||
cell: ({ cell: { value } }: Cell<'lastSeenAtAge'>) => { | |||
return <>{value && <>{value === '10 years' ? <Text color={'disabled'}>Never</Text> : value}</>}</>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return <>{value && <>{value === '10 years' ? <Text color={'disabled'}>Never</Text> : value}</>}</>; | |
return <>{value && value === '10 years' ? <Text color={'disabled'}>Never</Text> : value}</>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in the OrgUsersTable.tsx
and the UsersTable.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eleijonmarck Let me correct myself, the change that I recommended changes the result if value === undefined
(however I don't think the value could be undefined
), so your first solution was right, could you please revert this change and the other one? Sorry 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgyongyosi i tested out the changes locally 🤔 i think. let me first try locally again
What is this feature?
All users table shows
Never
when a user has never logged in. In the user organization tab we show10 years
from previous implementation. This changes toNever
in the org tab.Why do we need this feature?
Aligning the all users table to the org users table.