Commit graph

112 commits

Author SHA1 Message Date
Shibo Lyu
b56b47df82 fix: Add initialDoc prop and BlahRichText conversion utility
Fix typo in schema ("paragragh" -> "paragraph") and implement
bidirectional conversion between BlahRichText and ProseMirror formats.
Update profile page to use new initialDoc prop instead of children.
2025-04-16 00:46:34 +08:00
Shibo Lyu
aaedd69889 feat[wip]: Profile edit page
Some checks failed
Build & Test / build (20.x) (push) Has been cancelled
Build & Test / build (22.x) (push) Has been cancelled
2025-04-14 03:43:00 +08:00
Shibo Lyu
0be74f387a fix: Remove unused Svelte Component import 2025-04-14 03:42:22 +08:00
Shibo Lyu
0314dda377 fix: Add GroupedListContent component to exports 2025-04-14 03:41:56 +08:00
Shibo Lyu
a1f0e4d4bd fix: Button component typing and add background style
Add proper TypeScript discriminated union type to ensure correct HTML
attributes based on whether the component renders as a button or anchor.
Also add bg-sb-primary class to the component's base styles.
2025-04-14 03:41:27 +08:00
Shibo Lyu
35315ca5f3 fix(accounts): Do not attempt to decode ID key if password is not provided 2025-04-14 03:40:51 +08:00
Shibo Lyu
924427a810 refactor: Account management and settings navigation
Move profile page to /settings/account/profile and replace
CurrentAccountPicture with CurrentAccountIndicator component
using the new account manager pattern. Update identity type
to accept null instead of undefined.
2025-04-14 01:33:24 +08:00
Shibo Lyu
73522535f9 fix: Add medium font weight to GroupedListContent 2025-04-14 00:54:25 +08:00
Shibo Lyu
b467ec1491 refactor: account management system
Replace store-based approach with manager-based implementation and update
related components to use the new system. Change ProfilePicture props
from `account` to `identity`.
2025-04-14 00:49:59 +08:00
Shibo Lyu
055f7240df refactor: ProfilePicture to use Identity instead of Account 2025-04-14 00:28:55 +08:00
Shibo Lyu
308eef1cff feat: Implement AccountManager
Replace simple keystore with a full-featured AccountManager that handles
identity management, account creation, and authentication. Update account-
related UI components to integrate with the new system.
2025-04-13 02:23:06 +08:00
Shibo Lyu
99a6ea0459 chore: Upgrade Svelte to 5.26.2 and @blah-im/core to 0.6.0 2025-04-13 00:57:00 +08:00
Shibo Lyu
6b32bda600 refactor: Update account creation UI and bump @blah-im/core
Improve identity provider selection with proper self-hosting flow options.
Fix empty state detection in rich text editor and display shortened
account ID key in settings screen.
2025-04-12 22:34:01 +08:00
Shibo Lyu
a27b585f26 fix: Navigation to only occur after successful account creation 2025-04-12 04:18:50 +08:00
Shibo Lyu
a5e1a07e69 refactor: Add GroupedListContent and enhance GroupedList components 2025-04-12 04:17:59 +08:00
Shibo Lyu
39de2176fa fix: State reference in RichTextInput dispatchTransaction
Use editorView.state instead of closed-over state variable to ensure
we're always working with the latest editor state
2025-04-12 03:56:22 +08:00
Shibo Lyu
a5ae23b229 fix: Rich text bio input in account creation
Replace Typewriter-Editor with ProseMirror for bio handling and simplify section headers throughout the form
2025-04-12 03:49:38 +08:00
Shibo Lyu
a954510d38 fix: Text truncation in GroupedListItem component 2025-04-12 03:48:15 +08:00
Shibo Lyu
388bd84b0f chore: Upgrade @blah-im/core to 0.5.0 2025-04-12 03:46:53 +08:00
Shibo Lyu
d2c4b5aa47 fix: Replace hardcoded SVGs in ChatInput with svelte-hero-icons components 2025-04-12 02:54:28 +08:00
Shibo Lyu
a08122663e refactor: Message input now use ProseMirror directly
Remove Delta/Typewriter-editor dependency and implement ProseMirror-based
rich text conversion. Add methods to access the editor view and improve
the architecture of text input components.
2025-04-12 02:48:45 +08:00
Shibo Lyu
f5c74e02ea chore: Update Node to v22.14.0 and upgrade dependencies 2025-04-11 18:22:45 +08:00
Shibo Lyu
db186636a3 refactor: Replace Typewriter editor with ProseMirror
Switch the rich text editor implementation from Typewriter to
ProseMirror for better document model and editing capabilities.
2025-04-11 02:58:06 +08:00
Shibo Lyu
48f4721e5b refactor[wip]: rich text editor state handling
Create dedicated RichTextEditState class, make editor configuration more
flexible, and modify schema to support multiple text blocks. Add keyboard
submission options.
2025-04-02 02:07:52 +08:00
Shibo Lyu
cd6a8e392e refactor[wip]: replace typewriter-editor with ProseMirror for rich text editing 2025-04-02 01:17:09 +08:00
Shibo Lyu
7299c1dee0 fix: increase button horizontal padding from px-2 to px-2.5 2025-04-02 00:30:40 +08:00
Shibo Lyu
5a7641b4d6 fix: check null encodedKeyPair in onKeyPairChange 2025-04-02 00:30:10 +08:00
Shibo Lyu
82f0fc35b0 deps: bump dependencies 2025-04-02 00:28:58 +08:00
Shibo Lyu
5091053f90 fix(ci): switch to PNPM and update package manager version 2025-03-19 02:23:20 +08:00
Shibo Lyu
b96bdf7ff3 fix: all svelte diagnostics. 2025-03-19 01:48:54 +08:00
Shibo Lyu
4129cac511 refactor: continue to migrate components 2025-03-17 01:54:56 +08:00
Shibo Lyu
1e95dc0830 refactor: migrate to svelte 5, vite 6 and bits-ui 1. 2025-03-17 01:10:15 +08:00
Shibo Lyu
0bb201636a chore: bump tailwind-merge for tw v4 support 2025-03-17 00:25:38 +08:00
Shibo Lyu
cd0bf37a68 chore: upgrade to tailwindcss v4 2025-03-17 00:25:07 +08:00
Shibo Lyu
88551053d9 chore: minimal dependency bump 2025-03-17 00:15:44 +08:00
Shibo Lyu
766d50adc6 wip 2025-03-17 00:03:20 +08:00
Shibo Lyu
67803041cf deps: Bump versions (to last Svelte 4 compatible) 2024-12-04 01:36:08 +08:00
Shibo Lyu
502c9deb27 chore: switch to pnpm 2024-12-03 21:44:51 +08:00
Shibo Lyu
a5042980dd refactor: identityFile -> identityDesc 2024-10-31 02:25:27 +08:00
Shibo Lyu
42aeca58e7 deps: bump to latest Svelte 4 compatible versions 2024-10-31 02:22:06 +08:00
Shibo Lyu
55ceb187a1 save 2024-10-23 17:06:19 +08:00
Shibo Lyu
e78279114a feat: account switching 2024-10-16 03:21:26 +08:00
Shibo Lyu
2b47eeb146 feat: create account ui 2024-10-16 02:22:31 +08:00
Shibo Lyu
e3e3481739 feat: grouped list selected state 2024-10-15 03:03:30 +08:00
Shibo Lyu
3097b8a9dd feat: basic settings layout 2024-10-15 02:53:26 +08:00
Shibo Lyu
5c82a79b9c deps: bump blah core to 0.2.6 2024-10-15 01:07:51 +08:00
Shibo Lyu
0cab27cae8 refactor: identity dropdown -> settings 2024-10-14 23:36:07 +08:00
Shibo Lyu
333b5a4ed4 feat: [wip] accountStore 2024-10-14 02:21:29 +08:00
Shibo Lyu
71a7a3c76e feat: profile store 2024-10-12 01:57:29 +08:00
Shibo Lyu
2771381a13 refactor: actKeyStore -> accountKeyStore
Now it stores encoded id key too, if needed. Also use idb instead of wrangling IndexedDB API ourselves.
2024-10-12 01:02:59 +08:00