pengx17
7baa260e97
refactor(core): image block use peek view workflow ( #7329 )
...
depends on https://github.com/toeverything/blocksuite/pull/7424
2024-06-26 07:49:25 +00:00
pengx17
f51da066a8
refactor: image preview component issues in center peek ( #7313 )
...
fix AF-948
- remove jotai
- every editor got its own image block modal
- image block uses center peek modal for animation and style
2024-06-25 07:34:18 +00:00
forehalo
7b3673ae82
chore: assign todos ( #7297 )
2024-06-21 07:54:14 +00:00
regischen
ddf72733e1
feat: add ai-is-land ( #7259 )
2024-06-20 02:52:14 +00:00
JimmFly
6c3e13316e
feat(i18n): update resources and add Swedish language ( #7247 )
...
close AFF-1279
2024-06-19 02:47:05 +00:00
EYHN
e2dbac6bf8
chore: bump blocksuite ( #7235 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7340 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7334 @EYHN
- https://github.com/toeverything/BlockSuite/pull/7339 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7328 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7324 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7297 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7318 @CatsJuice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7343 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7345 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7341 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7342 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7329 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7337 @fundon
- https://github.com/toeverything/BlockSuite/pull/7333 @fundon
- https://github.com/toeverything/BlockSuite/pull/7326 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7325 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7323 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7312 @golok727
- https://github.com/toeverything/BlockSuite/pull/7317 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7319 @akumatus
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7327 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7320 @Flrande
## Misc
- https://github.com/toeverything/BlockSuite/pull/7303 @fundon
- https://github.com/toeverything/BlockSuite/pull/7321 @Saul-Mirone
2024-06-17 10:55:40 +00:00
fundon
729631ea72
refactor(core): image preview toolbar UI ( #7207 )
...
Closes: [AFF-1257](https://linear.app/affine-design/issue/AFF-1257/image-preview-toolbar )
* refactor logic
* update UI style
<img width="617" alt="Screenshot 2024-06-13 at 07 21 52" src="https://github.com/toeverything/AFFiNE/assets/27926/1edc6476-0103-4214-8ef2-41b37d95287b ">
<img width="760" alt="Screenshot 2024-06-13 at 07 21 33" src="https://github.com/toeverything/AFFiNE/assets/27926/83d27ab2-143f-4bdd-a932-396289c598ec ">
2024-06-14 02:02:46 +00:00
akumatus
24cb0d3757
refactor: add docsService for blocksuite to change and observe doc mode ( #7200 )
...
This PR provide `DocModeService` to manage document mode, which is used by blocksuite.
### What Changed?
- Add document mode apis from `DocService` and `DocsService`
- Remove useless `pageService.getEditorMode` and `pageService.slots.editorModeSwitch` api
[Related PR in blocksuite](https://github.com/toeverything/blocksuite/pull/7288 )
[Bump Blocksuite](https://github.com/toeverything/AFFiNE/pull/7209 )
> ## Features
> * [feat(presets): support different tracker control for actions blocksuite#7285](https://github.com/toeverything/blocksuite/pull/7285 ) @donteatfriedrice
> * [feat(edgeless): add default color and editing border for edgeless text blocksuite#7278](https://github.com/toeverything/blocksuite/pull/7278 ) @Flrande
> * [feat(blocks): center peek entries blocksuite#7275](https://github.com/toeverything/blocksuite/pull/7275 ) @pengx17
>
> ## Bugfix
> * [fix(blocks): affine-embed-synced-doc-block peek on dblclick blocksuite#7284](https://github.com/toeverything/blocksuite/pull/7284 ) @pengx17
> * [fix(edgeless): edgeless text rect should automatically update when changing font blocksuite#7292](https://github.com/toeverything/blocksuite/pull/7292 ) @Flrande
> * [fix(edgeless): align panel not work blocksuite#7293](https://github.com/toeverything/blocksuite/pull/7293 ) @Flrande
> * [fix(blocks): filterable list unexpected hover style blocksuite#7291](https://github.com/toeverything/blocksuite/pull/7291 ) @golok727
> * [fix(blocks): slash menu unexpected hover style blocksuite#7290](https://github.com/toeverything/blocksuite/pull/7290 ) @golok727
> * [fix(blocks): bookmark block error on undo or delete while loading blocksuite#7276](https://github.com/toeverything/blocksuite/pull/7276 ) @golok727
> * [fix(presets): chat input max-height blocksuite#7283](https://github.com/toeverything/blocksuite/pull/7283 ) @fundon
> * [fix(presets): get image blob from selection blocksuite#7286](https://github.com/toeverything/blocksuite/pull/7286 ) @donteatfriedrice
> * [fix(blocks): connectors resize and rotate blocksuite#7256](https://github.com/toeverything/blocksuite/pull/7256 ) @fundon
>
> ## Refactor
> * [refactor: add DocModeService for doc mode get, set, toogle and observe change blocksuite#7288](https://github.com/toeverything/blocksuite/pull/7288 ) @akumatus
> * [refactor(edgeless): rewrite auto-connect component as a widget blocksuite#7287](https://github.com/toeverything/blocksuite/pull/7287 ) @doouding
>
> ## Misc
> * [test: fix flaky blocksuite#7295](https://github.com/toeverything/blocksuite/pull/7295 ) @L-Sun
> * [style(page): adjust heading font-weight and letter-spacing blocksuite#7277](https://github.com/toeverything/blocksuite/pull/7277 ) @CatsJuice
> * [chore: apply member ordering rule blocksuite#7279](https://github.com/toeverything/blocksuite/pull/7279 ) @Saul-Mirone
---
2024-06-13 16:53:42 +08:00
pengx17
f78416021a
chore: bump blocksuite ( #7163 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7230 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7220 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7228 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7216 @golok727
- https://github.com/toeverything/BlockSuite/pull/7224 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7217 @pengx17
- https://github.com/toeverything/BlockSuite/pull/7144 @Flrande
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7231 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7229 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7222 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7226 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7218 @fundon
- https://github.com/toeverything/BlockSuite/pull/7213 @donteatfriedrice
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7212 @Flrande
## Misc
- https://github.com/toeverything/BlockSuite/pull/7223 @fundon
2024-06-06 12:04:07 +00:00
pengx17
5bd9c7a2a3
feat: allow search for doc without showing modal ( #7138 )
...
depends on https://github.com/toeverything/blocksuite/pull/7199#pullrequestreview-2095567573
fix TOV-858, fix AFF-1132
2024-06-06 06:29:41 +00:00
fundon
5b8b2bbf48
fix(component): banner should not affect the editor layout ( #7128 )
...
Same as #6605
2024-06-03 02:13:24 +00:00
pengx17
002b9e80f8
feat: e2e tests for peek view ( #7112 )
...
fix AFF-1163
2024-05-31 10:28:42 +00:00
EYHN
b356ddbe6e
fix(core): fix ui flashing ( #7056 )
2024-05-27 08:05:20 +00:00
Flrande
0f5ae77032
feat(core): bump blocksuite ( #7019 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7075 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7090 @doouding
- https://github.com/toeverything/BlockSuite/pull/7095
@golok727
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7108
@fundon
- https://github.com/toeverything/BlockSuite/pull/7110 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7105 @regischen
- https://github.com/toeverything/BlockSuite/pull/7064
@fundon
- https://github.com/toeverything/BlockSuite/pull/7102 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7091 @zzj3720
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7088
@Mirone
## Misc
- https://github.com/toeverything/BlockSuite/pull/7097
@CatsJuice
2024-05-22 08:48:28 +00:00
JimmFly
1b91ffa6a5
chore: adjust quick search style ( #6906 )
...
close TOV-854
<img width="651" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/f281eb82-852c-411d-b3dd-4bf7d7ce74e8 ">
2024-05-14 07:28:25 +00:00
Akumatus
4a032eb260
fix: modify experimental features to app-level ( #6823 )
2024-05-08 12:21:02 +08:00
JimmFly
eac55fe1c1
feat(core): add multiDelete to trash page ( #6798 )
...
close #6739
https://github.com/toeverything/AFFiNE/assets/102217452/b1779cdf-f617-4188-ad29-70ec1695af1b
2024-05-07 06:54:59 +00:00
pengx17
0c175ada31
fix: remove dnd for workspace list ( #6754 )
...
fix TOV-399
2024-04-30 14:57:38 +00:00
JimmFly
350fec5397
feat(core): optimize the shift multi-selection function of doc list ( #6675 )
...
close TOV-701
https://github.com/toeverything/AFFiNE/assets/102217452/8813e603-1cc2-469f-a7c1-b18e49a14871
2024-04-24 07:56:13 +00:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08: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
CatsJuice
9127bfae67
refactor(core): replace all notification relies on jotai ( #6417 )
...
- remove all notification that implemented with jotai and replaced with new `notify`
- Add some notify presets:
- `notify.error`
- `notify.success`
- `notify.warning`
2024-04-02 03:19:07 +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
JimmFly
88d04e23e9
feat(core): update i18n resources ( #6362 )
...
close TOV-769
<img width="712" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/902a0771-e8df-46e2-8d7c-1f453a7099e6 ">
2024-03-28 10:11:25 +00:00
CatsJuice
0731872347
feat(core): refactor sidebar header ( #6251 )
...
- Add user avatar
- Move sign-out/user settings link from workspace-modal to user avatar modal
- Modify the style of workspace list items
- Modify gap of navigation buttons
- Animate Syncing/Offline/...

2024-03-26 06:10:38 +00:00
JimmFly
1ff6af85f5
feat(core): add page group and display properties ( #6228 )
...
close TOV-23
https://github.com/toeverything/AFFiNE/assets/102217452/c05474de-b73c-40ab-9f18-cc43bb9fd828
2024-03-25 07:53:33 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates ( #6279 )
2024-03-25 03:55:33 +00:00
pengx17
578d4c9775
fix(core): image preview flaky ( #6292 )
2024-03-25 02:46:31 +00:00
EYHN
34703a3b7d
feat(infra): new doc sync engine ( #6205 )
...
https://github.com/toeverything/AFFiNE/blob/eyhn/feat/new-sync/packages/common/infra/src/workspace/engine/doc/README.md
2024-03-22 16:43:26 +00:00
Peng Xiao
dd9a253772
feat(core): add split view to experimental features settings ( #6093 )
2024-03-14 05:13:04 +00:00
JimmFly
b26efa4940
feat(core): add tag operation to tag list ( #5998 )
...
https://github.com/toeverything/AFFiNE/assets/102217452/11745733-0d7b-494b-97fd-33e40a240a02
2024-03-11 08:36:07 +00:00
EYHN
7c76c25a9c
refactor(core): new back&forward button base on workbench ( #6012 )
...
# feature:
## In Browser:
- hidden back&forward button in sidebar.
- back and forward is equal with `window.history.back()` `window.history.forward()`
## In Desktop:
- Back and forward can be controlled through the sidebar, cmdk, and shortcut keys.
- back and forward act on the currently **active** view.
- buttons change disable&enable style based on current active view history
# Refactor:
Move app-sidebar and app-container from @affine/component to @affine/core
2024-03-05 07:01:24 +00:00
regischen
d1e6b23e1a
feat: bump blocksuite ( #5953 )
2024-02-29 14:33:50 +08:00
EYHN
5cd488fe1d
refactor(core): remove collection atom ( #5832 )
2024-02-27 03:50:56 +00:00
EYHN
ad9b0303c4
refactor(core): refactor atom to use di ( #5831 )
...
To support multiple instances, this PR removes some atoms and implements them using the new DI system.
removed atom
- `pageSettingsAtom`
- `currentPageIdAtom`
- `currentModeAtom`
2024-02-27 03:50:53 +00:00
Peng Xiao
2295685590
fix: page info styles ( #5910 )
...
fix inconsistent styles compared to the one defined in figma
fix https://github.com/toeverything/AFFiNE/issues/5904
fix https://github.com/toeverything/AFFiNE/issues/5903
2024-02-26 14:11:24 +00:00
Peng Xiao
c16e4d4464
fix: page properties flaky tests ( #5893 )
2024-02-23 14:14:41 +00:00
Peng Xiao
745110c799
fix: page info ui issue on journal page ( #5887 )
2024-02-23 07:55:44 +00:00
Peng Xiao
2df8f29b64
refactor(core): use fractional indexing for sorting ( #5809 )
...
use https://github.com/rocicorp/fractional-indexing to enable better sorting logic for crdt app
2024-02-22 09:38:00 +00:00
Peng Xiao
372b4da884
test(core): add tests for page info ui ( #5769 )
...

2024-02-22 09:37:55 +00:00
Peng Xiao
d97304e9eb
feat(core): page info ui ( #5729 )
...
this PR includes the main table view in the page detail page
2024-02-22 05:58:15 +00:00
JimmFly
8d746f17de
chore: remove preloading pages ( #5854 )
2024-02-21 12:57:18 +00:00
JimmFly
c353b0d30f
chore: replace ambiguous "page" with "doc" ( #5761 )
...
close TOV-532
2024-02-21 12:47:17 +00:00
Cats Juice
3fe9d834de
feat(core): replace page filter, journal's date-picker with new one ( #5675 )
2024-02-20 13:53:41 +00:00
Peng Xiao
d1c4e6141a
refactor(component): cmdk ordering ( #5722 )
...
Replace internal CMDK command filtering/sorting logic.
The new implementation includes the following for command scoring:
- categories weights
- highlighted fragments
- original command score value
The new logic should be much cleaner and remove some hacks in the original implementation.
Not sure if this is optimal yet. Could be changed later.
fix https://github.com/toeverything/AFFiNE/issues/5699
2024-02-16 13:20:24 +00:00
Flrande
2e3ffeced9
feat: bump blocksuite ( #5812 )
2024-02-08 08:18:03 +08:00
Peng Xiao
005c02f148
fix(core): flaky tests ( #5804 )
2024-02-06 03:20:54 +00:00
JimmFly
18068f4ae2
feat(core): add collection and tag filters to all pages ( #5567 )
...
close TOV-69
Added the `filterMode` parameter to the `/all` route.
Abstracted the `PageList` and associated components into more universal ones.
Added the `useTagMetas` hook to get and update the workspace tags.
https://github.com/toeverything/AFFiNE/assets/102217452/7595944d-a056-40c2-8d89-d8df9e901a4b
2024-01-26 07:42:47 +00:00
Peng Xiao
f41b7d7e71
feat(component): react wrapper for blocksuite editor ( #5606 )
...
A React wrapper for blocksuite editor from title/meta/doc/edgless fragments.
This PR only **clones** the `AffineEditorContainer`'s existing behavior and make it easier for extension in affine later.
fix TOV-315
### Some core issues:
A customized version of `createComponent` from `@lit/react`. The [existing and solutions in the community](https://github.com/lit/lit/issues/4435 ) does not work well in our case.
Alternatively in this PR the approach we have is to create web component instances in React lifecycle and then append them to DOM. However this make it hard to wrap the exported Lit component's using React and therefore we will have an additional wrapper tag for the wrapped web component.
To mitigate the migration issue on using React instead of Lit listed on last day, we now use [a proxy to mimic the wrapped React component](https://github.com/toeverything/AFFiNE/pull/5606/files#diff-5b7f0ae7b52a08739d50e78e9ec803c26ff3d3e5437581c692add0de12d3ede5R142-R183 ) into an `AffineEditorContainer` instance.
2024-01-22 08:25:29 +00:00