AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

feat: Duplicate page in page list and clone naming improvements

Open golok727 opened this issue 1 year ago • 1 comments

Enhancement: Improved Duplicate Page Functionality

Changes Made:

Added Separate Duplicate Button:

The duplicate page option was initially confined within the current active pages header. To enhance user experience, a separate button has been introduced in the PageOperationCell for easier accessibility. Repositioning Duplicate Option:

The new duplicate button is strategically placed above the existing MoveToTrash option in the PageOperationCell for better visibility and logical organization of page operations. Updated Duplicate Function:

Modified the duplicate function to automatically increment the suffix number of the duplicated page. This improvement aligns with standard editing tool behavior. How to Test:

Click on the new duplicate button in the PageOperationCell. Confirm that the duplicate page option is now easily accessible. Duplicate a page and observe that the suffix number increments appropriately. Note: This enhancement aims to streamline the process of duplicating pages and ensure a more intuitive user interface. The incremented suffix number for duplicated pages adds clarity and aligns with user expectations.

golok727 avatar Feb 09 '24 19:02 golok727

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 09 '24 19:02 CLAassistant

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1ceaf87) 65.24% compared to head (d0a31b5) 65.24%. Report is 11 commits behind head on canary.

Additional details and impacted files
@@           Coverage Diff           @@
##           canary    #5818   +/-   ##
=======================================
  Coverage   65.24%   65.24%           
=======================================
  Files         348      348           
  Lines       19664    19664           
  Branches     1657     1657           
=======================================
  Hits        12830    12830           
  Misses       6613     6613           
  Partials      221      221           
Flag Coverage Δ
server-test 71.49% <ø> (ø)
unittest 46.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 20 '24 08:02 codecov[bot]