CatsJuice
4f718cffbf
feat(core): subscribe changed notification and typeform link ( #7522 )
2024-07-18 04:20:21 +00:00
CatsJuice
b9d84fe007
fix(core): select page modal's list is not visiable ( #7531 )
...
fix AF-1076

2024-07-18 04:06:02 +00:00
Cats Juice
ade8db2aec
fix(core): adjust app-sidebar z-index ( #7523 )
2024-07-17 18:10:08 +08:00
Cats Juice
07d4c476c2
fix(core): right-sidebar header radio-group's indicator is missing ( #7524 )
2024-07-17 18:09:48 +08:00
Cats Juice
db3533724b
fix(core): resolve unexpected forwardRef warning ( #7527 )
2024-07-17 18:08:59 +08:00
CatsJuice
08a0572d4e
fix(core): update pricing pages ( #7521 )
2024-07-17 08:01:13 +00:00
CatsJuice
242c41b440
feat(core): adjust center peek animation ( #7393 )
2024-07-15 06:36:24 +00:00
CatsJuice
7082f7ea7a
fix(core): share-button's label of shared page should be 'shared' ( #7486 )
...
close #7427
2024-07-15 06:21:22 +00:00
CatsJuice
c850dbb2b7
refactor(core): optimize abstraction of sidebar doc tree structure ( #7455 )
2024-07-11 06:24:45 +00:00
Cats Juice
22187f964a
fix(core): impl ai-island animation via css transform ( #7458 )
2024-07-09 16:17:55 +08:00
CatsJuice
13a2562282
feat(core): believer subscription UI ( #7431 )
...
feat(core): switch ai and cloud plans position
feat(core): impl lifetime subscription ui
feat(core): adapt ui for lifetime status
feat(core): add believer card in billing page
2024-07-08 08:31:22 +00:00
CatsJuice
d6ad7d566f
chore(core): adjust ai onboarding dismiss logic, persist dialog and dismiss once closed ( #7417 )
2024-07-04 07:00:17 +00:00
Cats Juice
fa2305b0e2
feat(core): replace all radio-button-group usage ( #7352 )
2024-06-27 17:54:30 +08:00
CatsJuice
827c952e9f
refactor(component): new Radio component ( #6910 )
...
# New `RadioGroup` component to replace `RadioButton`

### what's new
- [x] Change the API
- [x] More customizable options
- [x] Indicator animation
- [x] Dynamic width support(responsive)
- [x] Storybook
- [x] JSDoc
2024-06-27 06:04:19 +00:00
CatsJuice
b38c46649f
feat(core): adjust ai help island style and behavior, add animation ( #7310 )
...
- Move right-sidebar activeTab state into `RightSidebarService`
- Remove `styled` usage and adjust the UI
- Fix the issue that ai-button clicking not work when sidebar opened
- Add an animation if AI-Chat panel hasn't been opened.

2024-06-24 14:37:38 +00:00
CatsJuice
f24c0caaea
feat(core): add ai-usage info in sidebar user avatar menu ( #7294 )
2024-06-21 02:47:20 +00:00
CatsJuice
1fdfa834a0
feat(core): responsive detail page header ( #7263 )
2024-06-20 05:47:43 +00:00
CatsJuice
f9903fd748
fix(core): can't enter presentation again in share page ( #7262 )
...
Fix [TOV-916](https://linear.app/affine-design/issue/TOV-916/分享页面的-present-按钮在第二次进入演示模式时未生效 )
2024-06-19 09:21:23 +00:00
CatsJuice
98e35384a6
feat(component): helper function observeResize to observe size change via global ResizeObserver ( #7241 )
...
```ts
import { observeResize } from "@affine/component";
useEffect(() => {
const dispose = observeResize(element entry => {
console.log(entry.contentRect);
});
return () => dispose();
}, []);
```
2024-06-19 09:04:56 +00:00
CatsJuice
f4fdbbe6dd
feat(core): expose toggle ai onboarding apis ( #7039 )
...
```ts
import { toggleGeneralAIOnboarding } from '@affine/core/components/affine/ai-onboarding/apis';
// show
// toggleGeneralAIOnboarding();
toggleGeneralAIOnboarding(true);
// dismiss
toggleGeneralAIOnboarding(false);
```
2024-05-28 05:27:24 +00: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
CatsJuice
03104cd8b1
fix(component): ui storybook's doc page can not scroll ( #6909 )
2024-05-20 01:26:37 +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
CatsJuice
301586c0f4
fix(component): avoid close button of the notification being invisible in dark mode and bright bg ( #6946 )
2024-05-16 06:43:47 +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
CatsJuice
301cc188ca
fix(core): adjust ai onboarding copywriting and local onboarding actions ( #6834 )
2024-05-08 09:18:17 +00:00
CatsJuice
e7483c7914
fix(core): correct ai related copywritting ( #6799 )
2024-05-07 07:19:53 +00:00
CatsJuice
7234e2344b
feat(core): replace setting content scroll with radix ScrollArea ( #6787 )
...
Use global scroll-area style

2024-05-07 03:19:40 +00:00
CatsJuice
f02a16513c
fix(core): adjust setting sidebar's workspace avatar ( #6785 )
2024-05-07 02:51:33 +00:00
CatsJuice
4a74148ea3
fix(component): ensure the colorfulCallback of Avatar in different sizes behaves consistently ( #6784 )
2024-05-07 02:40:22 +00:00
CatsJuice
4aa7cafda3
fix(core): ai related copywritting fix ( #6766 )
2024-05-06 03:57:04 +00:00
CatsJuice
5e8fe28326
chore(core): replace ai onboarding videos ( #6730 )
2024-04-29 07:07:43 +00:00
CatsJuice
8d342f85ad
fix(core): workspace avatar hover radius ( #6717 )
2024-04-29 02:27:21 +00:00
CatsJuice
5b5c27b6ce
feat(core): add ai pricing tip for plans page ( #6704 )
2024-04-26 03:28:28 +00:00
CatsJuice
2a2b1cea28
feat(core): add indicator for general ai onboarding dialog ( #6687 )
2024-04-25 02:09:52 +00:00
CatsJuice
59214af3ad
fix(core): adjust payment related copywriting ( #6655 )
2024-04-24 16:05:09 +00:00
CatsJuice
6ec97b27c4
feat(core): open desktop directly in subscription landing page ( #6661 )
2024-04-22 14:21:58 +00:00
CatsJuice
e13024580d
feat(core): add ai subscription landing page ( #6657 )
2024-04-22 09:03:27 +00:00
CatsJuice
d7e08215d7
feat(core): show login modal if not logged in when using ai ( #6632 )
...

2024-04-22 03:26:01 +00:00
CatsJuice
13e2a3dbae
fix(core): remove sidebar user avatar menu item's rightArrow icon ( #6633 )
2024-04-19 13:47:28 +00:00
CatsJuice
7970d9b8c9
feat(core): add local ai onboarding dialog ( #6600 )
2024-04-18 15:48:20 +00:00
CatsJuice
9cb6dcd93d
feat(core): check user's subscription at ai onboarding stage ( #6608 )
2024-04-18 11:28:06 +00:00
CatsJuice
bb329944ed
feat(core): optimize ai onboarding trigger logic ( #6579 )
...
- don't open edgeless ai-onboarding dialog until general ai onboarding and setting modal closed
- clip edgeless ai onboarding thumb to avoid "black border"
- correct "try for free"
- replace edgeless ai onboarding lottie resources
2024-04-16 13:18:10 +00:00
CatsJuice
c222cf7b96
fix(core): wrong pricing state in billing ai card ( #6583 )
2024-04-16 13:07:23 +00:00
CatsJuice
b93e79c59d
feat(core): ai onboarding for edgeless mode ( #6556 )
2024-04-15 07:25:37 +00:00
CatsJuice
257e946d5d
feat(core): add ai onboarding ( #6544 )
2024-04-15 07:25:31 +00:00
CatsJuice
bb1294f425
fix(core): description of cancel is incorrect when cloud subscription is activated ( #6530 )
2024-04-15 02:54:41 +00:00
CatsJuice
6a535b94c3
feat(core): create and open cloud workspace if not exists after logged in ( #6511 )
...
Only execute when `initCloud=true` is specified in the URL search params.
2024-04-12 09:55:45 +00:00
CatsJuice
d40052c748
feat(core): add ai usage in account-setting ( #6516 )
2024-04-12 06:06:11 +00:00
CatsJuice
8a02c81745
feat(core): remove toggle workspace onboarding dialog ( #6501 )
2024-04-10 09:07:59 +00:00
CatsJuice
a0c92b9966
feat(core): i18n for pricing plans ( #6499 )
...
feat(core): adjust pricing plans style
feat(core): i18n for pricing plans
2024-04-10 08:09:14 +00:00
CatsJuice
4a93582799
feat(core): ai subscription in billing page ( #6476 )
2024-04-09 08:54:54 +00:00
CatsJuice
803b17ae78
style(component): remove button's shadow ( #6481 )
2024-04-09 03:06:28 +00:00
CatsJuice
d9504e4eb7
fix(core): avoid flicking when click sidebar user avatar ( #6482 )
2024-04-09 02:52:51 +00:00
CatsJuice
3e9e2ce93b
feat(core): pricing plans ai subscription ui ( #6449 )
2024-04-03 08:04:30 +00:00
CatsJuice
381be8a982
fix(component): useConfirmModal can't be closed automatically when 'onConfirm' is non-async ( #6439 )
2024-04-02 08:23:27 +00:00
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
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

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
CatsJuice
506efdf02c
feat(core): make the synchronous animation trigger less frequently ( #6412 )
2024-03-30 08:11:05 +00:00
CatsJuice
f1c70d5df0
fix(core): reload user session after signing out ( #6381 )
2024-03-29 03:47:18 +00:00
CatsJuice
605a5abee8
fix(core): user info should be updated when session reloaded ( #6382 )
2024-03-29 03:25:13 +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
CatsJuice
d14552b5af
fix(core): sidebar workspace list can't scroll on mobile ( #6370 )
2024-03-29 01:25:13 +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
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
CatsJuice
a3cc06f3bb
fix(core): optimize sidebar workspace card and avatar ( #6324 )
...
- adjust avatar size
- unlogged avatar dark-mode
- fix Tooltip console error
- optimize syncing status animation
2024-03-27 03:29:01 +00:00
CatsJuice
0731872347
feat(core): refactor sidebar header ( #6251 )
...
- Add user avatar
- Move sign-out/user settings link from workspace-modal to user avatar modal
- Modify the style of workspace list items
- Modify gap of navigation buttons
- Animate Syncing/Offline/...

2024-03-26 06:10:38 +00:00
CatsJuice
b2f34d17a2
feat(core): adjust app sidebar's style ( #6162 )
2024-03-25 10:25:48 +00:00
EYHN
e1cfa1071e
chore(core): align sidebar icons ( #6219 )
2024-03-20 17:15:13 +00:00
EYHN
e4e4a54d90
fix(core): resize-handle remains interactive when dragging split-view ( #6217 )
2024-03-20 16:56:17 +00:00
Brooooooklyn
32ab0693e2
feat(core): update split view icons and texts ( #6193 )
2024-03-20 14:30:35 +00:00
Cats Juice
ee75b468e6
fix(core): shared page's present button not working ( #6117 )
2024-03-15 03:32:37 +00:00
Cats Juice
7fdb1f2d97
feat(core): adjust split view ui ( #6076 )
2024-03-14 06:41:29 +00:00
Cats Juice
358e1e99c5
feat(core): set journal's really created time ( #5968 )
...
closes #5958 ;
This makes the creation date of the journal correspond to the date, and the creation time is the real creation time.
2024-03-05 03:37:23 +00:00
Cats Juice
2275eee5b2
feat(core): resize and reorder split-view ( #5994 )
2024-03-04 11:19:39 +00:00
Cats Juice
aaf048fcb8
chore(core): update journal's daily count label ( #5967 )
...
[tov-568](https://linear.app/affine-design/issue/TOV-568/journal-聚合的部分的名称需要修改一下 )
2024-02-29 13:50:09 +00:00
Cats Juice
390fb90a8b
feat(core): ignore empty journal for global useBlockSuitePageMeta hook ( #5715 )
...
[TOV-494](https://linear.app/affine-design/issue/TOV-494/空-journal-的隐藏处理 )
2024-02-22 08:09:33 +00:00
Cats Juice
67dffc2a5a
feat(component): remove react-datepicker ( #5681 )
2024-02-21 13:09:44 +00:00
Cats Juice
ed0d67ee56
fix(component): nowrap inline-edit ( #5844 )
2024-02-21 10:03:05 +00:00
Cats Juice
3fe9d834de
feat(core): replace page filter, journal's date-picker with new one ( #5675 )
2024-02-20 13:53:41 +00:00
Cats Juice
e664494b2f
refactor(component): new calendar-view DatePicker ( #5654 )
2024-02-20 13:53:37 +00:00
Cats Juice
5f3c04b51e
fix(core): set createDate to journal's date when journal created ( #5701 )
2024-01-30 23:11:07 +08:00
Cats Juice
6b350b1735
feat(core): append to today's joruanl via CMDK ( #5692 )
2024-01-30 23:08:25 +08:00
Cats Juice
387e292ed9
fix(core): journal title's day tag may be invalid ( #5703 )
...
Fix [TOV-470](https://linear.app/affine-design/issue/TOV-470/journal-invalid-date )
2024-01-26 07:55:35 +00:00
Cats Juice
6ca2043697
feat(component): optimize week-date-picker keyboard navigation ( #5684 )
2024-01-26 07:05:19 +00:00
Cats Juice
e7307d969c
chore(core): remove journal experimental flag ( #5698 )
2024-01-25 05:33:57 +00:00
Cats Juice
9aa421d5e1
fix(core): modify journal page title today style, add weekday tag ( #5687 )
...
fix [TOV-434](https://linear.app/affine-design/issue/TOV-434/修改-journal-中-「today」的字体大小和日期-title-大小 )
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/toeverything/AFFiNE/assets/39363750/ac0ab085-5ff7-4d27-a0b1-11d97fdd8074 ">
<img width="100%" alt="" src="https://github.com/toeverything/AFFiNE/assets/39363750/3b311130-ded2-4651-badd-65dd059b7bc5 ">
</picture>
2024-01-24 13:07:20 +00:00
Cats Juice
3f96b9778f
fix(core): change journal header week-date-picker's max-width ( #5688 )
...
Fix [TOV-444](https://linear.app/affine-design/issue/TOV-444/修改-journal-date-picker-max-width )
2024-01-24 12:54:34 +00:00
Cats Juice
8300df4a26
fix(core): correct typo in onboarding 'get start' ( #5666 )
2024-01-23 04:54:22 +00:00
Cats Juice
6c8621bdcd
chore(core): bump @toeverything/theme, add cssVar use case ( #5667 )
2024-01-23 04:39:07 +00:00
Cats Juice
45cc75a814
ci(component): deploy ui storybook ( #5655 )
2024-01-22 10:25:33 +00:00
Cats Juice
35e7b41ca8
fix(component): adjust the style of Switch to match the design ( #5636 )
...
closes #5635
2024-01-22 10:14:32 +00:00
Cats Juice
351f1b73b4
feat(core): add journal entrance for app-sidebar ( #5579 )
2024-01-18 14:40:35 +00:00