doodlewind
0cd7868b3d
refactor(editor): add mock notes creator ( #10109 )
...
Further features should be validated using multiple notes.
<img width="806" alt="image" src="https://github.com/user-attachments/assets/ad2bf934-bebe-479a-bec0-a0a28001b08d " />
2025-02-12 05:23:19 +00:00
doodlewind
d021e4cddc
refactor(editor): mount worker renderer in editor host ( #10055 )
...
This would allow for easier integration with current test runner, since the two column layout is removed.
The `ViewportTurboRender` canvas and its debug UI are only enabled if the extension is added, which won't affect the AFFiNE entry.
<img width="945" alt="image" src="https://github.com/user-attachments/assets/dc82daa4-cbed-4eb9-9660-28c3f7d35722 " />
2025-02-11 14:12:41 +00:00
doodlewind
3062bd0771
refactor(editor): migrate viewport renderer to extension ( #10094 )
...
This removes `renderer.setHost(host)`
2025-02-11 11:37:31 +00:00
doodlewind
9bf1e38e94
chore(editor): simplify legacy playground build config ( #10044 )
...
This should allow for simpler migration of the `@blocksuite/playground` vite environment.
2025-02-10 23:38:40 +00:00
doodlewind
1d1eab8139
fix(editor): workaround empty text in insertText ( #10049 )
...
`sentry-5a32bef4f2724b5f8e6f31791cb20feb`
2025-02-10 07:24:26 +00:00
doodlewind
614ae024c2
fix(editor): workaround empty content in worker renderer ( #10043 )
2025-02-10 03:35:50 +00:00
doodlewind
56d604f685
perf(editor): use clipped section for worker bitmap cache ( #9957 )
...
Before (grey area as rendered canvas bitmap):
<img width="1114" alt="image" src="https://github.com/user-attachments/assets/9a209818-c388-4e55-af9b-116f24bd8027 " />
After:
<img width="1103" alt="image" src="https://github.com/user-attachments/assets/1102264a-ec21-4c0c-b4b6-e82a64b1a844 " />
2025-02-05 11:54:03 +00:00
doodlewind
872a578bf7
refactor(editor): move zod schema with model for non surface blocks ( #9876 )
2025-01-23 10:57:49 +00:00
doodlewind
22e424d7de
test(editor): fix font style in preset tests ( #9847 )
2025-01-22 10:00:58 +00:00
doodlewind
14ca171a18
chore(web): bump theme ( #9801 )
2025-01-20 13:51:24 +00:00
doodlewind
509cdfd7bf
fix(editor): playground font inconsistency ( #9728 )
2025-01-16 08:16:13 +00:00
doodlewind
890a962196
chore(editor): fix playground vscode tsc warning ( #9603 )
2025-01-09 07:49:16 +00:00
doodlewind
e269cce141
refactor(editor): playground doc collection typing migration ( #9593 )
2025-01-09 03:07:43 +00:00
doodlewind
cbc84ff672
fix(editor): blur in edgeless content zooming ( #9496 )
...
Fix [BS-2294](https://linear.app/affine-design/issue/BS-2294/edgeless-%E7%BC%A9%E6%94%BE%E5%AD%97%E5%8F%B7%E6%A8%A1%E7%B3%8A )
2025-01-03 02:36:57 +00:00
doodlewind
8227d68953
refactor(core): remove abort event error on init ( #9465 )
...
Following error always throw on Affine init, which is actually an `Event` from abort controller that can be handled in upstream.

2025-01-01 01:22:29 +00:00
doodlewind
adf14d11d5
fix(editor): chat panel render warning ( #9446 )
...
Fixed the updated warning of both `chat-panel` and `chat-panel-messages`

2024-12-31 03:59:02 +00:00
doodlewind
2b47625deb
refactor(editor): render presentation toolbar on demand ( #9442 )
2024-12-31 02:01:35 +00:00
doodlewind
d4053a345e
perf(editor): reduce per frame viewport dom ops ( #9431 )
...
Currently when panning / zooming on whiteboard, both position and transform of each block component are updated per frame. The positioning part lead to heavy layout costs, which can be reduced.
Before (~35fps):

After (~50fps):

Tested environment: TibetTravel templet, Windows 11, i5-1130G7 1.1GHz
2024-12-30 10:50:33 +00:00
doodlewind
406460a3af
chore(docs): update server start script ( #9423 )
...
Currently, directly running `yarn dev` in `packages/backend/server` (following `developing-server.md`) instead of `yarn affine server dev` would raise following error:
``` sh
server git:(canary) ✗ yarn dev
[nodemon] 3.1.9
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: ts,json
[nodemon] starting `node ./src/index.ts`
node:internal/modules/esm/get_format:160
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/ewind/code/AFFiNE/packages/backend/server/src/index.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:141:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at async link (node:internal/modules/esm/module_job:76:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.10.0
[nodemon] app crashed - waiting for file changes before starting...
```
2024-12-30 07:28:23 +00:00
doodlewind
5e1d936c2e
fix(editor): sentry-b0cfc9953ff64c53b9994697171bb91a ( #9396 )
2024-12-27 14:02:00 +00:00
doodlewind
fe957e3175
fix(editor): eslint useless escape ( #9345 )
2024-12-26 11:09:30 +00:00
doodlewind
9a29ac4a5c
fix(editor): sentry-332848caa68e4679b403d56881e3c0e3 ( #9343 )
2024-12-26 10:26:31 +00:00
doodlewind
9b3a2fc0de
fix(editor): sentry-624432d8f1e6420ca9c5023a051f4332 ( #9342 )
...
Close https://toeverything.sentry.io/issues/6091618868/?project=4506307500179456
2024-12-26 09:59:06 +00:00
doodlewind
71b5cddea1
fix(editor): use nullable inline editor root element ( #9320 )
...
Fixes `sentry-7906c03b79a54ede819c56cc15ad9889`
2024-12-26 07:55:15 +00:00
doodlewind
7b572bc89e
fix(editor): sentry-17da76f65b91465b911fad44279d971a ( #9315 )
2024-12-26 02:54:07 +00:00
doodlewind
a15009ce84
chore(editor): ignore debug zip snapshots ( #9297 )
...
Put snapshot zips in `blocksuite/playground/apps/starter/data/snapshots/`
2024-12-25 02:18:46 +00:00
doodlewind
20aca4d051
chore(tools): disable hmr by default ( #9286 )
2024-12-24 10:32:01 +00:00
doodlewind
98f88d2615
chore: base url for mobile debug ( #9268 )
...
Without this PR, the login requests on mobile devices will be sent to `localhost:8080`, which is incorrect.
2024-12-24 03:54:56 +00:00
doodlewind
edd169720b
chore(server): update env example and docs ( #9153 )
2024-12-13 11:04:08 +00:00
doodlewind
8545644bb6
chore: bump blocksuite ( #9049 )
2024-12-06 08:33:47 +00:00
doodlewind
6ac8cca440
fix(mobile): disable AI chat block peek on mobile ( #8929 )
2024-11-26 11:06:15 +00:00
doodlewind
ba325a6040
chore: update env example ( #8909 )
...
This aligns better with the postgres config in [server development guide](https://github.com/toeverything/AFFiNE/blob/canary/docs/developing-server.md ).
2024-11-26 10:17:16 +00:00
doodlewind
08ff619d47
chore(cli): enable accessing dev server by host name ( #8912 )
...
This PR is particularly useful for debugging mobile app (and any other personal devices for testing) via [Tailscale](https://tailscale.com/ ), since it allows accessing a stable hostname on phone, instead of typing in an unstable IP address.
Before:

After:

2024-11-25 06:58:14 +00:00