pengx17
964e475c5f
chore: bump @pengx17/electron-forge-maker-appimage ( #6726 )
...
fix https://github.com/toeverything/AFFiNE/issues/6722
add `--no-sandbox --disable-setuid-sandbox` to appimage run
2024-04-29 04:57:52 +00:00
pengx17
905d7d18e4
chore: bump blocksuite ( #6725 )
2024-04-29 04:57:46 +00:00
pengx17
5d114ea965
refactor(electron): cleanup secondary db logic ( #6710 )
2024-04-26 10:57:09 +00:00
pengx17
d015be24e6
fix: incorrect mixpanel param ( #6706 )
2024-04-26 10:45:29 +00:00
pengx17
cc17d3287e
fix: open in chat does not work when the panel is not opened ( #6703 )
...
https://github.com/toeverything/AFFiNE/pull/6503 does not work with "open in chat".
IMO resetting tab whenever opening right panel does not make too much sense. @zanwei
fix AFF-951
2024-04-26 03:50:40 +00:00
pengx17
6237bf18ab
build(electron): nsis typo ( #6697 )
2024-04-25 09:10:34 +00:00
pengx17
050efe3749
fix(core): update prompts ( #6693 )
...
update based on latest docs
2024-04-25 05:26:50 +00:00
pengx17
042be1216c
build(electron): nsis updater compatibility fix ( #6681 )
2024-04-25 03:52:29 +00:00
pengx17
bfcf4a105e
build(electron): add nsis build to release-desktop workflow ( #6677 )
...
Updater may break after this PR and will be fixed in the next one
After this PR, we will have two windows installer options
- affine-0.14.0-canary.9-canary-windows-x64.exe
- affine-0.14.0-canary.9-canary-windows-x64.nsis.exe (added)
2024-04-25 03:52:27 +00:00
pengx17
0b380f94c7
build(electron): add nsis script for windows installer ( #6674 )
...
This pr only includes how to bundle the app into an installer after package step.
todo (not in this pr)
- [ ] make sure updater can work for both nsis & squirrel
- [ ] integrate nsis build into github action workflow
Advantage over Squirrel:
- allowing user to specify the installation location
- better uninstaller



2024-04-25 03:30:04 +00:00
pengx17
f1b03989fa
fix: error handling in sse ( #6663 )
2024-04-23 03:46:49 +00:00
pengx17
71a5be5385
fix(server): update prompts ( #6664 )
...
fix AFF-921
2024-04-22 14:09:53 +00:00
pengx17
1dda0fd34c
feat: add mixpanel tracking for ai ( #6643 )
2024-04-20 05:43:35 +00:00
pengx17
94a70a5f3a
chore: bump blocksuite ( #6635 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6825 @regischen
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6828 @regischen
- https://github.com/toeverything/BlockSuite/pull/6823 @fundon
- https://github.com/toeverything/BlockSuite/pull/6822 @fundon
- https://github.com/toeverything/BlockSuite/pull/6826 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6794 @fundon
- https://github.com/toeverything/BlockSuite/pull/6821 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6781 @doouding
- https://github.com/toeverything/BlockSuite/pull/6820 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6819 @regischen
- https://github.com/toeverything/BlockSuite/pull/6817 @donteatfriedrice
## Refactor
## Misc
2024-04-19 09:50:17 +00:00
pengx17
6d5dbbd7f4
fix: move toTextStream to affine ( #6628 )
2024-04-19 07:59:24 +00:00
pengx17
8c0732ddf1
fix: handle 401 errors ( #6611 )
...
upstream https://github.com/toeverything/blocksuite/pull/6809
2024-04-19 03:51:41 +00:00
pengx17
99bf7c79d1
chore: bump blocksuite ( #6626 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6809 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6787 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6774 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6817 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6811 @regischen
- https://github.com/toeverything/BlockSuite/pull/6814 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6813 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6812 @doouding
- https://github.com/toeverything/BlockSuite/pull/6815 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6808 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6804 @regischen
- https://github.com/toeverything/BlockSuite/pull/6797 @regischen
- https://github.com/toeverything/BlockSuite/pull/6802 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/6801 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6798 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6795 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6790 @lawvs
- https://github.com/toeverything/BlockSuite/pull/6778 @zkwolf
- https://github.com/toeverything/BlockSuite/pull/6792 @fundon
## Refactor
## Misc
- https://github.com/toeverything/BlockSuite/pull/6807 @c0sc0s
- https://github.com/toeverything/BlockSuite/pull/6806 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/6800 @fourdim
2024-04-19 03:51:38 +00:00
pengx17
c3438fde21
fix(core): always create message for ai ( #6620 )
2024-04-18 15:09:36 +00:00
pengx17
e232b0b285
fix: should not swallow copilot errors ( #6609 )
2024-04-18 09:59:31 +00:00
pengx17
5fc56a20ac
feat: adopt createMessage upload api ( #6596 )
2024-04-18 06:55:29 +00:00
Peng Xiao
10653eccbc
fix: provide user info for copilot ( #6606 )
2024-04-18 11:10:17 +08:00
pengx17
e806169f60
fix(core): missing copilot param ( #6602 )
2024-04-17 13:27:16 +00:00
pengx17
f9f0490190
fix(core): provide photoengine ( #6574 )
2024-04-17 13:27:11 +00:00
pengx17
03a7f9939e
fix: ai error handling ( #6588 )
...
upstream: https://github.com/toeverything/blocksuite/pull/6775
2024-04-17 13:27:05 +00:00
pengx17
09a984d113
chore: bump blocksuite ( #6601 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6763 @doouding
- https://github.com/toeverything/BlockSuite/pull/6780 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/6775 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6765 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6792 @fundon
- https://github.com/toeverything/BlockSuite/pull/6791 @fundon
- https://github.com/toeverything/BlockSuite/pull/6776 @fundon
- https://github.com/toeverything/BlockSuite/pull/6779 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6771 @fundon
- https://github.com/toeverything/BlockSuite/pull/6769 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6768 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6758 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6743 @fourdim
- https://github.com/toeverything/BlockSuite/pull/6762 @regischen
## Refactor
- https://github.com/toeverything/BlockSuite/pull/6786 @regischen
- https://github.com/toeverything/BlockSuite/pull/6764 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6772 @fundon
## Misc
- https://github.com/toeverything/BlockSuite/pull/6766 @fourdim
2024-04-17 13:27:00 +00:00
pengx17
ebb38a42a0
fix: temporary fix for running electron tests ( #6576 )
...
a workaround for spawn EINVAL error.
Found this issue according to https://github.com/node-red/node-red/pull/4652
~~In our case the electron app is spawned by playwright. I am still investigating the issue but don't know how long it takes.~~
Upstream fix: https://github.com/microsoft/playwright/pull/30382
2024-04-16 06:57:17 +00:00
pengx17
af2b3a43bd
chore: bump bs ( #6563 )
...
## Features
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6760 @fundon
- https://github.com/toeverything/BlockSuite/pull/6757 @fundon
## Refactor
## Misc
2024-04-15 10:29:54 +00:00
pengx17
da320957ed
fix: bump bs ( #6562 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6759 @regischen
- https://github.com/toeverything/BlockSuite/pull/6746 @fundon
- https://github.com/toeverything/BlockSuite/pull/6756 @regischen
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6757 @fundon
- https://github.com/toeverything/BlockSuite/pull/6750 @fundon
## Refactor
## Misc
2024-04-15 09:20:04 +00:00
pengx17
6fe0c4be6c
fix(electron): close app while on fullscreen should be minimize instead ( #6534 )
2024-04-15 05:44:58 +00:00
pengx17
e1eb925704
refactor(core): remove copilot client from presets ( #6546 )
...
depends on https://github.com/toeverything/blocksuite/pull/6748
2024-04-15 05:31:32 +00:00
pengx17
2b69fde937
chore(core): bump bs ( #6553 )
...
## Features
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6750 @fundon
- https://github.com/toeverything/BlockSuite/pull/6747 @fundon
- https://github.com/toeverything/BlockSuite/pull/6753 @regischen
- https://github.com/toeverything/BlockSuite/pull/6744 @donteatfriedrice
## Refactor
- https://github.com/toeverything/BlockSuite/pull/6748 @pengx17
## Misc
2024-04-15 05:31:29 +00:00
pengx17
9151a5d5e4
fix: storybook build issue ( #6554 )
2024-04-15 05:19:42 +00:00
pengx17
9b620ecbc9
fix(core): use backend prompts ( #6542 )
2024-04-12 21:29:14 +08:00
pengx17
8769aef0aa
fix(core): disable micromark debug output ( #6528 )
2024-04-12 03:58:53 +00:00
pengx17
4a67c84c73
fix(core): chat panel display on cont in chat ( #6527 )
2024-04-12 03:58:43 +00:00
pengx17
1697cd76fe
chore(core): bump blocksuite ( #6525 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6728 @fundon
- https://github.com/toeverything/BlockSuite/pull/6714 @doouding
- https://github.com/toeverything/BlockSuite/pull/6733 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6560 @golok727
- https://github.com/toeverything/BlockSuite/pull/6727 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6645 @regischen
- https://github.com/toeverything/BlockSuite/pull/6724 @fundon
- https://github.com/toeverything/BlockSuite/pull/6719 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/6682 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6734 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6732 @fourdim
- https://github.com/toeverything/BlockSuite/pull/6726 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6721 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6725 @fundon
- https://github.com/toeverything/BlockSuite/pull/6716 @golok727
- https://github.com/toeverything/BlockSuite/pull/6723 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6722 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6718 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6702 @Tzyito
- https://github.com/toeverything/BlockSuite/pull/6711 @Tzyito
- https://github.com/toeverything/BlockSuite/pull/6694 @fundon
- https://github.com/toeverything/BlockSuite/pull/6717 @golok727
## Refactor
- https://github.com/toeverything/BlockSuite/pull/6672 @Saul-Mirone
## Misc
- https://github.com/toeverything/BlockSuite/pull/6720 @raintoway
2024-04-12 03:58:25 +00:00
pengx17
f03e20b97e
fix(core): should pass mode to AffineEditorContainer ( #6522 )
...
Without mode there will be some features missing in blocksuite
2024-04-11 11:17:14 +00:00
pengx17
9381757982
fix(electron): wayland build ( #6404 )
...

2024-04-01 07:14:49 +00:00
pengx17
23cb309714
fix: onboarding app should also setup app storage config ( #6427 )
2024-04-01 07:04:39 +00:00
pengx17
b15ae21c45
fix(electron): optimize bundle size by removing unused dependencies ( #6415 )
...
Should greatly reduce the size of helper.js and could speed up the time on starting the client app.
fix https://github.com/toeverything/AFFiNE/issues/6312
Before:

After:

2024-03-30 09:06:10 +00:00
pengx17
f41d587d65
chore: upgrade cmdk to 1.0.0 ( #6401 )
...
Also include the command score into our own repo for some tweaks.
Might fix https://github.com/toeverything/AFFiNE/issues/6322
2024-03-30 08:00:21 +00:00
pengx17
c7e10c2283
feat(core): fav item reordering ( #6302 )
2024-03-29 04:04:27 +00:00
pengx17
35af526eb2
feat: allow collections to be added to favorites ( #6288 )
2024-03-29 04:04:17 +00:00
pengx17
5490944d04
refactor(core): favorite adapter ( #6285 )
...
1. abstraction over favourites that supports different type of resources
2. sorting abstraction
2024-03-29 04:04:08 +00:00
pengx17
0abd24654d
fix(electron): appimage wayland support ( #6371 )
...
Turns out the only solution for now is to patch the AppRun script in the AppImage using https://github.com/toeverything/electron-forge-maker-appimage/blob/master/scripts/patch-apprun.sh
fix #6340 , fix #6252
Some references:
- https://github.com/audacity/audacity/issues/2498
- https://github.com/develar/app-builder/issues/104
2024-03-29 02:47:20 +00:00
pengx17
e53744b740
fix: should use fullscreen to control where to place macos window controls ( #6351 )
2024-03-28 03:40:46 +00:00
pengx17
d4c7d58b00
fix: use overflow: clip instead of js to prevent scrolling with pgup/pgdown ( #6338 )
2024-03-27 07:07:22 +00:00
pengx17
5ca17c155a
fix(core): editor pgup/pgdn issues ( #6331 )
...
fix https://github.com/toeverything/AFFiNE/issues/6232
2024-03-27 04:47:32 +00:00
pengx17
095f8c2359
fix: button should have its font-family inherited ( #6311 )
2024-03-26 03:57:59 +00:00
pengx17
e9bc24bf37
fix(electron): possible issue on openning two main windows ( #6307 )
...
fix https://github.com/toeverything/AFFiNE/issues/6303
fetching `getWindowAdditionalArguments` requires forking a new process & handshake, which could be time consuming
2024-03-26 03:29:37 +00:00
pengx17
1c9d899831
fix: runtime issue for electron app ( #6306 )
...
Looks like we need to be careful to share common libraries between electron (nodejs) & web

2024-03-26 02:04:13 +00:00
pengx17
00092c9955
fix(electron): fix electron build ( #6305 )
2024-03-25 15:57:22 +00:00
pengx17
2a019d4fae
fix(core): storybook stability for date ( #6300 )
2024-03-25 09:50:48 +00:00
pengx17
578d4c9775
fix(core): image preview flaky ( #6292 )
2024-03-25 02:46:31 +00:00
pengx17
64c011c72f
fix(electron): set referer and origin headers for electron ( #6289 )
2024-03-25 01:23:18 +00:00
pengx17
62a6075675
fix(core): do not ensure properties on read ( #6263 )
2024-03-23 12:15:06 +00:00
pengx17
3c6983ee49
fix(core): storybook build issue ( #6274 )
...
1. es2022 is required and should be set separately in storybook.
2. @blocksuite/icons versions are not consistent across packages.
2024-03-23 06:33:25 +00:00
Brooooooklyn
85ee22329c
fix(electron): add icon for AppImage build ( #6257 )
...
1. the icon is fixed in `/Applications`: https://github.com/toeverything/electron-forge-maker-appimage/commit/128b8c22f9b2e088ce4f88057749b0a8cd55ca98#diff-a694a3e854f53b066e34ec310e05bd18b4944c016455f6963f54a351784d5fa6L91
2. the App's icon MUST be 64x64 png and set via `setIcon`

2024-03-21 14:29:02 +00:00
EYHN
d03c72a0a8
fix(electron): linux crash on exiting presentation mode ( #6253 )
2024-03-21 09:54:48 +00:00
Brooooooklyn
18224a83d1
chore(electron): bump @napi-rs/macos-alias ( #6240 )
...
fix dmg background missing issue https://github.com/Brooooooklyn/macos-alias/pull/3
2024-03-21 06:53:14 +00:00
pengx17
f4ede22b93
fix(core): change cursor when hovering the area blow editor ( #6226 )
2024-03-21 02:00:37 +00:00
pengx17
8b2b2646bc
fix: move traffic lights based on zoom level ( #6201 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/f75d1f6f-18f4-4dff-8174-67223f5f9807.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/f75d1f6f-18f4-4dff-8174-67223f5f9807.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/f75d1f6f-18f4-4dff-8174-67223f5f9807.mp4 ">Kapture 2024-03-19 at 18.05.20.mp4</video>
2024-03-21 02:00:35 +00:00
EYHN
08b610bbad
fix(electron): menu item position on Mac when fullscreen ( #6200 )
...
fix https://github.com/toeverything/AFFiNE/issues/6155
2024-03-20 16:45:14 +00:00
pengx17
a8a1074a8a
feat(electron): add isMaximized flag to html ( #6199 )
...
to make some special ui rules for desktop
2024-03-20 13:20:19 +00:00
pengx17
65ab6c89bf
fix(electron): optimize electron open/close on mac ( #6224 )
...
1. never close main window on mac to allow it to be quickly open
1. make the browser show a bit faster
2. brought up app window when clicking some menu items
2024-03-20 11:02:22 +00:00
pengx17
7adb89f134
feat(core): open new page on meta-clicking a page link ( #6220 )
2024-03-20 05:38:39 +00:00
Peng Xiao
fce4484a85
fix(core): tag size in docs view ( #6197 )
2024-03-19 08:53:08 +00:00
Peng Xiao
0695544073
fix(core): page info should use sans font (inter) ( #6196 )
2024-03-19 08:53:00 +00:00
Peng Xiao
5693d90451
e2e(core): add test for split view ( #6133 )
2024-03-18 07:04:06 +00:00
Peng Xiao
dc8f351051
refactor(component): render react element into lit ( #6124 )
...
See docs in https://insider.affine.pro/share/af3478a2-9c9c-4d16-864d-bffa1eb10eb6/oL1ifjA4rKv7HRn5nYzIF
This PR also enables opening split view by ctrl-click a page link in a doc.
2024-03-18 07:04:02 +00:00
Peng Xiao
e896f19f1a
fix(electron): disable mica for windows for now ( #6165 )
...
Upstream https://github.com/electron/electron/issues/41073
2024-03-18 06:52:40 +00:00
Peng Xiao
386bd033af
fix(electron): add dedicated api for opening external links in the default browser ( #6166 )
2024-03-18 06:41:48 +00:00
Peng Xiao
e35f6dca0e
fix: update docs ( #6094 )
2024-03-15 02:33:55 +00:00
Peng Xiao
d2bad68b74
feat(core): move blocksuite flags to experimental features ( #6113 )
2024-03-14 05:24:47 +00:00
Peng Xiao
dd9a253772
feat(core): add split view to experimental features settings ( #6093 )
2024-03-14 05:13:04 +00:00
Peng Xiao
e116a82c24
fix(component): an input display issue in confirm dialog ( #6102 )
...
fix the following issue of `input`

2024-03-13 11:40:34 +00:00
Peng Xiao
e8f83a237d
fix(core): vitest on windows ( #6100 )
2024-03-13 04:32:39 +00:00
Peng Xiao
20bce48132
fix: experimental settings sometimes not show ( #6090 )
2024-03-13 02:07:51 +00:00
Peng Xiao
3f27b7e5f7
fix(core): adjust suspense loading for some components ( #6088 )
...
Adjust setting & user info popover suspense to make them a little bit more responsive
2024-03-12 15:18:43 +00:00
Peng Xiao
9f74cb32ea
fix(component): input focus implementation ( #6086 )
2024-03-12 15:07:48 +00:00
Peng Xiao
e333b4d348
fix(core): make sidebar switch transition smooth ( #6085 )
2024-03-12 14:56:45 +00:00
Peng Xiao
4e79d720df
docs(server): update docs for running server locally ( #6080 )
2024-03-12 09:33:52 +00:00
Peng Xiao
1c5279747b
fix(server): migration script running on windows ( #6077 )
2024-03-12 16:19:48 +08:00
Peng Xiao
83e1217f61
fix(server): server startup on windows ( #6071 )
2024-03-12 06:41:42 +00:00
Peng Xiao
716f679914
feat(electron): mica styles for windows ( #5802 )
...

2024-03-11 09:41:09 +00:00
Peng Xiao
c93077f643
fix: divider styles issue ( #6058 )
...
Using height: 1 as divider may have some display issues on Chrome. No idea why yet.

2024-03-11 06:04:55 +00:00
Peng Xiao
65b32156a8
build: do not fail build for a non-fatal error ( #6017 )
2024-03-05 08:27:47 +00:00
Peng Xiao
55ecd92722
fix(electron): windows distribution name ( #6014 )
2024-03-05 07:53:30 +00:00
Peng Xiao
63e82cca78
build: remove incorrect project dep ( #6016 )
2024-03-05 07:44:13 +00:00
Peng Xiao
3fcbfe4d30
fix(electron): electron updater issues ( #6005 )
...
- generate-yml.js does not filter files correctly
- add version to generated bundles
- change `.AppImage` to `.appimage`. See https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/providers/Provider.ts#L88
2024-03-05 03:27:52 +00:00
Peng Xiao
7b31363c51
fix(electron): do not open external links in the browser for internal links in electron ( #5997 )
2024-03-04 09:39:03 +00:00
Peng Xiao
e2a31ea1fc
fix(core): some ui style issues ( #5995 )
...
Increase page info toggle click area:

fix history modal page height
2024-03-04 03:57:45 +00:00
Peng Xiao
a1ea19fcb7
fix: optimize history animation ( #5973 )
...
- adjust timing
- make sure card do not show the bottom border on transitioning
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/7a225ec1-eb33-45ab-bf27-646bb2519a83.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/7a225ec1-eb33-45ab-bf27-646bb2519a83.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/7a225ec1-eb33-45ab-bf27-646bb2519a83.mp4 ">Kapture 2024-03-01 at 10.56.09.mp4</video>
2024-03-01 06:08:08 +00:00
Peng Xiao
d4e78dd3d0
feat: add animation for history preview ( #5966 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/5ce45d13-1117-4853-a066-e8ab1446eb4f.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/5ce45d13-1117-4853-a066-e8ab1446eb4f.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/5ce45d13-1117-4853-a066-e8ab1446eb4f.mp4 ">Kapture 2024-02-29 at 18.54.15.mp4</video>
2024-02-29 14:08:21 +00:00
Peng Xiao
752c8580ae
fix: remove vite-tsconfig-paths ( #5960 )
...
It will cause storybook from running.
related to https://github.com/aleclarson/vite-tsconfig-paths/issues/132
We are not actually using `vite-tsconfig-paths` now because we rely on package.json's export field to do path mapping.
2024-02-29 07:58:41 +00:00
Peng Xiao
35454c3bfc
fix(core): polyfill resize-observer for development to avoid error overlay ( #5943 )
...
Brought a temporary solution from https://github.com/petyosi/react-virtuoso/issues/875#issuecomment-1962897033
2024-02-28 08:18:33 +00:00
Peng Xiao
27f2209e87
fix(core): date formatter timezone issue ( #5936 )
...
date seems not hornoring the locale browser's locale when parsing date string like "2024-02-28".
fixed by using dayjs instead.
Fix incorrect journal title issue
2024-02-28 04:27:32 +00:00
Peng Xiao
a0364dd4ea
fix(core): minor page info style issues ( #5935 )
2024-02-28 03:45:51 +00:00
Peng Xiao
148807879b
refactor(component): use react-transition-state to simplify exit animation ( #5923 )
...
## **User description**
use react-transition-state to simplify exit animation
___
## **Type**
enhancement
___
## **Description**
- Integrated `react-transition-state` for managing animations in `ResizePanel` and `CMDKModal` components, simplifying the code and improving maintainability.
- Introduced a shared animation timeout variable to standardize animation durations across components.
- Added `react-transition-state` to dependencies to enable the new animation handling.
___
## **Changes walkthrough**
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>resize-panel.tsx</strong><dd><code>Integrate `react-transition-state` for Resize Panel Animations</code></dd></summary>
<hr>
packages/frontend/component/src/components/resize-panel/resize-panel.tsx
<li>Introduced <code>useTransition</code> hook from <code>react-transition-state</code> for managing <br>animations.<br> <li> Added a constant for animation timeout and applied it to the <br>transition.<br> <li> Utilized the transition state to toggle the open state of the resize <br>panel.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-a4d6e633862f63f97c167ff41ba62aff8aebf3e3b2f6e7ce13d5a0e22e8ff287">+12/-0</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>modal.css.ts</strong><dd><code>Use Variable for Animation Timeout in Modal CSS</code> </dd></summary>
<hr>
packages/frontend/core/src/components/pure/cmdk/modal.css.ts
<li>Created a variable for animation timeout.<br> <li> Updated animation durations to use the new timeout variable.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-ba8935611b9c1695153d92d08ecb0f7dac73a6197f54ccda5a6e791902cd651d">+6/-3</a> </td>
</tr>
<tr>
<td>
<details>
<summary><strong>modal.tsx</strong><dd><code>Simplify CMDK Modal Animation with `react-transition-state`</code></dd></summary>
<hr>
packages/frontend/core/src/components/pure/cmdk/modal.tsx
<li>Replaced custom animation state management with <code>useTransition</code> hook.<br> <li> Removed old animation state logic and simplified the component.<br> <li> Added animation timeout variable and applied it to the transition.<br>
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-ab3fe66c9b1d3a691fafd1aebc9988e840fedfcd09b5b89570838a5a2a9469c9">+13/-33</a> </td>
</tr>
</table></td></tr><tr><td><strong>Dependencies</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>package.json</strong><dd><code>Add `react-transition-state` Dependency</code> </dd></summary>
<hr>
packages/frontend/core/package.json
- Added `react-transition-state` as a dependency.
</details>
</td>
<td><a href="https:/toeverything/AFFiNE/pull/5923/files#diff-23e0e5dc0ceb004a0a5d3d13e7d00545de7487535ca0e5eab4c5047f1e24eff0">+1/-0</a> </td>
</tr>
</table></td></tr></tr></tbody></table>
___
> ✨ **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions
2024-02-27 14:55:33 +00:00
Peng Xiao
39d177c507
build: codesigning dmg ( #5921 )
...
fix https://github.com/toeverything/AFFiNE/issues/5898
2024-02-27 06:35:46 +00:00