zznicole / shopping-list

Ourshoppinglist is a Mobile-first Web application project. It was created by a team of two developers, using modern Javascript, ES6, React.js,Node.js DBOO database, Material UI, Arios......
0 stars 0 forks source link

Show ownership and sharing status of lists in both ListsScreen and TobuyListScreen #32

Closed kft-a closed 3 years ago

kft-a commented 3 years ago

The userlists API (ListsScreen.js) returns:

results = [{
        id: <dboo object id>,
        title: <The list's name/title>,
        subtitle:<A short description concatenating the first few items>,
        isOwn: <True if current user is owner>,
        owner: <Owner's user id>,
        isShared: <True if shared with anyone>,
        shareCount: <Number of users this is shared with>,
        isCompleted: <True if marked as complete>,
        itemCount: <Number of items in list>}, ....]

The getlist API (TobuyListScreen.js) returns:

   results = {
      listid: <dboo object id>,
      summary: <summary/title>,
      isCompleted: <True or false>
      isOwn: <True or false>,
      owner: <user of owner>,
      isShared: <True or false if shared>,
      shareCount: <Number of users this list is shared with>,
      items: [{itemid: <dboo object id>, 
                    title: <summary/title>, 
                    isCompleted: item.done}, ...] };
zznicole commented 3 years ago

it might involve putting logout in a drop-down instead of what it's right now. A meeting?

kft-a commented 3 years ago

I have added sharing details to the ListsScreen. For each item it is now shown "Shared by " or "Shared with nn others.". I have not yet added to TobuyListScreen.

kft-a commented 3 years ago

I added sharing details at the bottom of the TobuyListScreen. In commit #a3a3aca1d on master.