-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Show Download Limits on upload page: Solves #661 #681
Conversation
@shikhar-scs ,cool |
@sevaan Please review |
@dannycoates mind giving a review?? |
Looks great, @shikhar-scs. Thanks! |
@sevaan welcome. 😀 |
I don't do code reviews, so wait until @dannycoates gives it a look over. But from a front-end visual POV, looks good. |
@sevaan ok, thanx. I'll surely wait for @dannycoates |
@dannycoates mind reviewing here please ? |
This is going to need more work, including server api changes, in order to stay updated between page refreshes and as the download count changes. I think it'd be better if I take on this task. I'm sure @shikhar-scs could do it, but there's some other aspects of the design I'd like to change that also affect this, and it'd probably take us just as long to talk about it as it would for me to just do it. |
Even if that's the case, still I would like to work on this as I had already invested much time and thus, this PR going away like this is not good for me. With time I've only understood more and more of the code base. And I believe with a little bit of guidance I'll be able to do all of the stuff you require. If you could just make one long comment as to where the rest of the changes have to be made, I'll see to my self that they work. And if they dont I'll be more than happy to let you take over.
Once I'm done with the backend stuff you can incorporate all the design changes.(or mention it in the comment itself and I'll do that ) Rest is up to you. |
@dannycoates any thoughts on this ? 🤞 |
Ok @shikhar-scs. If you're in this for the long haul I'll help guide you through it. You can expect this to be a pretty big effort and will likely take a fair amount of time. I will have some time later this week to come up with a plan. Stay tuned. |
yep Sure I am ready to invest time if the need be and also tell me if I need to remind you about the same 😄 |
Ok, @shikhar-scs, here we go... In There's a The rest should just be updating the UI parts, which you've already started on. In the downloads column I think we should show both the number of downloads that happened |
Awesome !!! I'll get started with it right away. Thank you. |
@shikhar-scs , awesome |
@dannycoates I'll tell you my approach.
Using the else part of if(!ok), I wrote my checkDL method to receive metadata respective to that file. This ensured that we are asking metadata of files which actually exist.
In the new method, taking cue from this following snippet on how to use the Lines 188 to 196 in bace117
I wrote a similar method in order to use the getMetadata method of FileReceiver.
However, the file which is sent in case of the Line 64 in bace117
The difference is that files taken from state.storage.files don't have the following or similar attributes namely I also tried using then
This however looks rather simpler comparatively to manage. Could you please guide on how to tackle the above problem. |
I think you're close but I have a feeling you aren't up to date with the master branch. |
True that, life saviour 😄 . |
Ok @dannycoates, I've implemented changes and please have a look. I've pushed them at shikhar-scs@662e185 I guess dynamic changes are still not occurring. They do occur on refresh though. Here's a preview. The main difference between However, in case of Have a look at the preview for more details. P.S. If you could re-open this PR please |
@dannycoates mind reviewing? |
yep. please push your changes to this PR's branch. |
I'll push them in a while, but is the content of the gif file good |
@dannycoates I had already pushed my commits when the PR was in a closed state. Also, the changes do reflect here. Though it isn't showing a new commit. Please go to Also the CI tests fail because of some similar reasons. |
Localization authors: - Jim Spentzos <jamesspentzos@hotmail.com>
Localization authors: - Juan Esteban Ajsivinac Sián <ajtzibsyan@yahoo.com>
…Send Localization authors: - Emin Mastizada <emin@mastizada.com>
Localization authors: - eljuno <eljunotrie_anggoro@yahoo.co.id>
Localization authors: - eljuno <eljunotrie_anggoro@yahoo.co.id>
Localization authors: - Khaled Hosny <khaledhosny@eglug.org>
Localization authors: - Kerim Kalamujić <kerim@mozilla.ba>
improved font family font changes
Changed * to ●
included global MAXFILESIZE
Localization authors: - Jordi Serratosa <jordis@softcatala.cat>
Localization authors: - Jordi Serratosa <jordis@softcatala.cat>
9600d0b
to
aaa6556
Compare
@dannycoates due to a poor rebase earlier, it led to a bad squashing result. This got out of control. So i've filed a new PR at #721. Please have a look there. :) |
As suggested by @SoftVision-CiprianMuresan at #661, the downloads available can now be seen on the main upload page. This is the basic work done.
Preview
Due to non-availability of translated texts, I could not change the table headers as to my convenience and so the
Expires in
column is repeated. Also an svg image icon can be used instead of the word d'load (complete downloads was not fitting in the table cell) However the download limits can now be seen on the main page.Please review @sevaan @dannycoates @SoftVision-CiprianMuresan