Feature/home (#41)
* init home
* Feature/lists (#39)
* update shortcuts to use os specific key
* add basic list handling!
You should be able to indent, outdent, create and delete list blocks.
We're storing the data heierarchicaly but we're rendering it as a flat
list in the UI. This makes all the next/previous block logic more or
less just work.
There are still lots of places in the app where we're assuming a card's
block/children relations are the only children, which is no longer the
case, we need to use the query to recursively get all the lists
children.
We also need to wire up the copy and paste logic to handle lists, as
well as the previews on cards.
Finally, we need to to add shortcuts for list item movement. That should
be realtively easy!
* fixup! Merge branch 'main' into feature/lists
* add factID to stuff
* make linkblock w-full
* properly get list block type
* simplify enter adding block logic
* handle lists in enter on non text blocks
* don't show block previews in first list blocks
* fix initial blocks query
* fix deleting empty list block
* remove old entity id in ui
* render lists in card preview
* added initial styling for lists
* use input rule to trigger list
* handle enter on blank line to outdent
* remove bullet on first block delete
* handle copying lists!
* fixed issue where block options was causing empty text blocks to flicker in size
* got the rendered text blocks to match up with the base text blocks for lists, pulled out the block padding logic
* added bullet points to the card block content
* removing some stray console logs
* handle pasting lists, basic
* minor adjusments to make it looks nice on mobile
* added select state to image, cleaned up cardblock select state
* adding back a hidden class in block options that i forgot to put back in last commit
* slapped a bandaid on the oddest little big where the cardpreview in card block would scroll up if the text block directly under it was turned into a header via markdown input
* prevent default in backspace in selection handler
* handle last block properly with list stuff
* bulk remove blocks
* make thing optionall
* don't remove list block on backspace
* debounce selection handlers
* handle enter in lists better
* calculate nextPosition at top level
* handle copying list depth better
* even more tweaking copy and past list parsing
* handle shift-tab and backspace better
* fix a bug in calculating next position
* handle tab and shift tab w/ multiselect
* add indent and outdent buttons
* add move block shortcuts
* fix outdent logic applying in reverse
* handle moving blocks between parents on cmd-up/down
* add folding!
* fix bug w/ moving top level list up
* unfold lists on list operations
* reuse fact id in mutation
---------
Co-authored-by: celine <celine@hyperlink.academy>
* use markdown/html parsers to improve copy/paste flows
* add shift to move block shortcuts
* fix bug in next position calc
* tooltip fixes and make list shortcut
* tweak focusfirstblock
* add basic homepage db stuff
* WIP styling home
* wire up data for homepage theme and such
* add back identity data migration
* add in favicon, edits to th docPreview styling
* remove accidentally commit changes to useUIState
* add link block stuff
* restyled home page ot fit better on mobile
* add create new doc button
* pulled background out of theme provider into its own component, added more options / delete to docs in home
* wire up deleting docs
* styled the add doc button to home, fixed up home layout to better match doc layout
* create identity if neccessary on visit to home
* add home button
* removed uneccesary parts of theme picker in home, more futzing with mobile layout
* added a homeSmall icon, styled home button, componentized hover button, and futzed with layout, as always
* small styling tweak to menu item component
* fixed styling issue with placeholder text in new docs on first render
* rename permission_token_creator and auto add editable links to homepage
* added a little help tooltip on home in case of user clearing cookies, removed a duplicate file for favicon
* remove icon copy and fix home icon logic
---------
Co-authored-by: celine <celine@hyperlink.academy>
authored by