Commit Graph

149 Commits

Author SHA1 Message Date
56c2d586b6 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 2023-01-09 13:13:51 +11:00
1ba9bf4312 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 2023-01-06 17:37:15 +11:00
c3971eb495 first-pass of popups for job creation for more than just move files, and fix BUG-112 (after move highlighting is broken) 2023-01-04 12:26:25 +11:00
0eeb68658b move files now has bs toast pop for success and stays on the page you are on for more moves 2023-01-03 22:46:29 +11:00
972eac5b5b first pass of move_files not redirecting to / and staying put for an other move_files, works, but needs success/toast 2023-01-03 15:48:13 +11:00
b952fe82f6 large refactor of code to use venv (in .python) for DEV, to use consistent python versions with PROD, sepcifically flask 2.2.2 to address the deprecation of FLASK_ENV -> replaced with ENV. Fixed up git and dockerignores to be more stringent 2022-12-31 15:42:03 +11:00
1da4f410fd fixed import of MovePathDetails to the rest of path imports 2022-12-29 13:03:02 +11:00
2a1e2d7d5d cleaned up code around json, *locn -> transitioned to top, right, bottom, left to finally fix ORM replacing [ with { <- FIXES BUG-108 2022-12-23 16:18:27 +11:00
4ac52a771a clean up comments 2022-12-23 14:36:22 +11:00
120cb9bd94 remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix 2022-12-23 13:41:20 +11:00
5f5a41805a remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix 2022-12-23 13:38:13 +11:00
71ec54807a remove last remnants of Paths, now only 1 directory per path AND created a new db-container subdir that takes the latest postgres image and adds a crontab / uses cron to run a bkup_users.sh script that dumps the person, refimg and linkage table so that if we ever blow the DB away, we dont lose the users 2022-09-17 22:40:50 +10:00
a8af00fe66 big change to get metadata working fully in DB and on Filesystem, and recover from most common scenarios, improved GUI as well for allowing an immediate search after adding refimg as well 2022-08-01 23:44:38 +10:00
4f01125bcc improved login page to be responsive, also made pretty fname remove paths now we have only 1 imp/sto/bin path -- reduces fname size which is a small help to BUG-96 2022-07-16 17:10:05 +10:00
b935aa8ab8 can now add/remove overrides (manual or no matchx3) in any sequence of load/reload, or back-to-back and it all works 2022-06-13 18:30:13 +10:00
a53d4896b0 now have functional add/remove manual override to existing person 2022-06-11 22:41:31 +10:00
18ec0f87f5 fixed BUG-86 - last places changed from locn to tmp_locn 2022-06-10 16:49:03 +10:00
cc478cb722 new BUG-87 - faces with empty locn and no formal connection between file and face? Quick hack added to files as well to at least prevent a 500 server fault, and show it to us if it happens again 2022-04-30 19:38:08 +10:00
60c2357921 spacing 2022-03-12 22:24:04 +11:00
b38e4fa0bb if we do confuse the viewing / states AND we are in prod, then delete states and tell user to get a new tab / try again -- lame but it will work as a catch all 2022-02-02 18:49:55 +11:00
e022b49a92 remove old route for /search and fix issue where searching for empty string was failing 2022-01-30 23:42:38 +11:00
36c11a18ca fix issue where search was not saving prefs 2022-01-29 20:07:51 +11:00
7a17d91779 now use eval() for GetEntries*Fold*, and much better fix for bug where next/prev was breaking with inputs with spaces in names -- dont need those inputs anyway, JUST pass next or prev and the rest comes from pa_user_state now 2022-01-29 18:53:30 +11:00
8e82271e2a start of noo for Search, and rewrite of GetEnt* to use eval(), search and flat done, but also fixed OLD bug I just noticed where prev/next buttons would not work when sorting by "A to Z", etc. as the value of the form.input has a space in it and serializeArray() was not dealing with it properly 2022-01-29 18:06:21 +11:00
fee993711f hacked /files_ip for now, this whole page is a bit of a mess, not sure we keep it - and its a kludge to assume its in the file_ip path -- only will work if img is in import path and we are viewing in flat mode, but at least this means we dont break the app, just get a confused viewer message. Also use tmp_locn rather than face.locn for viewlist to fix BUG-82 2022-01-28 20:48:56 +11:00
f509786977 remove debugs, only calc num_entries in Flat view once 2022-01-28 19:57:48 +11:00
47039ec35c partial fix for various BUGs with going past the end of a viewing list... we now keep num_entries (of files) in pa_user_state, and use it to stop going before first or past last entry, even from viewlist, so this fixes many isseus... Final bug(s) are relating to multiple Dirs in a Path and its feeling too complex for no real gain, going to remove the feature, but for now, this version works / can be made to PROD 2022-01-28 15:52:35 +11:00
0751cc6010 clarified bug-82, fixed issue with AI scan optimising still scanning when it should not, finalised back button work for view/viewlist 2022-01-27 21:44:29 +11:00
07b339f5ab current, first_eid, last_eid now work for Flat view of Paths, folder view next 2022-01-27 17:06:31 +11:00
55724ccd59 removed use of last_entry_in_db (boolean) and replaced with use of current/first_eid/last_eid in PA_USER_STATE so it persists across reloads/back buttons, and allows full use of ajax data retrieval in the background for the viewer (so fullscreen stays across page loads), and the next/prev buttons are set on the image load, not after they have been pressed "one too many times" 2022-01-27 14:27:52 +11:00
08ca9b4e74 partial implementation of first_eid, last_eid -- I think the vals work -- they do for searches anyway, but not stored in pa_user_state yet 2022-01-25 00:48:14 +11:00
868ae25e6d quick fix for BUG-81 / need to test with PROD dataset 2022-01-23 14:41:32 +11:00
0f4632e240 changing options on files_*, search, also next/prev all now use POST->redirect model, so should allow back/forward browser buttons to work - commit so we can test in PROD 2022-01-22 21:36:58 +11:00
9ca24358d0 fixed BUG-74 and 79 with new States model 2022-01-20 17:37:37 +11:00
78acb9bd66 big clean up of Options -> States, total rework, now actually handles pa_user_state -> States as Import/Storage/Bin/Search or View. If Search has orig_search_term saved. If view, has orig_ptype (and orig_search_term if orig_ptype is Search) -- removed OPT.paths -> these are now worked out when we GetEntries based on pa_user_state. This now allows us to GET all URLs for image viewing allowing me to use the back-button without issues in PROD - well we will see once I commit :) 2022-01-20 17:25:01 +11:00
5461cb4036 improve /view naming 2022-01-20 14:18:27 +11:00
4fa7b4b2d3 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:13:50 +11:00
94780119c4 back out new viewer, it does not work in PROD for storage at all 2022-01-20 11:37:55 +11:00
30a2fa6d99 quick fix for view being a POST, its now redirected to a GET, but I want to fix up the viewlist properly as well, should work for now though 2022-01-20 11:26:09 +11:00
505a5fa813 made search a POST to /search be a redirect to a GET /search/<search_term> so that it works with back/forward buttons in the browser 2022-01-19 22:40:47 +11:00
a2091f0194 remove onpopstate stuff, and updated TODO with better way to deal with this 2022-01-19 21:18:50 +11:00
a84946b561 fixed BUG-76 - no existing for a non-date with move 2022-01-09 18:13:26 +11:00
dc21d65dd7 Put new functionality in to allow choosing existing folder in move code - it goes back and forwards 7 days from the date of this file and finds matching files and uses those dirs, or just dirname matches for those dates and offers them up. Also improved Move code to reject dodgy paths 2022-01-09 12:20:29 +11:00
d40f2de2a1 remove duplicates from search results - fixes BUG-70 2021-10-10 21:58:58 +11:00
91f0f10767 remove duplicates from search results 0fixes BUG-70 2021-10-10 21:46:13 +11:00
b135f5681d Fixed bug-69 - FullPathOnFS() was wrong for first dir in a path 2021-10-02 14:49:07 +10:00
0bcc85f42b remove last remnants of rotate instead of transform, updated rot* svgs to have arrow point in direction of actual rotation, AND, fixed bug where when we rotate an image that has already had an exif_transform on it, then we have to do that and then the requested rotation - fixes why sometimes we rotate say 180 when we intended a 90 rotate. Also, when we transform, recalc md5 as file has changed 2021-10-01 22:16:42 +10:00
23c8d16a5b fix BUG-64: can now move files into import or storage path 2021-09-26 21:14:08 +10:00
3ee81a66f2 allow close of errors that are not checkdups jobs from FE 2021-09-24 12:50:02 +10:00
85902bbc3c redo Status SetMessage so it defaults to success and danger is a force in the setting of the message, to fix BUG-52 where a success message ended up with danger colour somehow -- might not perfectly fix it, but its neater and if it does not fix it, then its a timing issue I am not sure how to test/fix 2021-09-16 21:18:09 +10:00