Skip to content

feat: Manage tokens in dashboard #5444

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

Merged
merged 11 commits into from
Jan 13, 2023
Merged

feat: Manage tokens in dashboard #5444

merged 11 commits into from
Jan 13, 2023

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Dec 15, 2022

chrome_UYpCZ6EdUc

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

This Pull Request is becoming stale. In order to minimize WIP, prevent merge conflicts and keep the tracker readable, I'm going close to this PR in 3 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 6, 2023
@f0ssel f0ssel removed the stale This issue is like stale bread. label Jan 12, 2023
@f0ssel f0ssel marked this pull request as ready for review January 12, 2023 19:23
@f0ssel f0ssel requested a review from a team as a code owner January 12, 2023 19:23
@f0ssel f0ssel requested review from presleyp and removed request for a team January 12, 2023 19:23
{tokens?.map((token) => {
const t = dayjs(token.last_used)
const now = dayjs()
const lastUsed = now.isBefore(t.add(100, "year"))
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this is needed because last_used can't be set to null? Might be nice to put this in a util function with a little comment.

expiresAtLabel: "Expires At",
emptyMessage: "No tokens found",
ariaDeleteLabel: "Delete Token",
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We have an alternative to Language now, react-i18n, but if it's a hassle, don't worry about it, we're going to revisit whether it's worth the time

@f0ssel f0ssel enabled auto-merge (squash) January 13, 2023 17:18
@f0ssel f0ssel merged commit 0cf7138 into main Jan 13, 2023
@f0ssel f0ssel deleted the f0ssel/tokens-ui branch January 13, 2023 17:20
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants