Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

feat: add expiry notices to connection cards #460

Merged
merged 4 commits into from
Jun 19, 2024
Merged

Conversation

rolznz
Copy link
Collaborator

@rolznz rolznz commented Jun 18, 2024

image

@rolznz rolznz requested review from im-adithya and reneaaron June 18, 2024 09:43
Copy link

@bumi bumi left a comment

Choose a reason for hiding this comment

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

I'd use dayjs also for the calculations

frontend/src/components/connections/AppCardNotice.tsx Outdated Show resolved Hide resolved
@reneaaron
Copy link

I've addressed @bumi's feedback and tried to optimize the UI a bit.

Great refactoring @rolznz, thanks for splitting up the components! 👍

{connection.lastEventAt && (
<div className="flex flex-row justify-between text-xs items-center">
<div className="flex flex-row justify-between">
<div>Last used:&nbsp;</div>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Last used was removed from the card, is this intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@reneaaron I think it's useful information to have

Choose a reason for hiding this comment

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

@rolznz It definitely is, however the cards are already quite clogged with data. I wonder if it's really worth showing this info on the overview (we show it on the detail page anyway).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree the card is a bit cluttered, maybe we can find a better solution. But having to manually click all the cards to open them to see which ones were used recently is not so great in my opinion

@rolznz rolznz merged commit 5dbf576 into master Jun 19, 2024
7 checks passed
@rolznz rolznz deleted the feat/app-card-expiry branch June 19, 2024 16:28
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.

3 participants