Commit graph

62 commits

Author SHA1 Message Date
Gered 1b0075cae5 replace hardcoded list-id 0 values with a named constant 2016-07-31 14:54:32 -04:00
Gered 27cccf5c4f add "click-to-edit" textarea component and markdown->html conversion 2016-07-31 14:53:56 -04:00
Gered 153fc9d390 add missing deref to db connection usage (oops) 2016-07-31 13:55:31 -04:00
Gered ebef05e1f5 add views for retrieving basic list data 2016-07-31 12:39:07 -04:00
Gered a71d4f541b add routes for basic list CRUD operations 2016-07-30 17:24:20 -04:00
Gered 962a3624b7 better handling of user login/logout and passing user-id's to views
when logging in/out, there is a small window where the server's session
state and the client-side state and view subscriptions will not exactly
align and some view subscription updates (because
mtgcoll.client.auth/user-profile was updated) will get treated as
unauthorized.

this change is admittedly somewhat quick/hacky, but basically the idea
is to track the sente connection state (which is true when sente is both
connected and a handshake event has been received) in a reagent atom.
if false, we hide the entire ui and show a "connecting ..." message.

not super pretty, but it's only shown to the user briefly and it solves
the problem. i'll need to revisit this at some point and wrap it up
in some library code or something somewhere to make the whole method
prettier to use in the future
2016-07-24 15:32:03 -04:00
Gered 20ab3c0693 client/server updates to use the newly added lists
just bare-bones changes for now, no list management, and some hardcoding
of list id 0 in places where code is showing something based on the
owned list of cards
2016-07-24 15:09:30 -04:00
Gered 4b2bc86866 sql migrations to add lists_card_quantities table
this replaces the old cards.owned_count and cards.owned_foil_count
columns. queries that used to use those will now need to join to
lists_card_quantities on card_id/list_id

this allows the same types of card lists as before to be retrieved
but show quantity counts from any lists instead of just the "Owned" list
2016-07-24 12:51:20 -04:00
Gered 42beeb8022 add sql migration to index lists.is_public 2016-07-23 17:29:21 -04:00
Gered c3c805ddad add sql migrations for new lists stuff 2016-07-23 17:00:59 -04:00
Gered 41753f0464 add extra sort by id in cards list to make it stable for equal values
add a bunch of extra sql indexes to make sure this is performant
2016-07-10 23:30:36 -04:00
Gered f8d858e821 format prices with 2 decimal places always 2016-07-10 17:15:53 -04:00
Gered ac93a58829 bump version for development 2016-06-30 11:22:18 -04:00
Gered f41ba55674 version 1.0.2 2016-06-30 11:21:43 -04:00
Gered a058fc5241 add logback.xml 2016-06-30 11:19:35 -04:00
Gered 2bd93b4994 fix some sql queries such that jsqlparser can correctly parse them 2016-06-30 11:13:54 -04:00
Gered 0433d10563 bump version for development 2016-06-30 00:08:11 -04:00
Gered fe369555f4 version 1.0.1 2016-06-30 00:07:32 -04:00
Gered 84f534ae53 round up when calculating number of pages of search results 2016-06-30 00:01:37 -04:00
Gered c471840fd7 allow enter keypress to submit login form 2016-06-29 23:53:05 -04:00
Gered 89112fb19e fix chart legend rendering in production builds
i've no idea why this problem occurs in production builds. maybe
the clojurescript / google closure compiler is miscompiling the
".-datasets" property/field access? munging the name when it shouldn't?
and if so, why did it munge that name and not e.g. ".-labels" which
worked fine?
2016-06-29 23:49:39 -04:00
Gered cf34a72bd8 don't keep user password in returned user profile
stops the password from being transmitted to the client in the user
profile sent there
2016-06-29 23:16:00 -04:00
Gered 6d0fe057d0 bump version for development 2016-06-29 21:26:22 -04:00
Gered 6ac12aa0a8 version 1.0 2016-06-29 21:26:02 -04:00
Gered c06afac656 add LICENSE and update project.clj 2016-06-29 21:25:42 -04:00
Gered 3b5fa42721 add order by 2016-06-29 19:19:36 -04:00
Gered 99eaeb34ea add robots.txt
i cannot think of any reason why anyone running this application in a
publically accessible place would want a search engine crawling this
2016-06-29 19:11:25 -04:00
Gered f528abc479 update price scraping output, and remove call to views/put-hints!
the put-hints! call wouldn't really work when this price scraping
is performed anyway (from the command line)
2016-06-29 19:06:58 -04:00
Gered c5b0eda139 change bg color of footer 2016-06-29 18:48:45 -04:00
Gered 4ddb3e8761 fix missing image routes so they will work from a jar 2016-06-29 18:48:30 -04:00
Gered f416df5418 remove unneeded dependency 2016-06-29 18:48:05 -04:00
Gered a7f1d5aa17 don't show inventory management ui if user is not authorized
but can show it if user authorization is not required, as indicated by
the app's config.edn
2016-06-29 18:29:28 -04:00
Gered 2c89c13a64 add server-side enforcement of authentication for collection add/remove 2016-06-29 18:19:29 -04:00
Gered ce9ef7b3e4 add login/logout support. users defined in config.edn
no actions are protected yet
2016-06-29 18:08:22 -04:00
Gered 2676de8c74 render csrf token meta tag in page html 2016-06-29 18:07:43 -04:00
Gered e4a8c85e1a ensure csrf header is sent on all ajax requests 2016-06-29 18:06:25 -04:00
Gered 0ea54572ba add ttl session store 2016-06-29 18:06:01 -04:00
Gered ce4c2c1a39 fix dev mode not reloading code changes
hacky fix due to the fact that we load the app config at a time later
then when the namespace is first loaded, so our old wrap-env-middleware
cannot work as-is. and then immutant's own run function alternative that
can be used to run the server in dev mode has some super annoying
behaviour that can't be turned off (opening a browser on startup... who
the *fuck* actually likes this behaviour? don't you people keep a
browser open all the time when you're working on web dev anyway?)
2016-06-29 16:26:08 -04:00
Gered 058d587903 add page footer 2016-06-29 15:54:43 -04:00
Gered 23ebc7edf0 add foil card count to stats page 2016-06-29 15:12:19 -04:00
Gered f2e1cacfa5 show large set image on set info page 2016-06-29 15:00:16 -04:00
Gered ad413d5399 add converted mana cost search filtering 2016-06-29 14:50:34 -04:00
Gered 2e0644057e add search filtering based on foil card inventory amounts 2016-06-29 14:41:10 -04:00
Gered 5fe5568e2a clean up card inventory popover layout 2016-06-29 11:52:21 -04:00
Gered a957440f3b add foil tracking to card collection 2016-06-29 11:36:27 -04:00
Gered 0879a24e9f fix for lein rollback/migrate 2016-06-29 11:35:58 -04:00
Gered fc67496893 add rarity search filter 2016-06-29 10:38:33 -04:00
Gered 8945c524be include a link to the set shown in the card list set column 2016-06-29 10:25:22 -04:00
Gered 2a58d12214 minor adjustments to output of image scraper 2016-06-29 10:21:23 -04:00
Gered 3bc4cc44f8 download mana symbols into same directory as other symbols
to simplify the client-side symbol image formatting text code (doesn't
need to determine which symbols are mana and which aren't)
2016-06-29 10:21:06 -04:00