MPA

From the to-do list: MPA V1.0: post API integration

✔ Add "New" label for recent files

Comments

Pierre henri Seylan on March 10, 2017:

Context:

In the sound library, the files can be sorted by "date", which orders the files by creation date.

This however doesn't allow to display the new files to the user.
This task is about adding a "New" label which shows the newest files to the user.

Logic:

The "New" label is already implemented in the project list (new project tab)
There, it seems that a diff is made in the local projects DB, and labels all the files which were not previously registered in the DB as new files.


We should use the same method for the sound library, if possible.
A possible implementation is to track which files are were not present in the sqlite db after it has been updated, those files should then be labeled as new.

This is only a proposal, let me know if you feel that there is a more appropriate solution.

NOTE: At first sight it seems that this functionality wouldn't affected by the new API, but let me know if we should wait until the new API is integrated.

Behavior:

The wished behavior is that the new files are marked with a green "new" label, like in the projects tab

The files should remain labeled as "new" until the user closes and re-opens the app.

This should be available for both sound items and sound packs/collections, except in the sound library home page and personal tab.

UI: 

For now you can simply add the new label below the packs image (as in projects) and at the end of the sound item names.
This will be refined later by the developers working on the UI.

Karim Alabtakh on June 30, 2018:

done

Pierre henri Seylan on July 3, 2018:

After testing, it seems to work well except for one case:
I have created new factory packs/files with a user, and then logged in with another user.
The "new" label didn't appear for the 2nd user.

This shouldn't be an issue with the local db, since the 2 users are supposed to use 2 different local db.

Let me know what you think, if this is a normal behavior for some reasons or if it is a bug.

Karim Alabtakh on July 18, 2018:

It look like I have misunderstood the use case. only new files added by user will be marked as NEW. the logic of new projects will not work correctly for sound lib with new API becouse we will use dynamic loading.
But as a solution we can implement another logic, so we can save date&time of last sound lib update (ex 10.10.2019 2:2pm). and compare it with date creation of files (ex. client will opened 11.10.2019 so all files created after 10.10.2019 will be marked as NEW).

Pierre henri Seylan on July 18, 2018:

OK then let's implement the solution you have suggested.
But it should for all files of the sound lib (user, factory, shared)

Karim Alabtakh on July 25, 2018:

done

Pierre henri Seylan on July 25, 2018:

I'm still having the same issue.

I have created a new factory pack and added new files into the sound library.
When logging with a new user, no files/packs are displayed with the "new" label

I'm adding new files pretty much every day, so when going to the factory library, you should see many files being labeled as new

Karim Alabtakh on July 25, 2018:

there is a conflict with server time.
so we need additional api to return server time.

Karim Alabtakh on July 26, 2018:

I notified web developers about that, so they are working on it.

Karim Alabtakh on February 27, 2019:

done

Pierre henri Seylan on February 28, 2019:

let's add the 72h minimum time as discussed over slack

Karim Alabtakh on March 5, 2019:

done