filesafe/TODO.md
Bobby Wibowo 337a0a61ff
Implemented parallel URL uploads
This doesn't use the server's built-in ability to accept multiple URLs
per API request.
It behaves the same as regular uploads, in that it executes one API call
per file, simultaneously.

I figured this is a better implementation to shift queues faster.

---

Fetch error from URL uploads due to exceeding size limit will no longer
be logged in server's console.

Clients will also see better formatted error message for URL uploads'
file size limit errors.

---

Bumped dependencies:
knex: 0.20.2 -> 0.20.3
systeminformation: 4.15.3 -> 4.16.0

Bumped v1 version string
2019-11-29 17:42:29 +07:00

5.6 KiB

Todo

Normal priority:

  • Improve performance of album public pages, and maybe paginate them.
  • Use native lazy-load tag on nojs album pages.
  • Use incremental version numbering instead of randomized strings.
  • Use versioning in /api/check. To elaborate, make it so that when a version string reported by server is higher than expected, force user to reload the page (which should be all that is needed for users to be loading latest front-end assets). Possibly also use it in /api/tokens/verify, for dashboard page.
  • Better df handling (system disk stats). To elaborate, either properly show disk usages of directories that have sub-directories, or only show disk usages of whitelisted directories (thumbs, chunks, etc).
  • Use loading spinners on dashboard's sidebar menus.
  • Disable all other sidebar menus when a menu is still loading.
  • Collapsible dashboard's sidebar albums menus.
  • Add "View uploads" button in "Manage your albums" page. Assuming the sidebar album menus are collapsed, users can optionally use this button as a shortcut, if they already happened to be in that page.
  • Change title attribute of disabled control buttons in uploads & users lists.
  • Use Gatsby logo for link to blog.fiery.me on the homepage.
  • Automatically create missing columns in database/db.js. That way we will no longer need the migration script.
  • Better error message when server is down.
  • Show expiry date in thumbs view.
  • Add Select all checkbox somewhere in thumbs view.
  • Display renders after API check.
  • Enforce pass min/max lengths in dashboard's change password form.
  • Add a copy all links to clipboard when there are more than 2 uploads in homepage's uploads history.
  • Update fb_share.png.
  • I forsaked all Promise.all() in favor of await-in-for-loop a while back. I personally think it was fine, considering a lot of them were tasks that required serial processing (continuation be dependant on previous iterations), but maybe I should review the current codes to find any sections that would do just fine, or maybe even great, with Promise.all().
  • Black-ish colorscheme.
  • Colorschemes option. Bring back the old dark grey colorscheme, and also add lolisafe's stock light colorscheme.
    I think it may be fair to load the colorscheming JS file before style.css gets loaded. Meaning the colorscheme script in particular needs to be in HEAD tag, as opposed to the standard where we put all JS files at the end of BODY tag.
    Once this is implemented, default colorscheme should be the old dark grey.
  • Turn render.js into a standalone script (don't use page window variable).
    Due to the fact that it needs to have page variable defined first, it can't ever be loaded before home.js.
    This may prevent proper async load of JS assets, which I'd like to look into, in pursuit of even more speed.
  • Remember last pages of uploads & users lists.
    Consider remembering last pages of each individual albums as well. When deleting an album, properly delete its remembered last page, if any. When listing albums sidebar and/or listing albums in Manage your albums, also delete remembered last pages of any missing albums (assume the albums were deleted from another device).
  • Descriptive upload progress, such as upload speed. Also tell user which chunk is currently being uploaded, to avoid confusion when progress "stops" when shifting to the next chunk.

Low priority:

  • Parallel URL uploads.
  • Delete user feature.
  • Bulk delete user feature.
  • Bulk disable user feature.
  • Strip EXIF from images. #51
  • DMCA request logs (bare text file will do), and link it in FAQ.
    This should also include list of files that also had to be manually deleted due to triggering Google's SafeSearch (harmful downloads, etc).

Lowest priority:

  • Find a way to detect whether a user had disabled their browser's built-in smooth scrolling capability. We will then use that to decide whether we should use smooth scrolling when auto-scrolling during navigation (for now smooth scrolling is always enabled; and polified if applicable).
  • Support fragments for dashboard sidebar menus.
  • When registering a new account, check for existing account(s) with the same username case-insesitively (for people who forgets how exactly they wrote their username). But still forces case-sensitivity when trying to login (cause this is a considerable security layer).
    Downgraded to lowest priority: This seems pretty annoying to implement (using either like operator or upper function seem pretty slow-ish). It seems to be a much better idea to force nocase collation onto username column instead. It'll also improve performance when querying users table by username. But that requires rebuilding existing users table and sacrificing duplicates, which makes it not that good of an idea either.
  • Perhaps consider switching from Express to Fastify?
  • Multi-level sub dirs for uploads. #51
  • Mime type blacklist. #51
  • Cluster mode (multi-core support). #50
  • Tiered accounts. #51