Commit Graph

358 Commits

Author SHA1 Message Date
JimmFly 675a010dfc fix(core): prevent floating sidebar from disappearing unexpectedly (#8477)
close AF-1475

Fixed an issue where you couldn't create collection or use the rename function in the floating sidebar.

https://github.com/user-attachments/assets/41c2b6a8-8fc9-4f8b-ab51-bd7ce2a58738
2024-10-19 13:24:08 +00:00
EYHN 01c3a3b4c0 feat(infra): collect more data to indexer (#8528) 2024-10-19 20:22:26 +08:00
CatsJuice 8f92be926b feat(core): new "is journal" page property (#8525)
close AF-1450, AF-1451, AF-14552
2024-10-18 10:03:08 +00:00
forehalo 7dae5c5dd5 feat(core): simplify subscribe page param (#8518)
AF-1481
2024-10-17 07:05:00 +00:00
donteatfriedrice 11aa6f63b2 refactor: move chat block to affine (#8368)
[BS-898](https://linear.app/affine-design/issue/BS-898/move-ai-chat-block-to-affine)

Should be merged after https://github.com/toeverything/blocksuite/pull/8420 merged and bumped.
2024-10-16 12:40:30 +00:00
EYHN 140ac723e6 refactor(core): adapter to new journal and property (#8508)
remove old WorkspacePropertyAdapter
add JournalService
2024-10-16 08:46:38 +00:00
pengx17 72e1489c62 fix(electron): tab max width (#8507)
fix PD-1727
2024-10-16 08:32:27 +00:00
EYHN 24e0c5797c refactor(core): doc property (#8465)
doc property upgraded to use orm.

The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.

![CleanShot 2024-10-14 at 15 34 52](https://github.com/user-attachments/assets/748b8b80-061f-4d6a-8579-52e59df717c2)

Added a sidebar view to manage properties
![CleanShot 2024-10-14 at 15 35 58](https://github.com/user-attachments/assets/bffa9b1a-a1a5-4708-b2e8-4963120f3af9)

new property ui in workspace settings
![CleanShot 2024-10-14 at 15 36 44](https://github.com/user-attachments/assets/572d8dcc-9b3d-462a-9bcc-5f5fa8e622da)

Property lists can be collapsed
![CleanShot 2024-10-14 at 15 37 59](https://github.com/user-attachments/assets/2b20be1a-8141-478a-8fe7-405aff6d04fd)
2024-10-15 10:17:12 +00:00
pengx17 c484cad7b2 fix(mobile): handle touch event correctly (#8496)
related:

radix-ui has a hack for dealing with touch event on mobile devices. we may not want to stop propagation for event that is not being handled, even for links

https://github.com/radix-ui/primitives/blob/74b182b401c8ca0fa5b66a5a9a47f507bb3d5adc/packages/react/dismissable-layer/src/DismissableLayer.tsx#L243-L261
2024-10-15 05:56:23 +00:00
JimmFly 040956279a fix(core): sidebar can not be collapsed on mobile (#8475)
close AF-1474
2024-10-11 08:13:38 +00:00
CatsJuice 29a31110cd feat(core): onetime subscription ui (#8462) 2024-10-10 10:12:43 +00:00
forehalo 9043e6607e refactor(i18n): lazy load languages (#8456)
closes AF-1397
2024-10-10 09:03:06 +00:00
CatsJuice 17fec8928f feat(core): emoji as doc icon support with feature flag (#8348)
close AF-1412

Adjusted the priority of the public doc icon:

1. block-reference
2. journal
3. page reference
4. **emoji** (*new)
5. default
2024-10-10 04:14:31 +00:00
JimmFly 5213431d51 feat(core): show floating sidebar when hovering sidebar swtich (#8393)
web:

https://github.com/user-attachments/assets/3cafe094-7938-4241-8d57-cfd5ccaadf25

client:

https://github.com/user-attachments/assets/ca218a45-de92-4e0a-ad83-c0f47aee2962
2024-10-09 03:48:17 +00:00
L-Sun 9c8e8d74b6 chore(core): update full width layout padding of peekview (#8446)
Close [BS-1378](https://linear.app/affine-design/issue/BS-1378/center-peek-全宽布局padding错误), related to [AF-1052]( https://linear.app/affine-design/issue/AF-1052/embed-view-候选区域-full-screen-时显示异常,需要修改-padding)
2024-10-08 05:32:04 +00:00
fundon a2400f3851 refactor(core): optimize editor params synchronization (#8346) 2024-10-08 05:12:00 +00:00
JimmFly cc4be9c670 chore: update app updater button style (#8444)
close AF-1461
2024-10-08 04:39:01 +00:00
L-Sun afb21f734e fix(core): fix position of toc in peekview (#8441)
Close [BS-1536](https://linear.app/affine-design/issue/BS-1536/peekview中的toc没有fixed)
2024-10-08 02:44:33 +00:00
JimmFly a3f8e6c852 refactor(core): refactor left sidebar to use di (#8385) 2024-09-27 09:32:25 +00:00
pengx17 76ff56a716 feat: add open info button to doc center peek (#8388)
fix AF-1229

![image](https://github.com/user-attachments/assets/3e7b43ad-43c6-4dfb-b737-5dffb1396b6b)
2024-09-25 09:11:25 +00:00
fundon 4daa959894 fix(core): block link recognition in self-hosted (#8340)
Part of [BS-1445](https://linear.app/affine-design/issue/BS-1445/点击-affine-link-时识别应用内链接,以触发应用内跳转)

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/8ypiIKZXudF5a0tIgIzf/fae580bc-7d30-4711-a70e-7a5cf26c76f1.mov">Screen Recording 2024-09-21 at 10.50.12.mov</video>
2024-09-25 04:16:58 +00:00
JimmFly 2df2003bd7 fix(core): handle composition event for Input component (#8351)
close AF-1065
2024-09-25 02:02:23 +00:00
pengx17 a430367c36 fix(electron): remove active tab shadow (#8284)
fix AF-1390
2024-09-24 10:05:58 +08:00
CatsJuice f9e0c1e57b fix(core): remove openInfoModalAtom to avoid multiple modal opened in split-view (#8329)
close AF-1403
2024-09-23 03:51:48 +00:00
Saul-Mirone 35e232c61c feat: migrate to blocksuite/affine (#8332)
Use `@blocksuite/affine` package for all blocksuite features in affine.

```ts
@blocksuite/store -> @blocksuite/affine/store
@blocksuite/global -> @blocksuite/affine/global
@blocksuite/block-std -> @blocksuite/affine/block-std
@blocksuite/blocks -> @blocksuite/affine/blocks
@blocksuite/presets -> @blocksuite/affine/presets
```
2024-09-20 10:55:47 +00:00
forehalo 39f60145fe fix(core): circular dependency 2024-09-20 16:32:21 +08:00
Fangdun Tsai 849193b4ab fix(core): should show block link icon first (#8328) 2024-09-20 07:39:51 +00:00
fundon bed70cd51a chore(core): add tests for toURLSearchParams (#8322) 2024-09-20 04:14:48 +00:00
fundon 661594aec8 feat(core): enhance share page with selector (#8319)
Closes [BS-1346](https://linear.app/affine-design/issue/BS-1346/白板上的-link-to-block-在只读模式下打开无法跳转和高亮)

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/84bb27a9-608f-4cfc-a4c8-58de8aa5d791.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/84bb27a9-608f-4cfc-a4c8-58de8aa5d791.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/8ypiIKZXudF5a0tIgIzf/84bb27a9-608f-4cfc-a4c8-58de8aa5d791.mov">Screen Recording 2024-09-20 at 06.21.45.mov</video>
2024-09-20 03:42:08 +00:00
forehalo e3e15c6134 fix(core): rollback ai service (#8321)
closes #8320
2024-09-20 01:49:51 +00:00
EYHN 7184d8348f fix(core): fix web login (#8312) 2024-09-19 16:24:05 +00:00
fundon c47d44f569 chore(core): cancel block not found alert (#8310) 2024-09-19 09:18:17 +00:00
CatsJuice 0450fcea8b fix(core): sidebar scrollbar is coverd by resize handle (#8307)
close AF-1236
2024-09-19 06:25:08 +00:00
fundon 6921c3073c refactor(core): improve scroll anchoring logic (#8269)
Upstreams: https://github.com/toeverything/blocksuite/pull/8378
2024-09-19 02:58:11 +00:00
JimmFly ee3c05904d refactor(core): adjust error detail and add error component to routes (#8234)
close PD-1430

https://github.com/user-attachments/assets/9447eaa5-c8b3-4108-96f1-d67ab45f249d

![CleanShot 2024-09-13 at 13 28 52@2x](https://github.com/user-attachments/assets/8c6c3a1d-9af7-41df-9d33-b69684d54d6b)
2024-09-19 02:12:03 +00:00
CatsJuice f4a19921c4 feat(core): extract DocDisplayMetaService to resolve doc icon/title (#8226)
AF-1315
2024-09-19 01:25:02 +00:00
fundon f397815ad1 chore: bump blocksuite (#8230)
## 0.17.11

### Patch Changes

- [3c61be5](https://github.com/toeverything/blocksuite/commit/3c61be5dedcc1fc37d6f09ed2541b391584c0ded): - Refactor drag handle widget
  - Split embed blocks to `@blocksuite/affine-block-embed`
  - Fix latex selected state in edgeless mode
  - Fix unclear naming
  - Fix prototype pollution
  - Fix portal interaction in affine modal
  - Fix paste linked block on edgeless
  - Add scroll anchoring widget
  - Add highlight selection
2024-09-18 12:11:14 +00:00
JimmFly 67577ee66e chore: adjust modal background color for peek view (#8295)
close AF-1391
2024-09-18 09:19:17 +00:00
akumatus a0d6a28ff4 fix: default style of new document does not follow AFFiNE settings (#8291)
Close issue [BS-1377](https://linear.app/affine-design/issue/BS-1377).

### What changed?
- Add `initDocFromProps` function to initialize the document with specific props.
- Extract `docProps` from editor settings and pass it to `docsService.createDoc` function.

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/sJGviKxfE3Ap685cl5bj/8082a8bd-ab3d-432c-9d3e-2f1d1a8398eb.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/sJGviKxfE3Ap685cl5bj/8082a8bd-ab3d-432c-9d3e-2f1d1a8398eb.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/8082a8bd-ab3d-432c-9d3e-2f1d1a8398eb.mov">录屏2024-09-18 16.13.43.mov</video>
2024-09-18 08:45:58 +00:00
EYHN fab23d226d refactor(core): clear build config (#8268)
remove build config

allowLocalWorkspace -> FeatureFlag
enablePreloading -> removed
enableNewSettingUnstableApi -> removed
enableExperimentalFeature -> removed
enableThemeEditor -> FeatureFlag

remove some unused code
2024-09-18 06:33:25 +00:00
fundon 46f8237a46 feat(core): add error notification for block not found (#8254)
Closes [BS-1416](https://linear.app/affine-design/issue/BS-1416/被删除的白板或者-page-里的-block,访问其-link-to-block,跳转之后没有-toast-提示)

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/76e0e8d8-8685-41a2-abc8-79b330854a7e.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/76e0e8d8-8685-41a2-abc8-79b330854a7e.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/8ypiIKZXudF5a0tIgIzf/76e0e8d8-8685-41a2-abc8-79b330854a7e.mov">Screen Recording 2024-09-13 at 21.09.20.mov</video>
2024-09-18 06:20:27 +00:00
pengx17 70fe7cfec4 fix(core): center peek width styles (#8276)
fix AF-1369
2024-09-18 05:22:10 +00:00
EYHN 3d80725c1a refactor(core): move mobile components to core (#8258) 2024-09-14 05:51:14 +00:00
fundon d2cb7b7683 chore(core): improve scroll anchoring (#8132)
Upstreams: https://github.com/toeverything/blocksuite/pull/8335
* set `padding` to `[20,20,100,20]`
* cancel smooth movement and scaling
* focus and zoom in on elements/blocks
2024-09-13 13:13:02 +00:00
pengx17 d2bd39a1c7 fix(core): importing template with default mode (#8250) 2024-09-13 12:54:21 +00:00
EYHN 5e56ec65e3 refactor(core): adjust core struct (#8218)
packages/frontend/core/src

hooks -> components/hooks
atoms -> components/atoms
layouts -> components/layouts
providers -> components/providers
mixpanel -> @affine/track
~~shared~~
~~unexpected-application-state~~
2024-09-13 11:31:21 +00:00
pengx17 2ac4a846f7 feat(core): copy event for image (#8219)
fix AF-1383
2024-09-13 10:28:28 +00:00
pengx17 b1e61245ee fix: button tooltip should not show on showing image preview (#8224)
when showing image preview in modal, the following code
https://github.com/radix-ui/primitives/blob/660060a765634e9cc7bf4513f41e8dabc9824d74/packages/react/focus-scope/src/FocusScope.tsx#L143 will find the first tabbable element and focus, which will trigger the button's tooltip

Adding tabIndex to the image to fix this issue
2024-09-13 10:11:18 +00:00
pengx17 3c1cd6b648 fix(electron): pinned tab style (#8232)
fix PD-1687
2024-09-13 09:40:27 +00:00
forehalo 2ce9d37af1 fix(core): circular dependencies (#8215) 2024-09-13 09:03:23 +00:00