fix(core): add favorite folder in menu, adjust empty-page new page button (#7730)

close AF-1150, AF-1128, AF-1131
- Replace favorite migration related copy
- Adjust empty page's "New Page" button
  ![CleanShot 2024-08-05 at 15.16.06@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/1cf7d75a-a33a-4eec-9dc1-87d50d9526f1.png)
- Add toggle favorite to folder menu
  ![CleanShot 2024-08-05 at 15.17.50@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/af6116b5-47d1-49a6-9660-41c0d7cd8fd3.png)
- Adjust `Button`
  - add `withoutHover` state
  - remove cursor: not-allowed when disabled
This commit is contained in:
CatsJuice
2024-08-05 09:15:16 +00:00
parent 73a6723d15
commit 6d253c0600
9 changed files with 121 additions and 29 deletions

View File

@@ -1118,12 +1118,12 @@
"com.affine.rootAppSidebar.collections": "Collections",
"com.affine.rootAppSidebar.favorites": "Favourites",
"com.affine.rootAppSidebar.migration-data": "Migration data",
"com.affine.rootAppSidebar.migration-data.help": "Migration your favorites data",
"com.affine.rootAppSidebar.migration-data.help.description": "This is the old Favourites data. Previously, Favourites were shared during collaboration. We have redesigned the Favourites feature, which requires you to take certain actions. You can drag this content or directly hide and delete this part of the data.",
"com.affine.rootAppSidebar.migration-data.help.clean-all": "Clear all migration data",
"com.affine.rootAppSidebar.migration-data.help": "The old \"Favorites\" will be replaced",
"com.affine.rootAppSidebar.migration-data.help.description": "Your documents are safe, yet you may need to re-pin your most-used ones. Previously, 'Favorites' were shared across the workspace. We've improved on this - now each person has a personal 'Favorites' section for their top documents, collections, and folders. We advise migrating your data.\nThe old 'Favorites' will disappear once emptied. Drag your items with ease from the old shared 'Favorites' into your new personal section, or opt to delete all old favorites by simply clicking 'Delete all the old data' now.",
"com.affine.rootAppSidebar.migration-data.help.clean-all": "Delete all the old data",
"com.affine.rootAppSidebar.migration-data.help.confirm": "OK",
"com.affine.rootAppSidebar.migration-data.clean-all": "Clean all migration data",
"com.affine.rootAppSidebar.migration-data.clean-all.description": "This will delete all Migration data, don't worry, <b>it won't delete any data entities</b>, it will just clean up the content on the sidebar. Once the content is cleared, the sidebar will no longer display this section until the next occurrence of conflicting data.",
"com.affine.rootAppSidebar.migration-data.clean-all": "Delete All Old Data",
"com.affine.rootAppSidebar.migration-data.clean-all.description": "This action will empty and delete the entire discontinued Favorites section. Don't worry, <b>all your documents will not be affected - this only removes the old Favorites from the sidebar to place the new one</b>. In the meantime, please verify that you've moved all your frequently accessed documents to the spanking new personal Favorites section first.",
"com.affine.rootAppSidebar.migration-data.clean-all.confirm": "OK",
"com.affine.rootAppSidebar.migration-data.clean-all.cancel": "Cancel",
"com.affine.rootAppSidebar.organize": "Organize",
@@ -1140,6 +1140,8 @@
"com.affine.rootAppSidebar.organize.delete": "Delete",
"com.affine.rootAppSidebar.organize.delete-from-folder": "Remove from folder",
"com.affine.rootAppSidebar.organize.root-folder-only": "Only folder can be placed on here",
"com.affine.rootAppSidebar.organize.folder-add-favorite": "Add to favorites",
"com.affine.rootAppSidebar.organize.folder-rm-favorite": "Remove from favorites",
"com.affine.rootAppSidebar.tags": "Tags",
"com.affine.rootAppSidebar.tags.empty": "No Tags",
"com.affine.rootAppSidebar.tags.new-tag": "New Tag",
@@ -1393,8 +1395,8 @@
"com.affine.syncing": "Syncing",
"core": "core",
"dark": "Dark",
"emptyAllPages": "Click on the <1>$t(New Doc)</1> button to create your first doc.",
"emptyAllPagesClient": "Click on the <1>$t(New Doc)</1> button Or press <3>{{shortcut}}</3> to create your first doc.",
"emptyAllPages": "Click on the <1></1> button to create your first doc.",
"emptyAllPagesClient": "Click on the <1></1> button Or press <3>{{shortcut}}</3> to create your first doc.",
"emptyFavorite": "Click Add to Favourites and the doc will appear here.",
"emptySharedPages": "Shared docs will appear here.",
"emptyTrash": "Click Add to Trash and the doc will appear here.",