could get annoying as it would constantly be resetting back to the
default as the user clicked into different cards (for example) and then
went back to the list
the filter to turn on/off the option to restrict shown cards to those
that are in the list being viewed is implemented in kind of a hacky
way that likely is a good indication that the search/filtering code
probably needs to be redesigned... ugh.
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
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
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