renamed toast.js to jobs.js and moved Job related calls to jobs.py form files.py AND get job.py to allow job_mgr msgs to go to F/E via a POST of /checkforjobs (picked up in templates/base.html). move files also calls new CheckForJobs() to pick up when move job finishes without needing a page reload
This commit is contained in:
21
TODO
21
TODO
@@ -1,4 +1,18 @@
|
||||
### GENERAL
|
||||
* get all status messages to use toasts AND get func to also increase/descrease the job counter as appropriate)
|
||||
- [DONE] all (success/creation) status messages use toasts
|
||||
-- any non-sucess still stays a top of the page as an alert (for now?)
|
||||
-- [DONE] make a helper func for setting toast body and use it in base.html && file_support.js
|
||||
-- [DONE] make a helper func for setting 'Active Jobs' text/badge and call it when document ready (rather/both than start of base.html)
|
||||
-- [DONE] trigger a timeout to play back pa_job_mgr message to FE and reset 'Active Jobs' text/badge until it hits 0
|
||||
-- [DONE] (re)start this code if any new jobs is created (on move only for now - in the long run all job creation should consider this POST/json model)
|
||||
-- [TODO] fix base.html to only call toast() and only in document.ready()
|
||||
-- [TODO] this means handling danger, and persistent / no time-out toast()s
|
||||
-- [DONE] warning works now (colors, etc.)
|
||||
-- [TODO] have not thought about danger at all (the StatusMsg() code should work) - but missing Clear*() and persistence
|
||||
* [TODO] delete files should behave like /move_files (stay on same page, job start with toast(), etc.)
|
||||
* [TODO] ALL job creation should follow above pattern
|
||||
|
||||
* change the rotation code to use that jpeg util to reduce/remove compression loss?
|
||||
|
||||
* ignore face should ignore ALL matching faces (re: Declan)
|
||||
@@ -13,13 +27,6 @@
|
||||
response.headers["Content-Type"] = "application/json"
|
||||
return response
|
||||
|
||||
* get all status messages to use toasts AND get func to also increase/descrease the job counter as appropriate)
|
||||
- [DONE] all (success/creation) status messages use toasts
|
||||
-- any non-sucess still stays a top of the page as an alert (always?)
|
||||
-- [DONE] make a helper func for setting toast body and use it in base.html && file_support.js
|
||||
-- [TODO] make a helper func for setting 'Active Jobs' text/badge and call it when document ready (rather/both than start of base.html)
|
||||
-- should allow all JM Messages, or other messages to be an active Ajax poll until a job has completed
|
||||
|
||||
* should allow context menu from View thumbs (particularly useful on search) to show other files around this one by date (maybe that folder or something?)
|
||||
|
||||
* could get better AI optim, by keeping track of just new files since scan (even if we did this from the DB),
|
||||
|
||||
Reference in New Issue
Block a user