Commit Graph

68 Commits (51fa9aac461b46fd3b54c3459b068d80382c4bb9)

Author SHA1 Message Date
voussoir a7f8449dcd Update readme with separate run instructions for repl, cli. 2020-09-30 16:14:30 -07:00
voussoir 59cc76f8d9 Rename flask launchers -> _dev, _prod.
I want to reduce some complexity around here, part of which is that
launch imported entrypoint imported backend, all to do some proxy
wrapping which isn't necessary for the dev case anyway. Less
layers of wrapping and importing is good. Plus I think this naming
is more clear.
2020-09-30 15:05:44 -07:00
voussoir e11f04342a Use nested <details> for the setup and run instructions. 2020-09-27 11:12:38 -07:00
voussoir 4fd9b54860 Update frontends summaries. 2020-09-27 11:12:20 -07:00
voussoir 454693f1dc Add etiquette_cli.py.
Just enough to pique your interest.
2020-09-27 10:57:31 -07:00
voussoir 4ee9aea3a9 Remove these pitiful leftovers of a changelog legend. 2020-09-27 10:49:23 -07:00
voussoir 838982b6c3 Let login take username.
This cuts back on unnecessary sql selects.
2020-09-17 21:02:55 -07:00
voussoir 2229a876e0 Remove to-do for album cards.
When I first added album cards I left this line on the to do list
because I wasn't sure if I would wind up scrapping them. Although they
still need refinement, I know they'll be sticking around so let's
remove this.
2020-09-17 17:37:28 -07:00
voussoir a996861b22 Remove to-do for "commit too early" message.
This has become obsolete at some point, when commit became part
of the transaction decorator and defaulted to False.
2020-09-17 17:36:11 -07:00
voussoir d0b4c20413 Remove to-do for lost & found.
Let's see if this inode tracking thing works out, and it might be
an adequate solution to the problem. As long as non-unix filesystems
work reliably and you aren't moving files across partitions.
Hashing is still an idea on the table.
2020-09-17 17:34:13 -07:00
voussoir 77be61f4c6 Update What Am I Looking At with more detail. 2020-01-29 23:09:44 -08:00
voussoir 47c0a7221c Prototype of album drag-and-drop moving.
I'm not entirely happy with the way that native drag-and-drop looks,
the transparent bit that you hold while dragging looks dumb.
Will have to look into control / shift clicking to multiselect.
Also just using browser confirm() for now since I haven't made my
own dialog for that kind of thing yet.
2020-01-14 23:04:22 -08:00
voussoir 0ef3c7d6bf Tags on this page: add separate buttons for must, may, forbid. 2020-01-14 16:44:12 -08:00
voussoir a9e9d9b32c Add a "Running" header, like the "Setting up" header. 2019-03-22 18:29:50 -07:00
voussoir 71325f4fb5 Clarify gunicorn pythonpath instruction. 2018-11-04 19:54:09 -08:00
voussoir 6e312bd287 Rename the etiquette_flask backend package to backend.
Alright, I got tired of confusing myself with the same-named
outer and inner package.
Keep in mind that every frontend implementation is supposed to be
its own independent project where etiquette is nothing but a
dependency. So the name backend is not ambiguous with the etiquette
backend.
2018-11-04 19:45:23 -08:00
voussoir 6d3ab0f1ee Update to-do list with more dreams. 2018-11-04 19:10:28 -08:00
voussoir 99dcd1f800 Put setup & run steps into <details> spoilers. Improve clarity. 2018-09-30 00:57:28 -07:00
voussoir cf9b6d0725 Workaround autocomplete box sticking around after submitting. 2018-07-22 20:20:54 -07:00
voussoir 4c65ccaf68 Big! Liberate Groupables from strict heirarchy. Multiple parents.
I found that the strict heirarchy was not satisfying the situation
where one tag is the intersection of two others, but we can only
pick one as the parent

For example, does red_jacket belong under clothes.red_clothes or
clothes.jackets? A search for "red_clothes AND jackets" might
give us someone wearing red pants and a black jacket, so this
definitely needs to be a separate tag, but picking only one
parent for it is not sufficient. Now, a search for red_clothes
and a search for jackets will both find our red_jacket photo.

The change also applies to Albums because why not, and I'm sure
a similar case can be made.

Unfortunately this means tags no longer have one true qualname.
The concept of qualnames has not been completely phased out but
it's in progress.

This commit is very big because I was not sure for a long time
whether to go through with it, and so much stuff had to change
that I don't want to go back and figure out what could be grouped
together.
2018-07-20 13:09:06 -07:00
voussoir 6d349aa235 Update to do list with more batching ideas. 2018-05-01 18:06:27 -07:00
voussoir 79465b803e Remove album size caching from to do list.
With the recent improvements in album size determination this
is not necessary.
2018-04-19 19:00:16 -07:00
voussoir 4491fa3b5a Fix quotation mark in example set command. 2018-04-15 21:53:39 -07:00
voussoir baf53c4759 Update readme with more setup and launch info. 2018-04-15 21:34:05 -07:00
voussoir 21bd211889 Give Users a display_name. 2018-04-15 14:23:24 -07:00
voussoir db827d17ec Add to do regarding extension not being updated by override. 2018-03-21 19:20:06 -07:00
voussoir efd8e28c01 Remove Album improvements from readme.
I forgot to do this during 30d8d08.
2018-03-19 15:17:19 -07:00
voussoir a6babe116e Add some more notes about junctions.
Instead of, you know, actually writing the setup.py file.
2018-03-18 17:51:42 -07:00
voussoir e186653e36 Use shutil.which to discover ffmpeg.
How did I miss such an easy solution for so long??
So glad I did not go the env var route.
2018-03-18 17:03:11 -07:00
voussoir 0c7d35435e Consider env vars for ffmpeg path. 2018-03-18 00:21:33 -07:00
voussoir ffe0be21f5 Fix Photo thumbnail paths to be relative to the PDB's thumb dir.
Previously they were relative to the directory from which the client
was launched, meaning it usually started with ./_etiquette.
Now it should be more portable and less tight.
2018-03-13 02:50:54 -07:00
voussoir ae6df8f999 Remove searchhidden from to do list. 2018-03-09 17:52:52 -08:00
voussoir d88db08693 Allow PDB.rollback to take a savepoint; Warn early commits.
If a @transaction method makes calls to other @transaction
methods, and one of those nested calls makes a commit, and then
the outer call raises an exception, then the outer call will
not rollback properly because its savepoint is no longer in
the savepoint stack. So let's warn the user if that happens.
Should this raise an exception instead of just warn? Not sure,
I mean the data is already committed.
2018-03-05 21:35:36 -08:00
voussoir 3ff89c330f Remove obvious and unhelpful stuff from project structure. 2018-02-25 18:45:11 -08:00
voussoir c001b0fc87 Use SQL savepoints to improve @transaction.
I didn't know about these! Now we don't have to roll all the way
back in case of problems. This allows for raising exceptions as
control flow since they won't undo unrelated stuff.
2018-02-25 17:10:04 -08:00
voussoir 9c6cae7177 Use event listeners instead of setting onkeyup manually. 2018-02-24 00:24:38 -08:00
voussoir 5a1d259780 Add /clipboard UI for mass-tagging. 2018-02-22 15:23:57 -08:00
voussoir a9248d8cab Add CSS clipboard_size; and other clip hook improvements.
Any element with class clipboard_size will have its text updated;
Removed the call to on_pageload from save_ because it redundantly
causes a load. Separate those update hooks.
2018-02-20 20:20:20 -08:00
voussoir 13e8bc4a6f Add more items to to-do list; minor fixes. 2018-02-20 16:50:39 -08:00
voussoir 91d445a877 Add new page /clipboard, with full photo cards. 2018-02-17 19:12:34 -08:00
voussoir bf0ac1ebac Move etiquette_repl into a folder for consistency.
The items in the frontends folder should essentially be
black boxes with a launch file. Now the repl one looks the same
as the flask.
2018-02-16 22:31:10 -08:00
voussoir 5e6f3d96b1 Remove localstorage from the todo list because that's done. 2018-01-13 20:06:53 -08:00
voussoir 6f371701e4 Fix digest second-scan bug; Break down into smaller functions.
There was a bug where moving an album out of its determined parent
caused future digests to fail because I wanted to use the GroupExists
for control flow, but due to the @transaction decorator it was rolling
back the changes.
Moved some of the logical pieces of the function into subfunctions
as a visual and readability aid.
2018-01-09 18:59:15 -08:00
voussoir 67c2dadffa Expand the project structure diagram on the readme. 2017-12-16 04:08:15 -08:00
voussoir 443d93ce18 Add the clipboard tray where users manage their photo clipboard.
Appearing on search and album pages, the tray is where you can
remove items from your clipboard without having to click on its
checkbox -- that photo card may not even be on the current page.
2017-12-16 03:47:54 -08:00
voussoir d7d1e155c1 Add some tasks to the to do list. 2017-11-27 15:24:55 -08:00
voussoir 74f4e74bdf Add a few docstrings and update readme to-do list. 2017-11-16 16:46:39 -08:00
voussoir e1a904da6f Update readme with project structure diagram. 2017-11-12 01:14:16 -08:00
voussoir ad00854a18 Update readme with thoughts about permissions 2017-09-29 14:28:16 -07:00
voussoir a026a7488e Update the to do list. 2017-07-29 16:23:24 -07:00