Commit Graph

7 Commits

Author SHA1 Message Date
a8f3bbac49 Refactor hook names and make their usage more uniform
Also ensure that potential "loading" states and IndexedDB
error states are marked to be handled properly
2022-08-29 21:43:52 +03:00
ab2f266802 Style and behavior iprovements for notifications in add card view 2022-08-13 18:54:24 +03:00
1ea6ff51a8 Add language selection on card creation, move wiktionary functionality to lib folder 2022-08-10 18:38:20 +03:00
1f5f87999b Small UX improvements for add expression view
* respond to ENTER with query action
* eliminate a case of failure in silence
2022-08-10 08:10:07 +03:00
cde76e6205 Disable autocomplete and autocapitalize from add expression view 2022-08-10 02:09:49 +03:00
532394f181 Switch to single-page vanilla React app, add PWA support
Story time

Too much time was spent trying to get Next.js to build the app
as a PWA. Maybe I've been trying to do this at an unlucky time
when something somewhere in the dependency stack leading up to
next-pwa is only temporarily broken.

At this point enough hours have been spent thorough the project
getting this or that and that to play nice with Next.js, and the
benefits to this project were at best questionable.

When next-pwa didn't deliver a PWA experience with the promised
"zero configuration" setup, and even failed to do so with a lot
of fiddling around and following several issue discussions in
its repo I thought back at all the other nuisances stemming from
trying to get Next.js to play nice in the app's context and
decided it was time for it to go.

Writing this frankenstein of a commit that forces the project
from its Next.js structure into more-or-less the structure of a
vanilla create-react-app project felt like a breeze compared to
any more time spent reading github issues lingering unanswered
or bumping into Stack Overflow threads from a time when none
of the answers are right any longer. Some top answers in Stack
Overflow don't even look like they were ever right.

I don't like the big component switch that I wrote to replace
the seemingly elegant app routing from Next.js. The new app
routing I wrote is a kludge designed to minimize the amount of
code fixes I'd need to do when it came to navigation, but I am
glad to no longer parse numbers out of URLs, put dynamic() calls
in nearly every page, use wrapper Link and Image components so
Next.js can do some magic and a few other problems that right
now I forget. I also appreciate the smaller bundle.

This isn't some content publishing app, full of meaningful URLs
to be shared over the net with other users. There's really only
the skeleton of the app with a few very simple views to navigate
to and then there's the local data generated by the user that the
app just hosts locally.
2022-08-10 01:36:26 +03:00
f19f2d5601 Draft functionality for fetching card data from Wiktionary 2022-08-10 00:20:31 +03:00