Opened 10 years ago

Closed 8 years ago

#513 closed enhancement (fixed)

Deleted Items folder

Reported by: dstillman Owned by: dstillman
Priority: blocker Milestone: 1.5 Beta 1
Component: data layer Version: 1.5
Keywords: Cc:

Description

As suggested here: http://forums.zotero.org/discussion/308/deleted-items-collection/

Rather than the implementing as a collection, as suggested, it might make the most sense to just add a new DB table and add some NOT IN's to queries.

New method Item.trash() to insert itemID into the table?

Change History (9)

comment:1 Changed 8 years ago by stakats

  • Priority changed from minor to critical

With syncing this enhancement becomes essential. Deleted items should expire after a user-configurable delay, specified in days. Deleted items should also be able to be purged immediately with a right-click to the trash icon.

comment:2 Changed 8 years ago by stakats

  • Priority changed from critical to blocker

Escalating this item to blocker. Should be implemented prior to public beta.

comment:3 Changed 8 years ago by dstillman

(In [4033]) Addresses #513, Deleted Items folder

  • Still experimental, but committing for testing
  • Sync conflicts with deleted items aren't yet supported

Unrelated: deprecated ZoteroPane.deleteSelectedItem() in favor of more accurately named deleteSelectedItems()

comment:4 Changed 8 years ago by dstillman

(In [4034]) Addresses #513, Deleted Items folder

Missed in previous commit

comment:5 Changed 8 years ago by dstillman

(In [4035]) Addresses #513, Deleted Items folder

Adds handling for parent/child items in trash -- non-deleted context items will appear in gray, and "Restore to Library" and the delete keystrokes won't be available if any of those are selected

Like other search views, Select All will select only the deleted items

comment:6 Changed 8 years ago by dstillman

(In [4036]) Addresses #513, Deleted Items folder

Remember selection of trash in collection pane and don't lose focus after a restore

comment:7 Changed 8 years ago by dstillman

(In [4037]) Addresses #513, Deleted Items folder

Hide restore button when no items are selected

comment:8 Changed 8 years ago by dstillman

(In [4040]) Display trash can all the time, unless showTrashWhenEmpty is set to false

  • Icon isn't currently reset to empty state when all trashed items are removed
  • Dragging doesn't yet work

Addresses #513

comment:9 Changed 8 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.