-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(web): add last asset upload date to user admin details #23616
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
Open
aviv926
wants to merge
8
commits into
immich-app:main
Choose a base branch
from
aviv926:Last-uploaded-on
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
10 tasks
Collaborator
Author
|
Btw if we merge this, we'll need to change the title Storage Quota to Storage Info. |
aviv926
commented
Nov 5, 2025
| let canResetPassword = $derived($authUser.id !== user.id); | ||
| let newPassword = $state<string>(''); | ||
| let lastUploadText = $derived( |
Collaborator
Author
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.
We can also use this option which is even more accurate in terms of time (even to the minute level) and it also uses the local language for the hour and time.
Let me know what you think
Suggested change
| let lastUploadText = $derived( | |
| let lastUploadText = $derived( | |
| user.lastAssetUploadedAt | |
| ? (DateTime.fromISO(user.lastAssetUploadedAt).toRelative({ locale: $locale }) ?? $t('unknown_time')) | |
| : $t('never_uploaded'), | |
| ); |
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
This PR allows the system administrator to know when an asset was last uploaded by the user.
This helps in situations where the operating system or an unknown problem causes the backup to stop.
By adding this, the system administrator can see if a user has not uploaded an asset for a long time and try to help them resolve the problem.
How Has This Been Tested?
Experiment A:
Uploading an asset
Result:
Last uploaded today
Experiment B:
Delete the asset I uploaded
Result:
Last uploaded 2 days ago
Screenshots (if appropriate)
Experiment A:

Experiment B:
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
yes
for luxon $derived part and also for web/src/routes/admin/users/[id]/+page.ts
...