EYHN
306cf2ae6f
fix(core): unexpected re-render in edgeless ( #7077 )
2024-05-27 07:52:00 +00:00
JimmFly
2d2a84927d
fix(core): unable to create blank lines correctly ( #7032 )
...
Close #7022
2024-05-27 07:40:14 +00:00
pengx17
8ed0ceb63e
fix: reset doc mode correctly ( #7071 )
...
it looks like a typo to me, but no obvious issue has been reported related to it?
2024-05-27 06:26:03 +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
pengx17
88d4351c28
feat: provide notification to bs ( #7002 )
...
upstream https://github.com/toeverything/blocksuite/pull/7101
fix AFF-1120
2024-05-24 10:36:50 +00:00
Chen
919e40f28e
feat: support more ai image actions ( #7027 )
2024-05-24 18:35:32 +08:00
Tao Chen
22a8a2663e
feat(server): add OIDC for AFFiNE ( #6991 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
Co-authored-by: DarkSky <darksky2048@gmail.com >
2024-05-24 00:35:30 +08:00
CatsJuice
d066da3e8a
fix(core): right sidebar's content is not centered when clientBorder enabled ( #7034 )
...
- before


- after

2024-05-23 02:42:01 +00:00
zzj3720
7a657b540b
feat(core): update blocksuite feature flag ( #7025 )
2024-05-22 09:03:24 +00:00
JimmFly
609766d898
refactor(core): replace history to ViewService.history ( #6972 )
...
upstream: #6966
2024-05-22 04:01:33 +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
regischen
01eff4ff20
chore: bump blocksuite ( #6975 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7085 @regischen
- https://github.com/toeverything/BlockSuite/pull/7077 @fourdim
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7087 @Mirone
- https://github.com/toeverything/BlockSuite/pull/7076 @donteatfriedrice
2024-05-20 01:38:18 +00:00
Flrande
35a6cf655b
feat(core): bump blocksuite ( #6965 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7052 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7072 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7073 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7062 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7066 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7061 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7058 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7060 @doouding
- https://github.com/toeverything/BlockSuite/pull/7051 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7054 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7023 @golok727
- https://github.com/toeverything/BlockSuite/pull/7022 @golok727
- https://github.com/toeverything/BlockSuite/pull/7047 @fundon
- https://github.com/toeverything/BlockSuite/pull/7043 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7041 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7038 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7040 @regischen
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7068 @doouding
- https://github.com/toeverything/BlockSuite/pull/7069 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7065 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7048 @fundon
- https://github.com/toeverything/BlockSuite/pull/7045 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7046 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7039 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7036 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7032 @Saul-Mirone
## Misc
- https://github.com/toeverything/BlockSuite/pull/7063 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7050 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7044 @doouding
- https://github.com/toeverything/BlockSuite/pull/7042 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6992 @doouding
2024-05-17 03:44:11 +00:00
JimmFly
10015c59b7
feat(core): add private anchor link for sharing ( #6966 )
...
close AFF-1085
2024-05-16 13:35:02 +00:00
darkskygit
a3f3d09764
feat: add upscaler & bg remover ( #6967 )
2024-05-16 11:09:34 +00:00
renovate
f37bbb0784
chore: bump up @sentry/react version to v8 ( #6919 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@sentry/react](https://togithub.com/getsentry/sentry-javascript/tree/master/packages/react ) ([source](https://togithub.com/getsentry/sentry-javascript )) | [`^7.109.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/@sentry%2freact/7.111.0/8.0.0 ) | [](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>getsentry/sentry-javascript (@​sentry/react)</summary>
### [`v8.0.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#800-rc3 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.114.0...8.0.0 )
##### Important Changes
- **feat(bun): Add Bun Global Unhandled Handlers ([#​11960](https://togithub.com/getsentry/sentry-javascript/issues/11960 ))**
The Bun SDK will now capture global unhandled errors.
##### Other Changes
- feat(node): Log process and thread info on initialisation ([#​11972](https://togithub.com/getsentry/sentry-javascript/issues/11972 ))
- fix(aws-serverless): Include ESM artifacts in package ([#​11973](https://togithub.com/getsentry/sentry-javascript/issues/11973 ))
- fix(browser): Only start `http.client` spans if there is an active parent span ([#​11974](https://togithub.com/getsentry/sentry-javascript/issues/11974 ))
- fix(feedback): Improve CSS theme variable names and layout ([#​11964](https://togithub.com/getsentry/sentry-javascript/issues/11964 ))
- fix(node): Ensure `execArgv` are not sent to worker threads ([#​11963](https://togithub.com/getsentry/sentry-javascript/issues/11963 ))
- ref(feedback): Simplify feedback function params ([#​11957](https://togithub.com/getsentry/sentry-javascript/issues/11957 ))
### [`v7.114.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.114.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0 )
##### Important Changes
- **fix(browser/v7): Continuously record CLS ([#​11935](https://togithub.com/getsentry/sentry-javascript/issues/11935 ))**
This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the
cases where it should have been reported. With this change, the CLS web vital should now always be reported for
pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported.
**Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.**
##### Other Changes
- build(aws-lambda/v7): Turn off lambda layer publishing ([#​11875](https://togithub.com/getsentry/sentry-javascript/issues/11875 ))
- feat(v7): Add `tunnel` support to multiplexed transport ([#​11851](https://togithub.com/getsentry/sentry-javascript/issues/11851 ))
- fix(opentelemetry-node): support `HTTP_REQUEST_METHOD` attribute ([#​11929](https://togithub.com/getsentry/sentry-javascript/issues/11929 ))
- fix(react/v7): Fix react router v4/v5 span names ([#​11940](https://togithub.com/getsentry/sentry-javascript/issues/11940 ))
### [`v7.113.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.113.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0 )
##### Important Changes
- **feat(node): Support Node 22 ([#​11754](https://togithub.com/getsentry/sentry-javascript/issues/11754 ))**
This release adds support for Node 22! 🎉
It also adds prebuilt-binaries for Node 22 to `@sentry/profiling-node`.
##### Other Changes
- feat(feedback): \[v7] New feedback button design ([#​11841](https://togithub.com/getsentry/sentry-javascript/issues/11841 ))
- feat(replay/v7): Upgrade rrweb packages to 2.15.0 ([#​11752](https://togithub.com/getsentry/sentry-javascript/issues/11752 ))
- fix(ember/v7): Ensure unnecessary spans are avoided ([#​11848](https://togithub.com/getsentry/sentry-javascript/issues/11848 ))
### [`v7.112.2`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.2 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.1...7.112.2 )
- fix(nextjs|sveltekit): Ensure we can pass `browserTracingIntegration` ([#​11765](https://togithub.com/getsentry/sentry-javascript/issues/11765 ))
### [`v7.112.1`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.1 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.112.0...7.112.1 )
- fix(ember/v7): Do not create rendering spans without transaction ([#​11750](https://togithub.com/getsentry/sentry-javascript/issues/11750 ))
### [`v7.112.0`](https://togithub.com/getsentry/sentry-javascript/releases/tag/7.112.0 )
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.111.0...7.112.0 )
##### Important Changes
- **feat: Export pluggable integrations from SDK packages ([#​11723](https://togithub.com/getsentry/sentry-javascript/issues/11723 ))**
Instead of installing `@sentry/integrations`, you can now import the pluggable integrations directly from your SDK
package:
```js
// Before
import * as Sentry fromv '@​sentry/browser';
import { dedupeIntegration } from '@​sentry/integrations';
Sentry.init({
integrations: [dedupeIntegration()],
});
// After
import * as Sentry from '@​sentry/browser';
Sentry.init({
integrations: [Sentry.dedupeIntegration()],
});
```
Note that only the functional integrations (e.g. `xxxIntegration()`) are re-exported.
##### Other Changes
- feat(replay): Add "maxCanvasSize" option for replay canvases ([#​11732](https://togithub.com/getsentry/sentry-javascript/issues/11732 ))
- fix(serverless): \[v7] Check if cloud event callback is a function ([#​11734](https://togithub.com/getsentry/sentry-javascript/issues/11734 ))
#### Bundle size 📦
| Path | Size |
| ---------------------------------------------------------------------------------- | ----------------- |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.72 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - Webpack (gzipped) | 71.69 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 75.91 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.32 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - Webpack (gzipped) | 35.62 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. browserTracingIntegration) - Webpack (gzipped) | 35.5 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Feedback) - Webpack (gzipped) | 31.57 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. sendFeedback) - Webpack (gzipped) | 31.58 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - Webpack (gzipped) | 22.78 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 78.9 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.27 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.02 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - ES6 CDN Bundle (gzipped) | 25.28 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.25 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.01 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) - ES6 CDN Bundle (minified & uncompressed) | 75.79 KB |
| [@​sentry/browser](https://togithub.com/sentry/browser ) (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.3 KB |
| [@​sentry/react](https://togithub.com/sentry/react ) (incl. Tracing, Replay) - Webpack (gzipped) | 72.18 KB |
| [@​sentry/react](https://togithub.com/sentry/react ) - Webpack (gzipped) | 22.81 KB |
| [@​sentry/nextjs](https://togithub.com/sentry/nextjs ) Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.01 KB |
| [@​sentry/nextjs](https://togithub.com/sentry/nextjs ) Client - Webpack (gzipped) | 54.15 KB |
| [@​sentry-internal/feedback](https://togithub.com/sentry-internal/feedback ) - Webpack (gzipped) | 17.32 KB |
</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 these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-05-16 10:06:35 +00:00
JimmFly
b8612f3071
refactor(core): replace the loading state written in useState with useDebouncedValue ( #6925 )
...
close TOV-856
refactor(core): replace the loading state written in useState with useDebouncedState
fix(core): cloudSvg obscures toggle button
2024-05-16 08:11:31 +00:00
CatsJuice
46140039d9
fix(core): local onboarding should dismiss after clicking learn more ( #6942 )
2024-05-16 07:41:49 +00:00
CatsJuice
6cef03c4c3
fix(core): adjust ai onboarding trigger logic, launch by auth status ( #6941 )
...
- if signed in, show ai-onboarding dialog
- if not signed in, show ai onboarding toast
2024-05-16 07:41:39 +00:00
pengx17
3cca879a83
refactor(electron): use sqlite to store server clock & sync meta ( #6957 )
...
After this PR, IDB should not be used in desktop any longer.
2024-05-16 06:31:05 +00:00
pengx17
27af9b4d1a
perf(electron): add index for updates ( #6951 )
...

Above image shows the performance on querying a 20k rows of updates table, which is super slow at 150+ms. After adding index for doc_id the performance should be greatly improved.
After:

fix TOV-866
2024-05-16 06:30:53 +00:00
JimmFly
a61ded3f25
fix(core): add affine.pro to trustedDomain ( #6943 )
2024-05-15 09:00:15 +00:00
JimmFly
f48cd0dfef
fix(core): unexpected history preview style ( #6944 )
...
close TOV-865
https://github.com/toeverything/AFFiNE/assets/102217452/3ca12496-b4d9-4caf-a30b-981b52a2f42f
2024-05-15 08:48:37 +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
pengx17
dd45c80cc4
chore: track doc create action in bs editor ( #6915 )
...
fix TOV-855
added shape element create & doc create event tracking in blocksuite editor.
What's still missing:
the control (source) that triggered whiteboard element creation, i.e., from canvas dbclick, dnd or pasting.
2024-05-14 05:35:08 +00:00
akumatus
261d413607
feat: history timeline shows relative time, such as today and yesterday ( #6864 )
...
### TL;DR
First, fixed an i18n issue in history panel. When the browser language is set to Chinese, and the AFFiNE application language is set to English, the language supposed to be English global. But now the language is a mixture of Chinese and English, which is obviously wrong.

Second, design a time formatter to convert timestamp into relative calendar date, such today and yesterday and so on. Long-ago edits will show the exact date like before.

### What changed?
- `new Intl.DateTimeFormat` with language option form `document.documentElement.lang`
- Added `timestampToCalendarDate` function to convert timestamp into relative calendar date
- Updated unit tests
- Updated i18n copywriting
### How to test?
1. Open view history version
2. Check edit timeline
2024-05-13 11:59:48 +00:00
JimmFly
b723dd8ab8
fix(core): the loading of cmdk flashes during synchronization ( #6907 )
...
close TOV-852
2024-05-13 09:11:39 +00:00
JimmFly
df6d0a2750
fix(core): navigation shortcut keys can't be used when the sidebar is collapsed ( #6903 )
...
close #6877
2024-05-13 07:15:40 +00:00
JimmFly
644bd8c817
fix(core): page does not fully stretch the entire screen ( #6902 )
...
close AFF-1054
https://github.com/toeverything/AFFiNE/assets/102217452/6e4447b7-380d-402b-9445-1c2d9c036363
2024-05-13 06:25:20 +00:00
EYHN
4ebe8f5fb4
chore(core): improve export snapshot tool ( #6863 )
2024-05-13 04:00:47 +00:00
JimmFly
f94306703a
feat(core): tag groups sorted alphabetically ( #6865 )
...
feat(core): tag groups sorted alphabetically
feat(core): add display group to collection page and tag page
<img width="755" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/17a5abbe-cd1a-4ce2-8adc-f9aa5b6d6e77 ">
2024-05-13 03:48:17 +00:00
pengx17
3e23878e0f
feat: add more tracking events ( #6866 )
...
Added most tracking events
what is missing:
- still need a way to track events in blocksuite
- some events may not 100% accurate of the one defined in the PRD
2024-05-13 03:36:32 +00:00
pengx17
8af064b663
fix: should not reset identity on app start ( #6895 )
2024-05-12 12:39:59 +00:00
JimmFly
b8a1fbd6c7
fix(core): add margin to scrollbar when clientBorder has no style ( #6867 )
...
close #6684
https://github.com/toeverything/AFFiNE/assets/102217452/9de18009-c718-4bdd-88fd-caafdb5b419c
2024-05-11 05:44:48 +00:00
EYHN
f5dceda0cc
fix(core): mixpanel error when opt-out ( #6861 )
2024-05-10 03:58:45 +00:00
donteatfriedrice
203459679c
feat: bump blocksuite ( #6852 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6995 @fundon
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7002 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7000 @regischen
- https://github.com/toeverything/BlockSuite/pull/7001 @fundon
- https://github.com/toeverything/BlockSuite/pull/6999 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6997 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6996 @regischen
- https://github.com/toeverything/BlockSuite/pull/6994 @L-Sun
## Refactor
## Misc
2024-05-10 03:46:10 +00:00
JimmFly
f4a422c0e9
fix(core): keep the delete button from being blocked ( #6836 )
...
close #6718
2024-05-09 08:26:32 +00:00
fundon
d8b3a0b6d5
fix: improve make it real action ( #6830 )
2024-05-09 08:15:34 +00:00
pengx17
917ad1965a
fix: mixpanel issues ( #6840 )
2024-05-09 07:50:15 +00:00
pengx17
3744a0a5e0
feat: handle login required tracking event ( #6831 )
2024-05-09 07:50:07 +00:00
CatsJuice
36575ca1b5
chore(core): adjust setting modal's size ( #6849 )
2024-05-09 07:38:07 +00:00
CatsJuice
9f432a04d4
fix(core): ai plan should show even user not signed in ( #6845 )
2024-05-09 07:26:27 +00:00
CatsJuice
960b906935
fix(core): avoid shaking when renaming doc in title bar ( #6847 )
...
- before

- after

2024-05-09 07:15:14 +00:00
JimmFly
291db7d809
feat(core): add untagged group to GroupBy view ( #6837 )
...
close #6688
<img width="743" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/9ffe3cac-0c73-4a8c-8567-8a315eed6548 ">
2024-05-09 02:30:52 +00:00
CatsJuice
301cc188ca
fix(core): adjust ai onboarding copywriting and local onboarding actions ( #6834 )
2024-05-08 09:18:17 +00:00
EYHN
8d8bd49600
chore(infra): remove compatible code ( #6833 )
2024-05-08 09:06:33 +00:00
JimmFly
87078ff706
fix(core): member list does not display names correctly ( #6835 )
...
close #6818
close AFF-1031
2024-05-08 08:54:11 +00:00
EYHN
e00c697694
fix(core): windows app controls missing ( #6832 )
...
fix #6825
2024-05-08 08:17:37 +00:00
Akumatus
4a032eb260
fix: modify experimental features to app-level ( #6823 )
2024-05-08 12:21:02 +08:00