Commit Graph

954 Commits

Author SHA1 Message Date
CatsJuice
242c41b440
feat(core): adjust center peek animation (#7393) 2024-07-15 06:36:24 +00:00
CatsJuice
7082f7ea7a
fix(core): share-button's label of shared page should be 'shared' (#7486)
close #7427
2024-07-15 06:21:22 +00:00
EYHN
dca88e24fe
feat(electron): shared storage (#7492) 2024-07-15 03:21:08 +00:00
EYHN
0f1409756e
refactor(infra): memento use undefined (#7491) 2024-07-15 02:48:20 +00:00
lawvs
2f784ae539
fix: switch to file-type v19.1.0 (#7459)
The official `file-type` package has replaced the usage of node:buffer with Uint8Array. This change allows it to run safely in the browser now.

Related to https://github.com/sindresorhus/file-type/issues/578
2024-07-12 10:27:49 +00:00
donteatfriedrice
5ede985a3a
fix: increase image action time out (#7487)
Increase image action timeout from 50000ms to 120000ms.
2024-07-12 06:36:30 +00:00
EYHN
5dd7382693
refactor(core): workbench (#7355)
Merge the right sidebar logic into the workbench. this can simplify our logic.

Previously we had 3 modules

* workbench
* right-sidebar (Control sidebar open&close)
* multi-tab-sidebar (Control tabs)

Now everything is managed in Workbench.

# Behavioral changes

The sidebar button is always visible and can be opened at any time.
If there is no content to display,  will be `No Selection`

![CleanShot 2024-06-28 at 14.00.41.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/d74b3a60-2299-452e-877e-188186fe5ee5.png)

Elements in the sidebar can now be defined as`unmountOnInactive=false`. Inactive sidebars are marked with `display: none` but not unmount, so the `ChatPanel` can always remain in the DOM and user input will be retained even if the sidebar is closed.
2024-07-12 04:11:05 +00:00
CatsJuice
c850dbb2b7
refactor(core): optimize abstraction of sidebar doc tree structure (#7455) 2024-07-11 06:24:45 +00:00
pengx17
7a35b78772
fix: telemetry property names (#7468) 2024-07-11 02:35:39 +00:00
forehalo
2f441d9335
chore: clean up runtime flags and envs (#7454) 2024-07-11 02:05:31 +00:00
darkskygit
0739e10683
feat: adapt workflow for ppt & minimap (#7464) 2024-07-10 10:13:17 +00:00
Cats Juice
22187f964a
fix(core): impl ai-island animation via css transform (#7458) 2024-07-09 16:17:55 +08:00
doouding
cf7b026832
feat: bump bs (#7430)
## Features

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7499 @doouding
- https://github.com/toeverything/BlockSuite/pull/7491 @golok727

## Refactor

## Misc
- https://github.com/toeverything/BlockSuite/pull/7454 @CatsJuice
2024-07-09 07:56:16 +00:00
JimmFly
e6818b4f14
feat(core): add doc info modal (#7409)
close AF-1038
close AF-1039
close AF-1040
close AF-1046

A popup window has been added to facilitate viewing of this doc's info in edgeless mode and other modes.

https://github.com/toeverything/AFFiNE/assets/102217452/d7f94cb6-7e32-4ce7-8ff4-8aba1309b331
2024-07-09 07:05:20 +00:00
EYHN
aab9925aa1
feat(core): adjust search strategy (#7447) 2024-07-09 04:27:34 +00:00
CatsJuice
13a2562282
feat(core): believer subscription UI (#7431)
feat(core): switch ai and cloud plans position

feat(core): impl lifetime subscription ui

feat(core): adapt ui for lifetime status

feat(core): add believer card in billing page
2024-07-08 08:31:22 +00:00
forehalo
de91027852
feat(server): support lifetime subscription (#7405)
closes CLOUD-48

- [x] lifetime subscription quota
- [ ] tests
2024-07-08 07:41:26 +00:00
forehalo
7235779b02
fix(core): use uint53 as yjs client id (#7444) 2024-07-08 07:24:32 +00:00
pengx17
8dfa601771
chore: populate page prop for mixpanel (#7425) 2024-07-05 07:45:39 +00:00
liuyi
481a2269f8
chore: bump blocksuite (#7424) 2024-07-04 15:58:11 +08:00
liuyi
555f203be6
feat(core): run indexer in worker (#7418) 2024-07-04 15:37:26 +08:00
CatsJuice
d6ad7d566f
chore(core): adjust ai onboarding dismiss logic, persist dialog and dismiss once closed (#7417) 2024-07-04 07:00:17 +00:00
donteatfriedrice
a0ce75c902
fix: ai button should not display in readonly mode (#7415)
[BS-737](https://linear.app/affine-design/issue/BS-737/shared-page-也可以用-ai)
2024-07-03 07:34:07 +00:00
pengx17
cc7740d8d3
fix: some regression issues on quick search refactor (#7410)
- fix PD-1370. doc link resolve issue on pasting
- fix AF-1029
- implement doc creation in doc search

added two test cases to cover the above two issues.
2024-07-03 03:24:50 +00:00
pengx17
10df1fb4b7
fix: menu in peek view content not scrollable issue (#7412)
when using [dialog.overlay](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/src/Dialog.tsx#L203-L211
), whole app is affected by [react-scroll library](8923c513d2/src/SideEffect.tsx (L131-L134)
):

In the current implementation, only the contents in the dialog content will be scrollable and cannot be configured in current API.

This PR introduces a simple div overlay to get rid of this issue.

fix BS-696
2024-07-03 02:58:41 +00:00
zzj3720
0bc09a9333
feat(core): update blocksuite feature flag (#7408) 2024-07-03 02:47:20 +00:00
forehalo
f0d127fa29
Revert "feat(core): run indexer in worker (#7295)"
This reverts commit c62d79ab14.
2024-07-03 10:16:27 +08:00
pengx17
fc729d6a32
fix: hide find in page command in cmdk (#7413) 2024-07-02 15:48:24 +00:00
pengx17
ef7ba273ab
fix: copy share link to clipboard command display issue (#7411)
fix AF-1027
2024-07-02 15:28:30 +00:00
pengx17
2a6ea3c9c6
feat(core): allow keyboard navigation in tags inline editor (#7378)
fix AF-966

- Allow using arrowup/down to navigate the tag list candidates; press enter to add the currently focused tag option;
- Allow using arrowleft/right to navigate the inline tag list (selected) and use backspace to delete focused tag.
2024-07-02 14:25:51 +00:00
EYHN
c62d79ab14
feat(core): run indexer in worker (#7295) 2024-07-02 09:18:08 +00:00
EYHN
27d0fc5108
refactor(core): use new backlink indexer (#7296) 2024-07-02 09:18:01 +00:00
EYHN
40e381e272
refactor(core): new quick search service (#7214) 2024-07-02 09:17:54 +00:00
EYHN
15e99c7819
feat(core): docs search service (#7213) 2024-07-02 09:17:47 +00:00
Peng Xiao
8c4a42f0e6
fix: cmd-k keybinding not show when editor input is active (#7398) 2024-07-01 19:31:36 +08:00
Flrande
4d484ea814
feat: bump blocksuite (#7372) 2024-07-01 19:21:14 +08:00
EYHN
3bbb657a78
feat(core): replace ai template (#7396) 2024-07-01 10:24:54 +00:00
KushalSharmaGit
d72dbe682c
fix: ensure exact tag matching with enter key behavior refinement (#7387)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2024-07-01 10:16:16 +08:00
EYHN
824be0d4c1
fix(core): fix viewtransition and css property missing (#7377) 2024-06-28 18:03:43 +08:00
golok727
fbf676002f
fix: code block toolbar z-index issue in right sidebar (#7376)
Closes: [BS-549](https://linear.app/affine-design/issue/BS-549/code-block-%E5%9C%A8%E5%8F%B3%E4%BE%A7%E8%BE%B9%E6%A0%8F%E6%9C%89-z-index-%E9%97%AE%E9%A2%98%E8%AF%AD%E8%A8%80%E7%9A%84%E4%BF%A1%E6%81%AF%E5%87%BA%E7%8E%B0%E5%9C%A8%E4%BA%86-tab-%E4%B8%8A%E9%9D%A2),[BS-600](https://linear.app/affine-design/issue/BS-600/the-code-toolbar-remains-visible-when-it-overflows-in-the-ai-panel)
2024-06-28 07:48:50 +00:00
regischen
e877f20955 fix: add onboarding entry (#7375)
Don't know why it's missed..
https://github.com/toeverything/AFFiNE/pull/7109
2024-06-28 07:03:33 +00:00
regischen
f4f84d2793
fix: click continue with ai not work (#7374) 2024-06-28 14:43:45 +08:00
pengx17
34b6a3bf1f
fix: escape key handling compatibility issue with blocksuite (#7365)
fix PD-1347

See
https://github.com/radix-ui/primitives/blob/main/packages/react/use-escape-keydown/src/useEscapeKeydown.tsx#L19-L20

This behavior in radix-ui is not possible to be prevented since escape keydown is bound to document with capturing, unless dialogs in blocksuite is also implemented with radix-ui.
2024-06-28 06:21:36 +00:00
EYHN
eca484dc28
fix(core): add loading for insert ai template (#7369) 2024-06-28 14:19:59 +08:00
Fangdun Tsai
855d555480
fix(core): should return a cleanup function (#7371) 2024-06-28 14:18:24 +08:00
forehalo
d51fd8b54b
fix(core): correct image action icon (#7370)
fix AF-1002

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/5c0ymolP9B7QStCsS1RP/b2e7afb1-e6bf-4589-8c60-32bede366350.png)
2024-06-28 05:24:06 +00:00
Saul-Mirone
f020cd353e
chore: bump bs (#7368)
## Features

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7444 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7445 @doouding
- https://github.com/toeverything/BlockSuite/pull/7443 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7440 @doouding

## Refactor
- https://github.com/toeverything/BlockSuite/pull/7442 @Flrande

## Misc
2024-06-28 04:10:46 +00:00
pengx17
4f07a2cc2a
fix(core): debounce doc update time update (#7363) 2024-06-27 10:37:43 +00:00
forehalo
ae230354c6
chore: bump base version to 0.15.0 2024-06-27 18:17:36 +08:00
Peng Xiao
c8f418f9c5
fix: use sgtpooki/file-type for resolving image type (#7326) 2024-06-27 10:08:08 +00:00