Improve Views UX part 2: time_diff, fields, and storage optimization#24
Merged
Improve Views UX part 2: time_diff, fields, and storage optimization#24
Conversation
added 3 commits
January 28, 2026 12:34
- Add hook_update_8003 for view enhancements - Add analyzed_timestamp field with time ago format - Add created field with time_diff enabled - Enable time_diff on changed field (shows relative time) - Add content type filter - Change default sort from created to changed - Standardize field ordering across views - Refactor SentimentsStorageService to use merge/upsert pattern - Add user module dependency and user.permissions cache context - Clean up filters and remember_roles Follow-up to #23 (Improve Views UX)
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.
Summary
Follow-up to #23 (Improve Views UX). This PR adds additional view enhancements and storage optimization:
View improvements:
hook_update_8003for view enhancementsanalyzed_timestampfield with "time ago" formatcreatedfield with time_diff enabledchangedfield (shows relative time like "2 days ago")createdtochangedusermodule dependency anduser.permissionscache contextStorage optimization:
SentimentsStorageService::saveScores()to use merge/upsert patternTest plan
drush updbto apply update hook 8003drush crto rebuild caches