clean up how we create toasts() [no longer try to reuse dom elements, just add new ones each time], support persistent notifications and close button or not [via separate booleans], created a clear message route and use that now in templates/base.html to clear FE messages. This will break for check dups as I am not setting persistence / close buttons correctly for those jobs, that is next. Converted move_files to new format
This commit is contained in:
34
TODO
34
TODO
@@ -1,32 +1,32 @@
|
||||
### 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)
|
||||
-- [DONE] (re)start this code if any new jobs is created (on move ONLY FOR NOW
|
||||
-- [DONE] make js StatusMsg() take a 'data' (json response) and process that
|
||||
-- [DONE] make it include message from the API endpoint doing the work, not in the js code...
|
||||
-- [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] 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
|
||||
-- [DONE] clean up has to be a POST back to server to clear DB (jscript/async has no other way)
|
||||
-- [TODO] go through the crazy persistent status msgs for checkdups, etc. and make sure they all work
|
||||
|
||||
* should be using jsonify to return real json to my API calls, e.g:
|
||||
use make_response( jsonify (... ) )
|
||||
-- [TODO] all POSTs should follow new status behaviour (unless its a form POST, as that immediately renders the form in flask and will show the Status)
|
||||
all GETs stay as is for now (as they expect a html reply, not data, and then html is base.html+ and it handles the status)
|
||||
-- ONLY time this will fail is multiple status messages (which can occur I believe if a Wake of job mgr and then a job is created in DB, the success will only be shown)
|
||||
-- [TODO] simple fix will be to get 'hidden' jobs (wake job_mgr and maybe? metadata) to post failure events to the JobMgr_FE DB queue
|
||||
-- [TODO] when ALL converted, replace 'alert="..."' with 'status="..."'
|
||||
|
||||
* delete files should behave like /move_files (stay on same page) as well as the status messages above
|
||||
|
||||
* change the rotation code to use that jpeg util to reduce/remove compression loss?
|
||||
|
||||
* ignore face should ignore ALL matching faces (re: Declan)
|
||||
|
||||
* should be using jsonify to return real json to my API calls, e.g:
|
||||
response = make_response(
|
||||
jsonify(
|
||||
{"message": str(FLAMSG_ERR_SEC_ACCESS_DENIED), "severity": "danger"}
|
||||
),
|
||||
401,
|
||||
)
|
||||
response.headers["Content-Type"] = "application/json"
|
||||
return response
|
||||
|
||||
* 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),
|
||||
@@ -39,6 +39,8 @@
|
||||
--> OR? https://jsmpeg.com/
|
||||
--> OR? convert all videos to mp4/webm
|
||||
|
||||
* consider whether FE_MSG should exist without a job #, and/or a sep. table, etc.
|
||||
|
||||
* delete folder
|
||||
|
||||
* allow joblog search (less needed with logs visible on a given file now)
|
||||
|
||||
Reference in New Issue
Block a user