pengx17
47d01f5f66
fix(core): db backlink infinite query issue ( #10628 )
...
fix AF-2301
2025-03-05 09:43:05 +00:00
Flrande
bd62634a76
feat(editor): add callout block ( #10563 )
...
- Add `CalloutBlockModel `
- Implement `CalloutBlockComponent `
- Integrate with slash menu (/)
2025-03-05 09:28:51 +00:00
akumatus
1c2a6eac85
feat: responsive chat-panel padding and request ( #10620 )
...
Close [BS-2751](https://linear.app/affine-design/issue/BS-2751 ).
### What Changed?
- Do not send AI gql request when chat-panel is not open.
- When the chat-panel width is greater than 540px, adjust the padding to 24px.
- Optimize the display and hide logic of scroll to end button.
2025-03-05 09:12:03 +00:00
liuyi
61162c59fc
refactor(server): permission ( #10449 )
2025-03-05 15:57:00 +08:00
Brooooooklyn
bf7b1646b3
fix(web): add Array#toReversed polyfill ( #10623 )
2025-03-05 07:20:16 +00:00
doouding
30f97892b1
fix: snap line offset & check alignment candidates in real time ( #10605 )
2025-03-05 07:05:21 +00:00
fengmk2
b88113a2d1
feat(server): add invalid oauth callback code error handling ( #10603 )
...
close CLOUD-130
2025-03-05 06:16:59 +00:00
darkskygit
0b8fa7904d
fix: adapt new abort behavior ( #10622 )
2025-03-05 06:03:43 +00:00
EYHN
59de4558bd
feat(core): fix sign in background arts block user interaction ( #10621 )
2025-03-05 05:57:01 +00:00
EYHN
61635aa77a
feat(core): add clipper import interface ( #10619 )
2025-03-05 04:22:03 +00:00
EYHN
4daa763c95
fix(core): fix table text content search ( #10488 )
2025-03-05 04:06:44 +00:00
Brooooooklyn
e99b25ae6a
fix(web): add Array#toSpliced and Array#toReversed polyfill ( #10614 )
2025-03-05 02:46:41 +00:00
fengmk2
3d2c4fe007
feat(server): add user existence check and optimize permission queries ( #10402 )
2025-03-05 01:49:33 +00:00
Saul-Mirone
b8ecfbdae6
refactor(editor): remove assertExists ( #10615 )
2025-03-05 00:13:08 +00:00
akumatus
a6692f70aa
fix(core): text style is not centered when chat-panel is wide ( #10607 )
...
Fix issue [BS-2751](https://linear.app/affine-design/issue/BS-2751 ).
Before:

After:

2025-03-04 15:25:35 +00:00
Saul-Mirone
66d9d576e0
refactor(editor): add gfx entry in bs global package ( #10612 )
2025-03-04 12:46:50 +00:00
Saul-Mirone
5ad3d3c94a
refactor(editor): move figma squircle to shared ( #10610 )
2025-03-04 10:26:58 +00:00
Saul-Mirone
fa5674166e
refactor(editor): cleanup list icons ( #10608 )
2025-03-04 10:13:01 +00:00
yoyoyohamapi
fd244f909d
fix(core): positioning error in fixed floating submenu ( #10606 )
...
Issue:Close [BS-2150](https://linear.app/affine-design/issue/BS-2150/图片-filterprocessing-二级菜单时而不出现 )
In the AI image menu (based on floating-ui):
- **Floating element**: Submenu items (e.g., "image filter/image processing")
- **Reference element**: Menu item
- **Positioning strategy**: `fixed`
- **Issue**: Specifying the `container` parameter caused the floating element (submenu) to be mounted to the reference element (menu item), leading to incorrect position calculations when floating-ui updated.
```jsx
<menu-item>
<submenu-item style={{ position: 'fixed' }}/>
</menu-item>
```
- **Fix**: Remove the `container` configuration and mount the `fixed`-positioned floating element to the `body` instead.
2025-03-04 09:58:39 +00:00
donteatfriedrice
40351295c9
fix(editor): should not select or open latex editor when readonly ( #10601 )
2025-03-04 07:27:58 +00:00
akumatus
16fd7bdf20
fix(core): add ai math syntax in prompt ( #10595 )
...
Close [BS-2121](https://linear.app/affine-design/issue/BS-2121 ).
2025-03-04 07:13:53 +00:00
Brooooooklyn
a486174669
build: add link args to prevent dso unloading error on GNU targets ( #10602 )
2025-03-04 06:58:41 +00:00
Saul-Mirone
22924c767c
fix(editor): onChange notification for flat model ( #10589 )
...
The primary purpose of this PR appears to be:
1. Simplifying the change notification API by removing the redundant value parameter from callbacks
2. Improving the reactive system's handling of specialized types (Text and Boxed) in flat data
3. Adding better test coverage for text handling in the flat data model
v0.20.5-canary.2
2025-03-04 05:57:06 +00:00
doodlewind
c418e89fb9
chore(editor): add feature flag entry for testing turbo renderer ( #10581 )
...
The debug pane will be displayed once the `enable_turbo_renderer` feature flag is enabled.

2025-03-04 05:38:44 +00:00
doouding
1c29d0e269
feat: optimize edgeless alignment ( #10435 )
...
### Changed
- alignment line style
- threshold of snapping
- optimize alignment checking performance
2025-03-04 03:03:31 +00:00
akumatus
321247a2fa
fix(core): add ai 7 day trial hint ( #10587 )
...
Fix issue [BS-2739](https://linear.app/affine-design/issue/BS-2739 ).
2025-03-03 15:10:16 +00:00
pengx17
8e5d7858c4
fix(core): only enable attachment preview for pdf ( #10584 )
2025-03-03 11:07:13 +00:00
L-Sun
37fbfbcf3e
fix(editor): zindex of frame child not updated ( #10580 )
...
Close [BS-2689](https://linear.app/affine-design/issue/BS-2689/[bug]-%E5%BD%93%E5%B1%82%E7%BA%A7%E4%BD%8E%E4%BA%8E-frame-%E7%9A%84yuan%E7%B4%A0%E8%A2%AB%E6%8B%96%E5%85%A5-frame-%E6%97%B6%E5%B1%82%E7%BA%A7%E5%BA%94%E8%AF%A5%E8%A2%AB%E8%87%AA%E5%8A%A8%E6%8B%89%E9%AB%98%E5%B5%8C%E5%85%A5-frame )
2025-03-03 10:51:27 +00:00
liuyi
889625cdaa
fix(server): reschedule busy doc merging ( #10583 )
2025-03-03 18:51:09 +08:00
Saul-Mirone
4c3c953a36
chore(editor): merge clamp functions ( #10577 )
...
Closes: [BS-2625](https://linear.app/affine-design/issue/BS-2625/合并clamp函数 )
2025-03-03 10:33:38 +00:00
Brooooooklyn
899a957fab
fix(native): do not crash on bootstrap if API is not available ( #10582 )
2025-03-03 10:15:42 +00:00
L-Sun
2cd83be621
fix(editor): code block toolbar float offset ( #10579 )
...
Close [BS-2736](https://linear.app/affine-design/issue/BS-2736/代码块工具栏偏移太大 ), [BS-1974](https://linear.app/affine-design/issue/BS-1974/code-block-浮标歪 )
## Before
https://github.com/user-attachments/assets/f4ec4d7d-8c18-43ea-9464-c18e8b8dce60
https://github.com/user-attachments/assets/76f89ce6-bd89-49d6-a987-e9e5d5f9842a
### After
https://github.com/user-attachments/assets/dac919b9-d19c-4fb3-99bf-be02a460ad8c
https://github.com/user-attachments/assets/e5329f84-f1cf-4776-a789-8d12bea17ece
2025-03-03 09:56:13 +00:00
donteatfriedrice
170066050e
feat(core): support latex in ai text renderer ( #10576 )
2025-03-03 09:19:31 +00:00
liuyi
abad289783
fix(server): limit max batch pulled doc updates ( #10578 )
2025-03-03 09:19:17 +00:00
Flrande
5d3c365d97
fix(editor): format text in code block ( #10575 )
...
Closes: [BS-2724](https://linear.app/affine-design/issue/BS-2724/code-block%E9%87%8C%E4%B8%8D%E5%BA%94%E8%AF%A5%E6%98%BE%E7%A4%BAtoolbar )
2025-03-03 08:52:38 +00:00
doodlewind
86c449319b
chore(editor): remove redundant fields in viewport ( #10569 )
2025-03-03 07:49:08 +00:00
fengmk2
0e24ea3ac5
fix(server): throw s3 store error directly ( #10572 )
...
close CLOUD-154
2025-03-03 07:09:54 +00:00
fengmk2
0e26498e6a
refactor(server): reduce server resource requests ( #10568 )
...
close CLOUD-149
2025-03-03 06:33:07 +00:00
Saul-Mirone
a587abca85
feat(editor): add block meta service ( #10561 )
2025-03-03 06:13:06 +00:00
zzj3720
3711e13e0e
fix(editor): database block create new row when group by rich-text ( #10564 )
2025-03-03 05:58:07 +00:00
Brooooooklyn
18bdf830b4
ci: fix native server build ( #10554 )
2025-03-03 05:44:00 +00:00
Brooooooklyn
73fa04e249
chore: unify Cargo deps versions ( #10553 )
2025-03-03 03:30:59 +00:00
Saul-Mirone
4eae3cc66a
feat(editor): add user list services ( #10555 )
2025-03-03 03:15:00 +00:00
pengx17
629aea48df
fix(electron): app menu about action ( #10445 )
...
fix AF-2268
2025-03-03 03:00:17 +00:00
doodlewind
bd1b26a230
feat(editor): support zooming placeholder in turbo renderer ( #10504 )
...
[Screen Recording 2025-02-28 at 4.32.20 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/lEGcysB4lFTEbCwZ8jMv/6c08b827-8428-42f3-aa7a-a2366756bd16.mov " />](https://app.graphite.dev/media/video/lEGcysB4lFTEbCwZ8jMv/6c08b827-8428-42f3-aa7a-a2366756bd16.mov )
This prevents painting task backlog during zooming by adding a fast placeholder painter, with a `zooming` state in renderer state machine.
2025-03-03 02:07:46 +00:00
Saul-Mirone
fdde818ddd
feat(editor): add block meta feature flag ( #10548 )
2025-03-03 01:45:33 +00:00
Saul-Mirone
f23f29610c
refactor(editor): remove stable feature flags ( #10547 )
2025-03-02 08:41:12 +00:00
Saul-Mirone
6353e72078
feat(editor): add embed option config extension ( #10540 )
...
This PR implements a significant refactoring of the embed block services across multiple components (Figma, GitHub, Loom, and YouTube) in the BlockSuite codebase. Here are the key changes:
1. **Architecture Change**:
- Moves from a dynamic registration pattern to a more declarative configuration approach
- Replaces `EmbedOptionProvider.registerEmbedBlockOptions()` calls with a new `EmbedOptionConfig` factory function
2. **Service Refactoring**:
- For each embed block type (Figma, GitHub, Loom, YouTube):
- Separates configuration from service logic
- Creates new `EmbedBlockOptionConfig` constants using the new `EmbedOptionConfig` factory
- Removes the `mounted()` lifecycle hook from services where it was only used for registration
3. **Core Changes**:
- In `embed-option-service.ts`:
- Introduces new `EmbedOptionConfigIdentifier` for dependency injection
- Adds `EmbedOptionConfig` factory function for creating embed configurations
- Updates `EmbedOptionService` constructor to automatically register configurations
- Modifies DI setup to include `StdIdentifier` dependency
4. **Spec Updates**:
- Updates all block specs to include the new configuration objects
- Maintains existing functionality while using the new pattern
The main benefit of this refactoring is:
- More declarative configuration approach
- Better separation of concerns
- Reduced runtime registration code
- More predictable initialization of embed options
2025-03-01 16:40:18 +00:00
Saul-Mirone
7527d36547
feat: prevent cycle emit in slot ( #10539 )
2025-03-01 08:10:41 +00:00
renovate
2b0c91b58b
chore: bump up sonner version to v2 ( #10535 )
...
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sonner](https://sonner.emilkowal.ski/ ) ([source](https://redirect.github.com/emilkowalski/sonner )) | [`^1.7.1` -> `^2.0.0`](https://renovatebot.com/diffs/npm/sonner/1.7.4/2.0.1 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>emilkowalski/sonner (sonner)</summary>
### [`v2.0.1`](https://redirect.github.com/emilkowalski/sonner/releases/tag/v2.0.1 )
[Compare Source](https://redirect.github.com/emilkowalski/sonner/compare/v2.0.0...v2.0.1 )
##### What's Changed
- fix: flush sync error by [@​emilkowalski](https://redirect.github.com/emilkowalski ) in [https://github.com/emilkowalski/sonner/pull/586 ](https://redirect.github.com/emilkowalski/sonner/pull/586 )
- fix: allow users to select text after swipe gesture by [@​emilkowalski](https://redirect.github.com/emilkowalski ) in [https://github.com/emilkowalski/sonner/pull/587 ](https://redirect.github.com/emilkowalski/sonner/pull/587 )
**Full Changelog**: https://github.com/emilkowalski/sonner/compare/v2.0.0...v2.0.1
### [`v2.0.0`](https://redirect.github.com/emilkowalski/sonner/releases/tag/v2.0.0 )
[Compare Source](8665072d34 ...v2.0.0)
Mostly bug fixes, see more at https://sonner.emilkowal.ski/getting-started .
##### What's Changed
- sonner v2.0 by [@​emilkowalski](https://redirect.github.com/emilkowalski ) in [https://github.com/emilkowalski/sonner/pull/558 ](https://redirect.github.com/emilkowalski/sonner/pull/558 )
**Full Changelog**: https://github.com/emilkowalski/sonner/compare/v.2.0.0-beta.1...v2.0.0
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/ ). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2025-03-01 03:28:11 +00:00