Commit Graph
100 Commits
Author SHA1 Message Date
EYHN d2b0ee40a8 fix(core): disable blocksuite indexer (#7813) 2024-08-09 08:24:44 +00:00
EYHN 3ad5170b71 fix(core): hidden open in split view in browser (#7811) 2024-08-09 07:50:07 +00:00
EYHN 4beedaa22c fix(core): delete from folder not work (#7806) 2024-08-09 06:49:20 +00:00
EYHN b2c00a2618 fix(core): typo in migration text (#7804) 2024-08-09 05:23:52 +00:00
EYHN c006f3f0af fix(core): reduce indexer performance impact (#7803) 2024-08-09 11:57:06 +08:00
EYHN 7efc87b6d3 chore(core): adjust migration text (#7802) 2024-08-09 11:50:52 +08:00
EYHN ffc12176c9 fix(electron): fix electron global state sync (#7793) 2024-08-08 12:02:10 +00:00
EYHN fd6e198295 chore: bump blocksuite (#7788) 2024-08-08 09:27:44 +00:00
EYHN 6ef5675be1 feat(core): better search result (#7787) 2024-08-08 08:56:55 +00:00
EYHN c7aabd3a8d feat(core): highlight doc title in search result (#7786) 2024-08-08 08:56:51 +00:00
EYHN 83244f0201 fix(core): trash doc in search result (#7785) 2024-08-08 08:17:48 +00:00
EYHN d968cfe425 fix(infra): better search result (#7774) 2024-08-07 09:16:43 +00:00
EYHN aee24ffb31 fix(core): migration favorite appear again (#7768) 2024-08-07 03:31:06 +00:00
EYHN 96fed60655 chore: bump blocksuite (#7751)
## Features
- https://github.com/toeverything/BlockSuite/pull/7850 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7848 @L-Sun

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7853 @doouding
- https://github.com/toeverything/BlockSuite/pull/7838 @fundon
- https://github.com/toeverything/BlockSuite/pull/7851 @donteatfriedrice

## Refactor

## Misc
2024-08-07 02:52:44 +00:00
EYHN dd74cfea14 chore(core): remove old favorite (#7743)
closes AF-1203
2024-08-07 02:19:53 +00:00
EYHN 873e6faef2 chore: bump @blocksuite/icons (#7749) 2024-08-06 05:32:19 +00:00
EYHN cd4e462d8c fix(core): transform workspace db when enable cloud (#7744) 2024-08-05 15:17:19 +00:00
EYHN e6e9f7d4c7 feat(core): enable feature flag for release (#7738) 2024-08-05 09:53:11 +00:00
EYHN f108b95704 feat(core): tuning for better search (#7713) 2024-08-05 02:29:50 +00:00
EYHN ad26102815 fix(core): fix scroll block into view (#7712) 2024-08-05 02:29:49 +00:00
EYHN 05448f50af fix(core): wrong display of 404 page (#7711) 2024-08-02 10:40:58 +00:00
EYHN e54be7dc02 feat(core): loading ui for favorite and organize (#7700) 2024-08-02 07:17:01 +00:00
EYHN 553fbed60f feat(core): add globalcontext info to mixpanel track (#7681) 2024-08-01 09:29:31 +00:00
EYHN bb767a6cdc fix(component): modal overlap issue (#7691) 2024-08-01 08:03:21 +00:00
EYHN b343f975fb feat(core): add track events for sidebar (#7659) 2024-07-30 13:22:22 +00:00
EYHN ab92efcfc0 feat(core): improve mixpanel (#7652)
move @affine/core/utils/mixpanel -> @affine/core/mixpanel

now you can debug mixpanel on browser devtool

![CleanShot 2024-07-30 at 17.32.48@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/083c1286-39fd-4569-b4d2-e6e84cf2e797.png)
2024-07-30 13:22:17 +00:00
EYHN 482b5da02f fix(core): fix layout overflow (#7647) 2024-07-30 07:03:07 +00:00
EYHN 1b4d65fd64 fix(core): optimize sidebar tag performance (#7633) 2024-07-29 09:57:40 +00:00
EYHN a0cbf05da8 fix(core): sidebar renaming bug (#7632) 2024-07-29 09:57:37 +00:00
EYHN 0472ffe569 feat(core): support sidebar collapse (#7630) 2024-07-29 09:57:33 +00:00
EYHN e6f0847ec3 fix(core): make indexer faster (#7629) 2024-07-29 06:43:13 +00:00
EYHN 6bc5337307 refactor(core): adjust modal animation (#7606)
<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/529d6c3f-4b23-43ac-84cc-171713d3dc72.mp4">CleanShot 2024-07-25 at 20.04.01.mp4</video>

When a modal is closed, sometimes its components are completely unmounted from the component tree, making it difficult to animate. This pr defining a custom element as the container of ReactDOM.portal, rewriting the `removeChild` function, and use `startViewTransition` when ReactDOM calls it to implement the animation.

# Save Input

Some inputs use blur event to save data, but when they are unmounted, blur event will not be triggered at all. This pr changes blur event to native addEventListener, which will be called after the DOM element is unmounted, so as to save data in time.
2024-07-26 08:39:34 +00:00
EYHN 3eb09cde5e feat(core): new favorite (#7590) 2024-07-26 08:15:32 +00:00
EYHN 54da85ec62 feat(core): init organize (#7456) 2024-07-26 04:35:32 +00:00
EYHN 549e7befed fix(core): stuck when quick switch doc mode (#7599) 2024-07-25 12:21:21 +00:00
EYHN 98281a6394 refactor(component): adjust confirm modal api (#7589) 2024-07-24 08:18:33 +00:00
EYHN 6ca7c41861 fix(component): button icon color (#7588) 2024-07-24 08:03:02 +00:00
EYHN 9fe77baf05 feat(infra): better orm (#7502) 2024-07-18 10:14:12 +00:00
EYHN 063c206289 chore: bump blocksuite (#7489) 2024-07-15 07:58:26 +00:00
EYHN 7103b2e594 feat(component): new dnd api (#7467) 2024-07-15 04:00:42 +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
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
EYHN c2f93f9512 fix(infra): failed to get status when database not ready (#7470) 2024-07-11 06:40:35 +00:00
EYHN aab9925aa1 feat(core): adjust search strategy (#7447) 2024-07-09 04:27:34 +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
EYHN 3870801ebb feat(infra): job system (#7212) 2024-07-02 09:17:40 +00:00
EYHN 90e4a9b181 feat: doc search infra (#7166)
detail in `packages/common/infra/src/sync/indexer/README.md`
2024-07-02 08:52:33 +00:00
EYHN 3f8fe5cfae fix(infra): override saved blocksuite feature flag (#7399) 2024-07-01 11:36:32 +00:00
EYHN 3bbb657a78 feat(core): replace ai template (#7396) 2024-07-01 10:24:54 +00:00
EYHN 39acb51d87 feat(core): adjust orm api (#7392)
Removed the `connect` and `disconnect` functions on the orm `DBAdapter`, making the ORM completely non-asynchronous.
2024-07-01 09:32:15 +00:00
EYHN 824be0d4c1 fix(core): fix viewtransition and css property missing (#7377) 2024-06-28 18:03:43 +08:00
EYHN eca484dc28 fix(core): add loading for insert ai template (#7369) 2024-06-28 14:19:59 +08:00
EYHN c6c4ed9711 fix(infra): recover deleted item in orm (#7359) 2024-06-27 17:58:47 +08:00
EYHN 3b3b7ec054 chore: bump blocksuite (#7360) 2024-06-27 17:53:42 +08:00
EYHN 33bb2b5fcd feat(infra): use yjs mergeupdate for performance (#7343) 2024-06-27 08:14:17 +00:00
EYHN e892d55134 test: add test for undo empty page (#7348) 2024-06-27 06:18:16 +00:00
EYHN a7ea74923a fix(templates): use url safe base64 in templates (#7354) 2024-06-27 03:44:14 +00:00
EYHN 595b904d24 fix(core): fix ui flickering on startup (#7349) 2024-06-27 03:33:14 +00:00
EYHN dcf766f0ee feat(core): impl ai onboarding templates (#7341) 2024-06-26 13:49:23 +00:00
EYHN 092c639b0a fix(core): optimize performance when editing doc title (#7328) 2024-06-26 07:37:26 +00:00
EYHN ad746b6376 fix(core): fix error overflow (#7335) 2024-06-26 07:25:29 +00:00
EYHN 2d74e4c340 fix(core): fix the page loading style (#7336) 2024-06-26 06:20:20 +00:00
EYHN a93364af01 fix(templates): update stickers (#7320) 2024-06-25 03:46:24 +00:00
EYHN 820ecba7cc fix(core): skip flaky test (#7319) 2024-06-25 03:34:15 +00:00
EYHN 6865a52172 chore: bump blocksuite (#7300)
## Features

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7392 @doouding
- https://github.com/toeverything/BlockSuite/pull/7391 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7387 @zzj3720

## Refactor

## Misc
2024-06-21 09:05:46 +00:00
EYHN b4212d54ed chore(core): delete center peek feature flag (#7281) 2024-06-20 04:24:47 +00:00
EYHN ab3d6c9cc8 fix(infra): update load test result empty (#7282) 2024-06-20 12:24:12 +08:00
EYHN e8fdce514f chore: bump blocksuite (#7280)
## Features
- https://github.com/toeverything/BlockSuite/pull/7377 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7374 @Flrande

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7381 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7379 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7373 @doouding

## Refactor

## Misc
2024-06-20 03:52:20 +00:00
EYHN 7c0a686cd9 refactor(i18n): new hook api (#7273)
# NEW HOOK API

`useI18n`: same as `useAFFiNEI18N`, with additional APIs

```ts
import { useI18n } from '@affine/i18n'

const i18n = useI18n()
i18n['hello world']() -> 你好世界
```

# NEW GLOBAL i18n Instance

`I18n`: use i18n capabilities outside of React

```ts
import { I18n } from '@affine/i18n'

I18n['hello world']() -> 你好世界
```

# NEW TYPES

`I18nKeys` -> all i18n keys

`I18nString` -> An i18n message (key&options)
transfer and store i18n text outside of React
```ts
const msg: I18nString = {
  key: 'helloworld',
  options: {
    arg1: '123'
  }
}

I18n.t(msg) -> 你好世界123
```

before:

```ts
registerCommand('open-page', {
  name: t('command.open-page')
  // ^- translation happens here,
})
```

after:

```ts
registerCommand('open-page', {
  name: { key: 'command.open-page' }
  // ^- store I18nString here, translate when the command render to UI
})
```
2024-06-20 02:19:41 +00:00
EYHN bcc66422fd refactor(i18n): i18n utils tools (#7251) 2024-06-19 07:38:20 +00:00
EYHN 390852f8be chore(server): lint ignore error gen file (#7245) 2024-06-18 08:48:19 +00:00
EYHN 98258b0211 feat(core): show sync state at doc info (#7244) 2024-06-18 08:35:22 +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
EYHN ef01b6255e fix(core): template image assets missing (#7171)
fix TOV-910
2024-06-08 17:28:24 +00:00
EYHN b34cfe6c7f feat(core): enable synced doc block by default (#7176)
fix AFF-1244
2024-06-08 16:48:25 +00:00
EYHN f20b78b824 fix(core): ui flash when open setting modal (#7170)
fix TOV-909
2024-06-07 04:27:13 +00:00
EYHN d791ab73ba fix(core): fix active view undefined (#7161) 2024-06-06 07:53:37 +00:00
EYHN 6abb401a2c fix(core): remove extra console log (#7160) 2024-06-06 07:39:59 +00:00
EYHN c8242fc066 refactor(core): remove unused trash relate data (#7142)
This parameter seemed to always be undefined, I decided to remove it.
2024-06-05 03:13:15 +00:00
EYHN 84c79f4dcf fix(core): move to trash confirm modal missing (#7143)
move `MoveToTrash.ConfirmModal` from `RootAppSidebar ` to `CurrentWorkspaceModals `
2024-06-05 03:01:14 +00:00
EYHN f67108c6f7 fix(core): fetch share docs on non-cloud workspace (#7144) 2024-06-04 09:45:35 +00:00
EYHN b356ddbe6e fix(core): fix ui flashing (#7056) 2024-05-27 08:05:20 +00:00
EYHN 306cf2ae6f fix(core): unexpected re-render in edgeless (#7077) 2024-05-27 07:52:00 +00:00
EYHN a440e85ffe chore: bump blocksuite (#7075)
## Features
- toeverything/blocksuite#6937 @Flrande

## Bugfix
- toeverything/blocksuite#7137 @fundon
- toeverything/blocksuite#7126 @golok727
- toeverything/blocksuite#7128 @CatsJuice
- toeverything/blocksuite#7130 @fundon

## Refactor

## Misc
- toeverything/blocksuite#7131 @fundon

## Additional changes

Adjust the awareness provider so that it only obtains awareness instances when connect, and fixes the dependencies between workspace components.
2024-05-27 05:11:12 +00:00
EYHN d5c93f10ac fix(core): cant leave workspace (#6999) 2024-05-21 03:41:03 +00:00
EYHN 7fddd14f72 fix(core): fix active view with mouse (#6994) 2024-05-20 08:19:53 +00:00
EYHN 4ebe8f5fb4 chore(core): improve export snapshot tool (#6863) 2024-05-13 04:00:47 +00:00
EYHN f5dceda0cc fix(core): mixpanel error when opt-out (#6861) 2024-05-10 03:58:45 +00:00
EYHN 8d8bd49600 chore(infra): remove compatible code (#6833) 2024-05-08 09:06:33 +00:00
EYHN e00c697694 fix(core): windows app controls missing (#6832)
fix #6825
2024-05-08 08:17:37 +00:00
EYHN 35ce4adffe fix(core): fix error when server not support ai (#6796) 2024-05-07 08:25:27 +00:00
EYHN 61d0e14c8b fix(core): fix too many subscription request (#6809) 2024-05-07 07:07:28 +00:00
EYHN 4751081919 chore: fix blocksuite changelog commit range (#6791) 2024-05-07 06:43:54 +00:00
EYHN cb3e7d03dc chore: bump blocksuite (#6786)
## Features
- https://github.com/toeverything/BlockSuite/pull/6968 @fundon

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6969 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/6967 @pengx17

## Refactor
- https://github.com/toeverything/BlockSuite/pull/6970 @fundon

## Misc
2024-05-07 03:03:14 +00:00
EYHN 527ffa6b3f feat(core): adjust ai term (#6770) 2024-05-06 06:47:06 +00:00
EYHN 94c8662ac1 feat(core): disable ai onboarding video loop (#6769) 2024-05-06 06:47:01 +00:00