feat(audit-trail): add lock lifecycle and countdown tracking#196
Draft
alexruzenhack wants to merge 1 commit into
Draft
feat(audit-trail): add lock lifecycle and countdown tracking#196alexruzenhack wants to merge 1 commit into
alexruzenhack wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
alexruzenhack
commented
May 19, 2026
|
|
||
| useEffect(() => { | ||
| if (isPast) return; | ||
| const interval = setInterval(() => setNow(Date.now()), 60_000); |
Contributor
Author
There was a problem hiding this comment.
Reviewer Comment: A 60-second interval is used here to avoid unnecessary re-renders, as the highest granularity displayed is minutes.
5f08bf2 to
591f9f8
Compare
0cd2629 to
93de1ae
Compare
591f9f8 to
d95a58a
Compare
93de1ae to
1539ce9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
Audit Trails can have specific locking configurations (e.g., Time-Locked until a specific date, or Permanently Locked). This PR introduces the UI to visualize these states.
Key Features and Changes
useCountdownFormattedto handle real-time expiration text (e.g., "2d 4h remaining").TimeLockCardandLockingWindowCardto display the current locking status cleanly to the user.Screenshot