Skip to content
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

feat: Add share expiration indicator #51630

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nfebe
Copy link
Contributor

@nfebe nfebe commented Mar 21, 2025

Shares that would expire now shows a clock icon with a popover.

Screenshots

Before After After activated popover
 before-share-time after-show-share-time after-popover

@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch 2 times, most recently from 09fb848 to 7d27f2c Compare March 21, 2025 13:40
@nfebe nfebe marked this pull request as ready for review March 21, 2025 15:27
@nfebe nfebe requested review from a team as code owners March 21, 2025 15:27
@nfebe nfebe requested review from susnux, szaimen, sorbaugh, artonge and marcoambrosini and removed request for a team and szaimen March 21, 2025 15:27
@nfebe nfebe added 3. to review Waiting for reviews feature: sharing labels Mar 21, 2025
@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch from 8034a08 to 0c73c87 Compare March 21, 2025 15:32
Copy link
Member

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

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

Nice @nfebe, the only thing I'd change is I'd put this new icon all the way to the left so that the copy link icons are vertically aligned.

@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch from 0c73c87 to f834b14 Compare March 24, 2025 14:17
@nfebe
Copy link
Contributor Author

nfebe commented Mar 24, 2025

cc: @marcoambrosini
align-copy-icon

@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch from f834b14 to 9e79113 Compare March 24, 2025 14:25
@nfebe
Copy link
Contributor Author

nfebe commented Mar 24, 2025

/compile

Shares that would expire now shows a clock icon with a popover.

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch 2 times, most recently from fa530fd to d293d79 Compare March 24, 2025 14:43
nfebe added 2 commits March 24, 2025 15:44
This commit adds the dayjs library as a dependency. New files should use
dayjs for date/time formatting and manipulation. Existing files using
moment.js will be gradually refactored to dayjs in subsequent commits.

Motivation:

- Moment.js is a large library with a significant bundle size, which can
  negatively impact performance.
- Dayjs is a smaller, more lightweight alternative with a similar API.
- Dayjs is immutable, which is a better practice.
- Moment.js is in maintenance mode.

This change introduces dayjs to facilitate a gradual migration away from
moment.js, improving performance and maintainability in the long term.

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the feat/47176/show-share-expiry branch from d293d79 to 94df136 Compare March 24, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

Display Share Expiry Based on UTC Time
2 participants