CatsJuice
9eae3de1ae
fix(mobile): scroll optimization ( #8362 )
...
close AF-1421, AF-1418, AF-1423, AF-1358
2024-09-24 03:51:09 +00: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
Cats Juice
c87a392f29
fix(component): confirm modal should not clip content ( #8325 )
2024-09-20 07:38:15 +00:00
Cats Juice
a6c2f5dcd5
fix(component): correct notification action hover style ( #8303 )
2024-09-19 15:18:19 +08:00
Cats Juice
a38f291a01
fix(core): adjust pop position of editing property menu in setting ( #8308 )
2024-09-19 15:17:53 +08:00
CatsJuice
0450fcea8b
fix(core): sidebar scrollbar is coverd by resize handle ( #8307 )
...
close AF-1236
2024-09-19 06:25:08 +00:00
CatsJuice
ce2ce26395
chore(core): reduce unnecessary layers ( #8292 )
...

2024-09-19 01:48:32 +00:00
CatsJuice
f4a19921c4
feat(core): extract DocDisplayMetaService to resolve doc icon/title ( #8226 )
...
AF-1315
2024-09-19 01:25:02 +00:00
CatsJuice
8bf0458ef4
fix(mobile): remove all focus style for link and button ( #8208 )
2024-09-12 03:07:31 +00:00
CatsJuice
b7d05d2078
feat(core): new empty states for doc/collection/tag ( #8197 )
...
AF-1329, AF-1330
2024-09-11 10:48:52 +00:00
CatsJuice
81ab8ac8b3
feat(mobile): pwa and browser theme-color optimization ( #8168 )
...
[AF-1325](https://linear.app/affine-design/issue/AF-1325/优化-pwa-体验 ), [AF-1317](https://linear.app/affine-design/issue/AF-1317/优化:-pwa-的顶部-status-bar-颜色应与背景保持一致 ), [AF-1318](https://linear.app/affine-design/issue/AF-1318/优化:pwa-的底部应当有符合设备安全高度的padding ), [AF-1321](https://linear.app/affine-design/issue/AF-1321/更新一下-fail-的-pwa-icon )
- New `<SafeArea />` ui component
- New `useThemeColorV1` / `useThemeColorV2` hook:
- to modify `<meta name="theme-color" />` with given theme key
2024-09-11 02:20:59 +00:00
CatsJuice
87ed358f2e
fix(mobile): adjust mobile ui ( #8112 )
...
close AF-1274, AF-1320, AF-1333
2024-09-06 13:40:10 +00:00
CatsJuice
03c2051926
feat(component): startScopedViewTranstion func to support scoped view transition ( #8093 )
...
AF-1293
2024-09-05 06:45:29 +00:00
CatsJuice
73dd1d3326
fix(mobile): fixed all docs header, remove doc card tags layout strategy ( #8104 )
...
close AF-1326
2024-09-05 06:29:18 +00:00
CatsJuice
06552a1120
fix(mobile): explorer node touch optimization ( #8101 )
...
close AF-1338
2024-09-05 02:18:28 +00:00
CatsJuice
51bc40d2a8
fix(mobile): header will be clipped when modal opened and page scrolled ( #8079 )
...
close AF-1332
This issue is caused by radix, it will set `overflow: hidden` to body when modal opened. And header is implemented with `position: sticky`.
> **why not use `position: fixed` for header?**
>
> We need to handle `padding-top` manually to avoid content covered by header.
2024-09-04 09:36:18 +00:00
CatsJuice
0d6f468385
fix(component): nested modal view-transition support ( #8073 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/LakojjjzZNf6ogjOVwKE/b8033923-8f08-4c72-96b6-d790fc0ff703.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/LakojjjzZNf6ogjOVwKE/b8033923-8f08-4c72-96b6-d790fc0ff703.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/b8033923-8f08-4c72-96b6-d790fc0ff703.mp4 ">CleanShot 2024-09-03 at 18.36.17.mp4</video>
2024-09-04 01:29:22 +00:00
CatsJuice
ec3b97d069
fix(component): replace storybook-dark-mode with globalTypes toolbar impl ( #8066 )
2024-09-03 15:18:24 +00:00
CatsJuice
ad110078ac
feat(mobile): setting page ui ( #8048 )
...
AF-1275
2024-09-03 03:27:18 +00:00
CatsJuice
f1bb1fc9b8
feat(mobile): search page ui ( #8012 )
...
feat(mobile): search page ui
fix(core): quick search tags performance issue
2024-08-29 09:05:23 +00:00
CatsJuice
3ce92f2abc
feat(mobile): all docs page ui impl ( #7976 )
2024-08-29 06:09:48 +00:00
CatsJuice
db76780bc9
feat(mobile): mobile index page UI ( #7959 )
2024-08-29 06:09:47 +00:00
CatsJuice
f37051dc87
feat(core): mobile renderer for explorer ( #7942 )
2024-08-29 06:09:45 +00:00
Cats Juice
23b0db36b9
feat(component): mobile menu support ( #7892 )
2024-08-21 09:05:05 +00:00
CatsJuice
a43c34feec
fix(core): onboarding switch active state is invisible ( #7928 )
...
close AF-1262
2024-08-21 06:17:31 +00:00
CatsJuice
c9a1a8c3b2
feat(component): access enviroment in components storybook ( #7891 )
...
close AF-1247
2024-08-21 06:04:39 +00:00
CatsJuice
a49b92e4c8
feat(core): adjust sidebar style, add github & learn more ( #7864 )
...
close AF-1202
2024-08-21 05:48:04 +00:00
CatsJuice
cfc367efe7
feat(component): add more customizable prop for radio-group with new story ( #7850 )
...

2024-08-16 07:19:16 +00:00
CatsJuice
6228b27271
feat(core): new theme editor poc ( #7810 )
2024-08-12 04:12:51 +00:00
CatsJuice
75e02bb088
feat(core): rewrite page-mode-switch with RadioGroup, bind hotkey with cmdk ( #7758 )
...
close AF-1170
- bump `@toeverything/theme`
- refactor page-mode-switch
- use global `<RadioGroup />`
- reuse for doc history
- remove `styled` usage
- bind hotkey via cmdk
- Update `<RadioGroup />` color scheme with latest design system
- Update right sidebar header tab style
- Update tooltip with shortcut for app nav button
2024-08-12 03:56:56 +00:00
Cats Juice
06d5d9719c
fix(core): wrong color of ai-subscribe button ( #7816 )
2024-08-09 09:44:09 +00:00
Cats Juice
f8e51112aa
fix(core): sidebar renaming menu pos ( #7798 )
2024-08-09 17:06:55 +08:00
Cats Juice
e8d5692062
fix(core): sidebar unauthorized user avatar should center vertically ( #7812 )
2024-08-09 16:52:29 +08:00
CatsJuice
26fd9a4a1c
feat(component): add autoFocusConfirmButton for confirm-modal ( #7801 )
...
close #5813
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/LakojjjzZNf6ogjOVwKE/aff35b76-9f73-4d15-b2cb-c25b03e2e2c3.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/LakojjjzZNf6ogjOVwKE/aff35b76-9f73-4d15-b2cb-c25b03e2e2c3.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/aff35b76-9f73-4d15-b2cb-c25b03e2e2c3.mp4 ">CleanShot 2024-08-09 at 11.25.46.mp4</video>
2024-08-09 05:50:22 +00:00
CatsJuice
03fd23de39
fix(core): cloud s subscription resume button's content is blank ( #7783 )
2024-08-08 08:43:05 +00:00
CatsJuice
c8f4766ceb
fix(component): center button's icon vertically ( #7775 )
...
close AF-1211
2024-08-07 09:31:23 +00:00
CatsJuice
75a308ac79
fix(core): optimize explorer's dnd behaviors ( #7769 )
...
close AF-1198, AF-1169, AF-1204, AF-1167, AF-1168
- **fix**: empty favorite cannot be dropped(AF-1198)
- **fix**: folder close animation has a unexpected delay
- **fix**: mount explorer's DropEffect to body to avoid clipping(AF-1169)
- **feat**: drop on empty organize to create folder and put item into it(AF-1204)
- **feat**: only show explorer section's action when hovered(AF-1168)
- **feat**: animate folder icon when opened(AF-1167)
- **chore**: extract dnd related `dropEffect`, `canDrop` functions outside component
2024-08-07 08:29:19 +00:00
CatsJuice
5938d8b259
feat(core): add tooltip and toast for organize operations ( #7725 )
...
close AF-1138, AF-1139, AF-1165
2024-08-06 02:07:10 +00:00
CatsJuice
6d253c0600
fix(core): add favorite folder in menu, adjust empty-page new page button ( #7730 )
...
close AF-1150, AF-1128, AF-1131
- Replace favorite migration related copy
- Adjust empty page's "New Page" button

- Add toggle favorite to folder menu

- Adjust `Button`
- add `withoutHover` state
- remove cursor: not-allowed when disabled
2024-08-05 09:15:17 +00:00
CatsJuice
249f3471c9
feat(component): shortcut style for tooltip ( #7721 )
...

- New `shortcut` prop for `<Tooltip />`
- single key
```tsx
<Tooltip shortcut="T" />
```
- multiple
```tsx
<Tooltip shortcut={["⌘", "K"]} />
```
- Round tooltip's arrow
- Use new design system colors
- Replace some usage
- App sidebar switch
- Editor mode switch
- New tab (new)
2024-08-05 02:57:24 +00:00
CatsJuice
3d855647c7
refactor(component): refactor the implementation of Button and IconButton ( #7716 )
...
## Button
- Remove props withoutHoverStyle
refactor hover impl with independent layer, so that hover-color won't affect the background even if is overridden outside
- Update `type` (renamed to `variant`):
- remove `processing` and `warning`
- rename `default` with `secondary`
- Remove `shape` props
- Remove `icon` and `iconPosition`, replaced with `prefix: ReactNode` and `suffix: ReactNode`
- Integrate tooltip for more convenient usage
- New Storybook document
- Focus style
## IconButton
- A Wrapper base on `<Button />`
- Override Button size and variant
- size: `'12' | '14' | '16' | '20' | '24' | number`
These presets size are referenced from the design system.
- variant: `'plain' | 'solid' | 'danger' | 'custom'`
- Inset icon via Button 's prefix
## Fix
- fix some button related issues
- close AF-1159, AF-1160, AF-1161, AF-1162, AF-1163, AF-1158, AF-1157
## Storybook

2024-08-05 02:57:23 +00:00
CatsJuice
e60b2d64e5
fix(core): new no children status for explorer ( #7686 )
...
close AF-1140
2024-08-01 09:41:13 +00:00
CatsJuice
8816d2a639
feat(core): adjust explorer section style, persist collapsable state ( #7679 )
...
close AF-1124,AF-1129,AF-1134,AF-1144
2024-08-01 09:41:09 +00:00
CatsJuice
ede576061d
fix(core): adjust sidebar explorer empty status ( #7657 )
...
Close AF-1126,AF-1132
2024-07-31 02:41:53 +00:00
CatsJuice
083123cdfb
fix(component): adjust renaming style ( #7654 )
2024-07-31 02:26:34 +00:00
CatsJuice
12a2f929f8
fix(component): stop renaming modal propagation & input auto focus ( #7653 )
...
close AF-1125
2024-07-31 02:26:30 +00:00
CatsJuice
c1b26473a9
chore(core): update sidebar all-docs icon ( #7626 )
...
close AF-1079
2024-07-31 02:13:02 +00:00
CatsJuice
5c62a2b2f5
feat(core): add doc/tag/collection to folders via menu ( #7631 )
...
close AF-993,AF-995,AF-997,AF-998
2024-07-29 07:30:20 +00:00
CatsJuice
b9c0119d2c
fix(core): adjust believer card dark mode style ( #7623 )
2024-07-29 07:15:17 +00:00
CatsJuice
214f5fa94d
fix(core): sidebar node content should ellipsis when overflowed ( #7627 )
2024-07-29 06:59:16 +00:00
Cats Juice
c63d007571
feat(core): add doc/collection/tag select hook ( #7593 )
2024-07-26 15:44:56 +08:00
CatsJuice
cb0d91facd
feat(core): support lifetime subscription from external link ( #7585 )
...
close AF-1101
2024-07-26 03:49:17 +00:00
CatsJuice
0617061c5b
fix(core): do not clip center-peek controls to make it appear more quickly ( #7572 )
...
fix AF-1084

2024-07-26 03:35:00 +00:00
CatsJuice
8646221ee8
feat(infra): add ability to mount nodes to nearest FrameworkScope root ( #7551 )
...

2024-07-26 03:19:27 +00:00
CatsJuice
22c36102b9
feat(core): move sidebar new page button beside quick-search ( #7578 )
...
close AF-1078
2024-07-26 03:04:10 +00:00
CatsJuice
a714961b20
feat(core): adjust subscription related mixpanel ( #7536 )
2024-07-26 02:49:15 +00:00
CatsJuice
11a2dc7d7f
feat(core): bump theme ( #7587 )
...
close AF-1108
2024-07-25 08:00:55 +00:00
CatsJuice
b1380ce81f
feat(core): adjust left-sidebar min-width to 248px ( #7575 )
...
close AF-1094
2024-07-24 02:43:25 +00:00
CatsJuice
091f5eec01
fix(core): remove hover state for ai-usage block in sidebar avtar menu ( #7573 )
...
fix AF-1059
2024-07-24 02:27:04 +00:00
CatsJuice
b0ad36425d
fix(core): beliver plan should not show cancel subscription ( #7576 )
...
fix AF-1097
2024-07-23 10:54:22 +00:00
Cats Juice
d7cc546f58
fix(core): correct believer plan copy ( #7571 )
2024-07-23 10:11:07 +08:00
CatsJuice
239de4c283
feat(core): reuse select-page for edit collection pages-mode ( #7548 )
2024-07-19 04:47:48 +00:00
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