92 Commits

Author SHA1 Message Date
Aslam
21084cd3f3 fix(link): Keybind, scroll behaviour, restrict drag to vertical (#176)
* chore: expose scrollActiveElementIntoView

* feat(utils): editable element

* fix: memoize exceptionRefs, use animation frame and check editable element

* fix: improve btn on mobile

* chore(drps): bump framer motion version

* fix(link): big fix

* chore: remove comment code

* feat: touch device
2024-09-21 19:37:29 +07:00
Aslam
bf5ae100ab fix(key): Allow Esc and Any other input event (#173)
* fix(key): Allow Esc and input handler

* chore: set search autoFocus on shortcut component

* fix: allow enter, arrow and disable list if keyboard
2024-09-19 22:15:58 +07:00
Aslam
1a6c2ab420 feat(topic): Topic List Route (#172)
* feat: add item scroll to active

* fix: reset enterkey and scroll to view

* fix: link item displayName

* refactor: remove keyboard page nav

* chore: fix scrolling, perf, keys, highlight active item etc

* chore: use new hook for create a page

* chore: disabled auto delete page

* wip

* chore: add learning selector

* chore: learning selector update
2024-09-19 21:28:48 +07:00
Aslam
8eed3f8cc2 feat(shortcut): Keyboard Navigation (#168)
* chore: remove sliding menu

* feat(ui): sheet

* feat: shortcut component

* chore: register new shortcut component to layout

* fix: react attr naming

* fix: set default to false for shortcut

* feat(store): keydown-manager

* feat(hooks): keyboard manager

* chore: use util from base for la-editor

* chore: use util from base for minimal-tiptap-editor

* chore(utils): keyboard

* chore: use new keyboard manager

* fix: uniqueness of certain component

* feat: global key handler

* chore: implement new key handler
2024-09-19 21:17:11 +07:00
Aslam
c003711905 fix(page): Add item scroll, fix display issues, refactor nav, and improve perf (#166)
* feat: add item scroll to active

* fix: reset enterkey and scroll to view

* fix: link item displayName

* refactor: remove keyboard page nav

* chore: fix scrolling, perf, keys, highlight active item etc

* chore: use new hook for create a page

* chore: disabled auto delete page
2024-09-19 21:12:05 +07:00
Aslam
afaef5d3c5 fix(link): Navigate between item and fix Enter keybind (#165)
* feat: add item scroll to active

* fix: reset enterkey and scroll to view

* fix: link item displayName
2024-09-19 21:11:52 +07:00
Aslam
8871a8959c chore(topic): Enhancement using virtual (#164)
* chore: use tanstack virtual

* fix: topic learning state

* chore: add skeleton loading and not found topic placeholder

* fix: personal links load in list
2024-09-19 21:11:38 +07:00
Nikita
4ff9868e8e clean text 2024-09-14 14:38:36 +03:00
Nikita
49aedf25ca hide hotkeys on small screens 2024-09-13 11:19:39 +03:00
Aslam H
7592631863 fix(link): bottom bar 2024-09-12 06:30:38 +07:00
Aslam H
c532514701 chore: scrollable and remove link wrapper 2024-09-12 05:22:34 +07:00
Kisuyo
3b68836378 sliding model (#162) 2024-09-11 14:47:12 +03:00
Aslam H
78d8b7c8d1 fix(bottom-bar): fixed height 2024-09-11 17:27:19 +07:00
Aslam H
dfad7651d6 fix(page): should only do focus on init load 2024-09-11 17:12:16 +07:00
marshennikovaolga
1e0e139ad8 centered pages and links 2024-09-11 11:49:32 +03:00
Nikita
266c29cae9 Pull nodes towards dragged node (#158)
Co-authored-by: Damian Tarnawski <gthetarnav@gmail.com>
2024-09-11 11:48:06 +03:00
Aslam
2a637705f2 fix: Bug fixing & Enhancement (#161)
* chore: memoize sorted pages

* chore: make link size more precise

* fix(link): disable enter press on create mode

* fix(onboarding): move is base logic and use escape for single quote

* fix(page): on delete success redirect to pages

* fix(sntry): sentry client error report

* chore(page): dynamic focus on title/content

* chore(link): tweak badge class

* chore(link): use nuqs for handling create mode

* fix(link): refs

* feat(palette): implement new link
2024-09-11 15:25:21 +07:00
Aslam H
2ff509e05a fix: capitalize first character of Delete empty page comp 2024-09-10 18:28:29 +07:00
Aslam
711fe35e1a feat: feedback (#156)
* minimal tiptap

* wip

* img edit block

* wip

* fix
2024-09-10 13:58:58 +03:00
marshennikovaolga
bdb8109b8b fixed router call 2024-09-10 12:29:18 +03:00
marshennikovaolga
ae3f79767b fixed router call 2024-09-10 12:26:38 +03:00
marshennikovaolga
e893740122 delete empty page 2024-09-10 12:22:55 +03:00
marshennikovaolga
ddcff3c6e4 sidebar: GitHub link 2024-09-10 11:48:12 +03:00
Aslam H
0b1ea7bc0d chore: register tooltip provider 2024-09-10 13:08:30 +07:00
Aslam H
4ddb64addd fix(link): force cache url fetching 2024-09-10 12:49:32 +07:00
Aslam H
421bd9b0b6 refactor(link): remove log on enter pressed 2024-09-10 03:09:58 +07:00
Aslam H
0f657c429d Merge branch 'main' of github.com:learn-anything/learn-anything.xyz 2024-09-10 03:08:24 +07:00
Aslam H
522a4e1337 fix(link): listen on the list and fix timeout 2024-09-10 03:08:12 +07:00
marshennikovaolga
3f6ff82063 date format 2024-09-09 20:17:13 +03:00
Aslam H
4347037589 fix: deleting unnecessary log 2024-09-09 19:38:43 +07:00
Aslam H
4765447ccd fix(onboarding): missing depth 2024-09-09 19:31:40 +07:00
Aslam H
e841a1c2cc fix(link): delete link should disabled all key outside confirm 2024-09-09 19:25:01 +07:00
Aslam H
1def5eca20 feat(link): command+backspace to handle delete link 2024-09-09 19:04:32 +07:00
Aslam H
1b084d239d chore: onboarding set to storage 2024-09-09 18:36:08 +07:00
Aslam H
84ee3d0517 fix: missing display name 2024-09-09 17:50:29 +07:00
Aslam
5f537d5618 feat: pages (#151)
* wip

* wip

* wip

* wwip

* wip

* wip

* fix(util): rmeove checking to existing in slug

* wip

* chore: handle create page

* chore: handle page title untitled
2024-09-09 13:35:15 +03:00
olya
66c96efad8 Onboarding (#155)
* onboarding layout

* edit profile avatar

* onboarding tasks
2024-09-09 12:49:46 +03:00
Aslam H
2c53acbac5 chore: tweak responsive header and link 2024-09-09 07:18:44 +07:00
Kisuyo
53fae2d73a chore: front page search
commit 4ab241e115
Author: Kisuyo <ig.intr3st@gmail.com>
Date:   Sun Sep 8 15:01:39 2024 +0200

    chore: front page search
2024-09-08 15:22:53 +02:00
Aslam H
b27fc3014e fix(link): ensure url contain protocol 2024-09-08 15:50:31 +07:00
Aslam H
eb7e912843 fix(link): enter conflict with command palette 2024-09-08 14:02:50 +07:00
Aslam
7100ded35a fix(link): improve UX, maintain state (#154)
* fix(topic): handleSelectLearningState missing depth

* fix(link): use active index instead of native focus

* chore(palette): use atom for maintain state

* chore(link): prevent keydown if command palette active

* fix: responsive link item

* chore: add active item index state to LinkRoute

* fix: ability to press enter go to edit mode
2024-09-08 13:38:23 +07:00
Aslam
1cd6063768 chore: improve link accesibility and keybind (#153)
* fix(topic): handleSelectLearningState missing depth

* fix(link): use active index instead of native focus

* chore(palette): use atom for maintain state

* chore(link): prevent keydown if command palette active
2024-09-08 08:32:10 +07:00
Aslam H
b9b61ef423 refactor: use muted insteadof secondary for fancyS 2024-09-08 06:09:21 +07:00
Aslam H
8daa17334a chore: make delete icon color red for bottom bar 2024-09-08 06:04:37 +07:00
Aslam H
a87c27d91f fix: push to new link route 2024-09-08 04:37:28 +07:00
Aslam
cb9e8f46da fix: topic for guest auth (#149)
* wip

* chore: redirect instead of toast

* refactor: remove useRouter
2024-09-08 04:30:11 +07:00
Aslam H
922bdf0474 chore: revert 2024-09-08 00:31:04 +07:00
Kisuyo
8da0828e6a chore: front page glow 2024-09-07 17:22:27 +02:00
marshennikovaolga
833e5eff82 removed toolbar 2024-09-07 15:01:32 +03:00