feat(core): add default group and order (#12526)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added default sorting and grouping by "Last Updated" for document views. - Introduced clearer group headers for documents grouped by creation or update date, displaying relative dates or appropriate fallback text. - **Improvements** - Enhanced date grouping headers with capitalized, user-friendly text and improved handling of missing dates. - Added a new localization for "Never updated" to improve clarity in document groupings. - Initialized document update timestamps at creation to improve date accuracy. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -7144,6 +7144,10 @@ export function useAFFiNEI18N(): {
|
||||
* `Unchecked`
|
||||
*/
|
||||
["com.affine.all-docs.group.is-not-checked"](): string;
|
||||
/**
|
||||
* `Never updated`
|
||||
*/
|
||||
["com.affine.all-docs.group.updated-at.never-updated"](): string;
|
||||
/**
|
||||
* `core`
|
||||
*/
|
||||
|
||||
@@ -1782,6 +1782,7 @@
|
||||
"com.affine.all-docs.group.is-not-journal": "Not Journal",
|
||||
"com.affine.all-docs.group.is-checked": "Checked",
|
||||
"com.affine.all-docs.group.is-not-checked": "Unchecked",
|
||||
"com.affine.all-docs.group.updated-at.never-updated": "Never updated",
|
||||
"core": "core",
|
||||
"dark": "Dark",
|
||||
"invited you to join": "invited you to join",
|
||||
|
||||
Reference in New Issue
Block a user