christopherbot / botghani-notepad

A React-Native notepad app
1 stars 0 forks source link

Add ability to merge two lists together #228

Open christopherbot opened 4 years ago

christopherbot commented 4 years ago

As a user, I want to be able to merge 2 lists together. Say I made 2 grocery lists by accident and I want to combine them into one, one approach would be:

Perhaps the UI can show what is about to happen at the end before the user confirms. For example...

If you want to keep the entire contents of both lists (i.e. duplicates are not removed):

+-----------------------------------------+
|  Merge List A into...                   |
|                                         |
|  List B                                 |
| [List C] <-- User selects               |
|  List D                                 |
|                                         |
| [ ] Remove duplicate items from List A  |
|                                         |
|  L̶i̶s̶t̶ ̶A̶  +  List C  =>  List C          |
| [ ○, ⯀ ]   [ ○, △ ]    [ ○, △ ]         |
|                        [ ○, ⯀ ]         |
|                                         |
|                         Cancel    Merge |
+-----------------------------------------+

If you want to remove duplicate items (We could combine the two note sections of that items as well. Wouldn't be difficult.):

+-----------------------------------------+
|  Merge List A into...                   |
|                                         |
|  List B                                 |
| [List C] <-- User selects               |
|  List D                                 |
|                                         |
| [x] Remove duplicate items from List A  |
|                                         |
|  L̶i̶s̶t̶ ̶A̶  +  List C  =>  List C          |
| [ ○, ⯀ ]   [ ○, △ ]    [ ○, △ ]         |
|                        [ ⯀    ]         |
|                                         |
|                         Cancel    Merge |
+-----------------------------------------+