Commit Graph

27 Commits

Author SHA1 Message Date
8b89d845db change key warning to be persistent, so I dont miss what it said 2024-03-10 13:39:38 +11:00
7e25c33f1a removed use of ref var for code readability
added some more defensive code to throw an error, rather than crash if missing pref, referrers, etc.
fix use of SetFELog with log_level="error" => level="danger"
2024-01-21 18:19:20 +11:00
a84ff49413 added BUG-120, somehow losing pref info. No prints are working in PROD, so changed a lot of printf( in the F/E to SetFELog with error and persistent/cant_close set across many files. Also used opportunity to remove a few unnecessary debugs 2023-04-09 13:10:28 +10:00
4b1bbcb2bf broad (small) changes to make style of all routes and jobs to be consistent, e.g. use underscords between words 2023-01-15 23:17:59 +11:00
a6e72b7e9b extra error checking 2022-12-23 10:51:01 +11:00
5221e330c1 Fixed BUG-102 cant switch to folder view 2022-08-02 17:55:10 +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
4f63e09946 removed debug 2022-07-17 23:03:12 +10:00
cfb222e3d1 fix BUG-95 (next button at top doesnt work in flat view) 2022-07-15 22:52:02 +10:00
e16f7dbc30 fixed bug when get of a view is for a non-search, now that I have added search to pa_user_state ORM query 2022-02-03 21:16:51 +11:00
a830e8dc92 viewing same eid but different search, etc. caused BUG-84 -- Fixed now as we look for a pa_user_state of View, eid=<eid>, orig_search_term=<...> 2022-02-02 18:51:02 +11:00
c6efd29a48 removed fullscreen and added default_search_noo 2022-01-30 23:02:42 +11:00
cce78b019c fix up issue with various fields for a View using last View values, rather than orig_ptype values -- which can now change as we change noo/folders 2022-01-29 18:54:31 +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
3903f7704c remove debugs, and added last_used to pa_user_state 2022-01-28 19:58:40 +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
2e4b1ed9d2 defaults in PAuser include noo/folders for import/storage separated, defaults are stored into PAUser in DB, changable in GUI, used as the defaults for new PA_User_States. Also disabled search noo, search folders as they are hard-coded in the ORM retreive anyway 2022-01-22 23:26:14 +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
b58afa3a5c clean up of states, to support multiple searches/views, and this will at least work for back/forward in prod - I believe. Still needs defaults from prefs, AND, remove unneeded variables from template/* and set those default values based on prefs 2022-01-21 16:48:05 +11:00
a856bcd6b2 clean up of notes, comments, BUGs, etc. 2022-01-20 17:49: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
2dab42d712 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:14:14 +11:00