Commit Graph

4 Commits

Author SHA1 Message Date
Elf M. Sternberg add49d071d Final version, barring the critique and the peer review.
This commit concludes most of the desired functionality: search,
full-card, and a much better layout engine (mostly because someone else
wrote it).

Also included is a Dockerfile.
2020-09-16 17:37:51 -07:00
Elf M. Sternberg 73e310ea14 FEAT Using a library for infinite scroll.
This is better.  Always nice to let the professionals do all the hard
lifting for ya when you're pressed for time.

Also: Incorporated a pretty nice little modal pop-up.  Styling sucks (at
the moment), but I can fix that later.
2020-09-16 10:59:40 -07:00
Elf M. Sternberg f71d439a22 FEAT Infinite scroll works. Sort-of.
I've implemented a Cards/Card interface, but it's heavy and direct,
with absolutely not a care in the world about how much memory your
browser can give me.  It only moves forward in time, and accumulates as
it goes.  The React is brutal and heavy, but for a prototype, eh... it's
a prototype.

I'm a firm believer in prototypes.

Criticism: "Cards" is doing too much, and not enough.  It would make
more sense to have a moving window, showing no more than what it would
take to show the user what is expected at that moment, with the ability
to load high and low, keeping only what the user is _looking at_ in the
DOM tree.

Proposal: Cards needs a CardCollection proxy object, which the Cards view
object (personal convention: TSX files are named for what they show,
semantically; TS files may be suffixed with "Model" or "Collection",
a'la Backbone, to seperate them from the views, if needed; "Model"
objects are very rarely needed) taps it as the user moves up and down;
the IntersectionObserver tool would be pretty good for this; and if the
proxy actually _cached_ the fields it had already seen, it wouldn't be
slow at all.

The proxy object could also support the search feature by keeping two
collections: one of the "whole" set, and one of the "last search" set;
the proxy could swap between them as needed.

Enhancement: Well, it could use a "zoom" feature with a nice overlay.
It might even be lovely to have a second page with all the things I
haven't shown, like attributes, subtype, rarity (not, not the pony),
or keywords.

Enhancement: It is possible to search based on set, attributes, and so
forth, so a sidebar with those as filters would also be kinda cool.
2020-09-15 19:41:37 -07:00
Elf M. Sternberg 58200aa79b initial steps. 2020-09-15 13:27:31 -07:00