CatsJuice
9127bfae67
refactor(core): replace all notification relies on jotai ( #6417 )
...
- remove all notification that implemented with jotai and replaced with new `notify`
- Add some notify presets:
- `notify.error`
- `notify.success`
- `notify.warning`
2024-04-02 03:19:07 +00:00
CatsJuice
a4cd51e503
refactor(component): new notification center implemented with sonner ( #6416 )
...
The Notification has been reimplemented using sooner, no longer relies on jotai, and new story has been added.
- Before
```ts
import { pushNotificationAtom } from '@affine/component/notification-center';
import { useSetAtom } from 'jotai';
export const Component = () => {
const pushNotification = useSetAtom(pushNotificationAtom);
pushNotification({ ... });
}
```
- After
```ts
import { notify } from "@affine/component";
export const Component = () => {
notify({ ... });
}
```
2024-04-02 03:18:57 +00:00
EYHN
80c7750f4a
fix(core): selfhost redirect url ( #6426 )
2024-04-01 13:26:39 +00:00
Taylor Hoffmann
94ea6a07b3
fix: broken links in README.md ( #6418 )
2024-04-01 17:12:15 +08:00
JimmFly
62d9b0c959
fix(core): unexpected editable state after trash page refresh ( #6433 )
...
close TOV-772
2024-04-01 08:16:17 +00:00
JimmFly
2631b41e6d
feat(core): add new doc button to collection page ( #6423 )
...
close TOV-64
You can add this document to the collection while creating a new document on the collection page.
<img width="790" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/828f80af-a1a5-47c2-98c2-a574cf79052c ">
2024-04-01 08:05:23 +00:00
EYHN
9c6eba8971
fix(electron): fix build script ( #6422 )
2024-04-01 07:51:35 +00:00
CatsJuice
f4e1e23120
feat(core): add cloud usage in sidebar avatar menu ( #6400 )
...
- Extract logic of getting cloud storage usage information into new hook
- Move `<StorageProgress />`: `component` → `core`
- Set minimum progress `0.5%`
- Add cloud usage progress bar in sidebar user avatar's dropdown
![CleanShot 2024-03-29 at 17.10.04@2x.png ](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/1fe9371a-a870-49a1-b4bb-b923c2fa4fe6.png )
2024-04-01 07:41:20 +00:00
CatsJuice
af2158cb0c
feat(core): compatible with multiple subscriptions ( #6277 )
2024-04-01 07:28:33 +00:00
pengx17
9381757982
fix(electron): wayland build ( #6404 )
...
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/4a064576-fcda-4a7c-b646-48d55cd118c0.png )
2024-04-01 07:14:49 +00:00
pengx17
23cb309714
fix: onboarding app should also setup app storage config ( #6427 )
2024-04-01 07:04:39 +00:00
JimmFly
e33ab170d7
fix(core): edit button missing in shared page ( #6398 )
2024-04-01 06:50:21 +00:00
pengx17
b15ae21c45
fix(electron): optimize bundle size by removing unused dependencies ( #6415 )
...
Should greatly reduce the size of helper.js and could speed up the time on starting the client app.
fix https://github.com/toeverything/AFFiNE/issues/6312
Before:
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/681d6766-7d48-4574-b791-49e2c0ae6e1b.png )
After:
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/ab13e624-7e03-407d-9538-3b9452694402.png )
2024-03-30 09:06:10 +00:00
CatsJuice
506efdf02c
feat(core): make the synchronous animation trigger less frequently ( #6412 )
2024-03-30 08:11:05 +00:00
pengx17
f41d587d65
chore: upgrade cmdk to 1.0.0 ( #6401 )
...
Also include the command score into our own repo for some tweaks.
Might fix https://github.com/toeverything/AFFiNE/issues/6322
2024-03-30 08:00:21 +00:00
Brooooooklyn
822bbb54a4
chore(core): add more telemetry ( #6402 )
2024-03-30 07:46:23 +00:00
EYHN
1c648c2425
test(infra): add test for livedata with react ( #6397 )
2024-03-29 07:10:40 +00:00
Brooooooklyn
c1eb7b657a
fix(templates): missing deps ( #6396 )
2024-03-29 06:56:52 +00:00
JimmFly
2576a69eb6
fix(core): unexpected response style of shared page ( #6383 )
2024-03-29 05:29:54 +00:00
pengx17
c7e10c2283
feat(core): fav item reordering ( #6302 )
2024-03-29 04:04:27 +00:00
pengx17
35af526eb2
feat: allow collections to be added to favorites ( #6288 )
2024-03-29 04:04:17 +00:00
pengx17
5490944d04
refactor(core): favorite adapter ( #6285 )
...
1. abstraction over favourites that supports different type of resources
2. sorting abstraction
2024-03-29 04:04:08 +00:00
LongYinan
296362ced1
ci: fix build frontend image step
2024-03-29 12:02:23 +08:00
CatsJuice
f1c70d5df0
fix(core): reload user session after signing out ( #6381 )
2024-03-29 03:47:18 +00:00
Brooooooklyn
c078f32a83
chore: bump Rust to 1.77 ( #6316 )
2024-03-29 03:45:59 +00:00
CatsJuice
605a5abee8
fix(core): user info should be updated when session reloaded ( #6382 )
2024-03-29 03:25:13 +00:00
pengx17
0abd24654d
fix(electron): appimage wayland support ( #6371 )
...
Turns out the only solution for now is to patch the AppRun script in the AppImage using https://github.com/toeverything/electron-forge-maker-appimage/blob/master/scripts/patch-apprun.sh
fix #6340 , fix #6252
Some references:
- https://github.com/audacity/audacity/issues/2498
- https://github.com/develar/app-builder/issues/104
2024-03-29 02:47:20 +00:00
CatsJuice
35715ab1d8
feat(core): sidebar local workspace enable cloud directly ( #6366 )
...
- Add a new hook `useEnableClould`, remove `<EnableAffineClouldModal />`
- Sidebar local workspace list item support enable AFFiNE Cloud
2024-03-29 02:08:09 +00:00
JimmFly
1a873ecf3c
feat(core): add shortcut for multi select docs ( #6318 )
...
close TOV-701
In All Doc, `Shift + Click` has been added to activate the multiple selection state.
2024-03-29 01:40:23 +00:00
darkskygit
0ce6401a6f
feat: update crawler rules ( #6369 )
2024-03-29 01:33:12 +00:00
CatsJuice
d14552b5af
fix(core): sidebar workspace list can't scroll on mobile ( #6370 )
2024-03-29 01:25:13 +00:00
Brooooooklyn
7cd75824a4
fix(core): use ResizeObserver polyfill ( #6360 )
...
- Close https://github.com/toeverything/AFFiNE/issues/6359
2024-03-28 10:48:22 +00:00
Brooooooklyn
c2847e2082
chore(core): split sentry and setup into web/electron ( #6357 )
2024-03-28 10:24:25 +00:00
JimmFly
88d04e23e9
feat(core): update i18n resources ( #6362 )
...
close TOV-769
<img width="712" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/902a0771-e8df-46e2-8d7c-1f453a7099e6 ">
2024-03-28 10:11:25 +00:00
Jo Kroese
7526dea705
docs: correct typos and improve grammar in README ( #6358 )
2024-03-28 17:14:44 +08:00
fundon
ef354f1643
fix(core): prevent frequent sign-in ( #6339 )
2024-03-28 07:35:32 +00:00
CatsJuice
8ed38d7c0d
fix(component): uppercase avatar letter fallback ( #6354 )
2024-03-28 07:24:11 +00:00
CatsJuice
fbe7a346c6
fix(core): adjust sidebar workspace card syncing tooltip style ( #6356 )
2024-03-28 07:13:27 +00:00
forehalo
f69649c922
ci: separate image build to a standalone workflow ( #6167 )
2024-03-28 04:02:13 +00:00
pengx17
e53744b740
fix: should use fullscreen to control where to place macos window controls ( #6351 )
2024-03-28 03:40:46 +00:00
EYHN
4e7652f108
fix(infra): fix white screen issue ( #6350 )
2024-03-28 02:12:25 +00:00
darkskygit
e24b6e4ddc
docs: update supported version ( #6344 )
2024-03-27 15:35:21 +00:00
EYHN
ba9dad95b4
fix(core): improve performance ( #6345 )
2024-03-27 14:01:54 +00:00
CatsJuice
710edd28db
feat(core): open restore history confirm modal with hook ( #6343 )
2024-03-27 13:30:36 +00:00
CatsJuice
d412635f6b
feat(component): new hook to open confirm modal ( #6342 )
...
new exports from `@affine/component`:
```ts
import { ConfirmModalProvider, useConfirmModal } from "@affine/component"
```
Open confirm modal with hook:
```ts
const Component = () => {
const { openConfirmModal } = useConformModal();
const open = () => {
openConfirmModal({
// props of ConfirmModal
/**
* will show loading state when confirm clicked, and close after onConfirm finished
*/
onConfirm: async () => {
await new Promise((r) => setTimeout(r, 2000));
},
});
}
return <Button onClick={open}>Open</Button>
}
```
2024-03-27 13:30:30 +00:00
Brooooooklyn
39facba92e
fix(core): opt out telemetry condition ( #6341 )
2024-03-27 08:37:15 +00:00
pengx17
d4c7d58b00
fix: use overflow: clip instead of js to prevent scrolling with pgup/pgdown ( #6338 )
2024-03-27 07:07:22 +00:00
pengx17
5ca17c155a
fix(core): editor pgup/pgdn issues ( #6331 )
...
fix https://github.com/toeverything/AFFiNE/issues/6232
2024-03-27 04:47:32 +00:00
Brooooooklyn
5dcb3d69e5
fix(core): opt out telemetry if it was set to false ( #6335 )
2024-03-27 04:36:09 +00:00
EYHN
30b8b12703
fix(infra): fix sqlite not save data ( #6336 )
...
SQLiteDB will not save subdoc data that does not exist on rootdoc, so we must save rootdoc first, and then save subdoc
2024-03-27 04:25:23 +00:00