L-Sun
33fc00f8c7
chore(core): set read-only mode on mobile device ( #7651 )
...
Close [BS-795](https://linear.app/affine-design/issue/BS-795/affine-mobile-设置只读模式 )
- Set read-only mode on mobile device
- Add mobile only support read-only warning toast
- remove `user-select: none` so that user can select text in read-only mode
2024-08-01 05:22:50 +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
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
EYHN
3eb09cde5e
feat(core): new favorite ( #7590 )
2024-07-26 08:15:32 +00:00
Cats Juice
c63d007571
feat(core): add doc/collection/tag select hook ( #7593 )
2024-07-26 15:44:56 +08:00
EYHN
54da85ec62
feat(core): init organize ( #7456 )
2024-07-26 04:35:32 +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
Cats Juice
d7cc546f58
fix(core): correct believer plan copy ( #7571 )
2024-07-23 10:11:07 +08:00
CatsJuice
4f718cffbf
feat(core): subscribe changed notification and typeform link ( #7522 )
2024-07-18 04:20:21 +00:00
CatsJuice
08a0572d4e
fix(core): update pricing pages ( #7521 )
2024-07-17 08:01:13 +00:00
forehalo
2f441d9335
chore: clean up runtime flags and envs ( #7454 )
2024-07-11 02:05:31 +00:00
JimmFly
e6818b4f14
feat(core): add doc info modal ( #7409 )
...
close AF-1038
close AF-1039
close AF-1040
close AF-1046
A popup window has been added to facilitate viewing of this doc's info in edgeless mode and other modes.
https://github.com/toeverything/AFFiNE/assets/102217452/d7f94cb6-7e32-4ce7-8ff4-8aba1309b331
2024-07-09 07:05:20 +00: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
forehalo
de91027852
feat(server): support lifetime subscription ( #7405 )
...
closes CLOUD-48
- [x] lifetime subscription quota
- [ ] tests
2024-07-08 07:41:26 +00:00
pengx17
5c1f78afd4
fix: invalid date handling ( #7422 )
...
fix AF-1049
2024-07-04 07:11:19 +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
eca484dc28
fix(core): add loading for insert ai template ( #7369 )
2024-06-28 14:19:59 +08:00
CatsJuice
f24c0caaea
feat(core): add ai-usage info in sidebar user avatar menu ( #7294 )
2024-06-21 02:47: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
JimmFly
6c3e13316e
feat(i18n): update resources and add Swedish language ( #7247 )
...
close AFF-1279
2024-06-19 02:47:05 +00:00
EYHN
98258b0211
feat(core): show sync state at doc info ( #7244 )
2024-06-18 08:35:22 +00:00
pengx17
3464e30229
fix: quick search placeholder for docs search ( #7175 )
...
fix AFF-1236
2024-06-07 07:42:16 +00:00
pengx17
e6ec506226
fix: insert link action in quick search callback ( #7165 )
2024-06-07 04:39:20 +00:00
pengx17
1439d00b61
feat: add search doc modal ( #7136 )
2024-06-06 06:29:36 +00:00
pengx17
ea0059fa1b
feat: center peek view ( #7073 )
...
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/7380c06e-880e-424a-9204-8cfb5e924978.mp4 ">Kapture 2024-05-30 at 19.42.46.mp4</video>
2024-05-31 10:28:37 +00:00
JimmFly
609766d898
refactor(core): replace history to ViewService.history ( #6972 )
...
upstream: #6966
2024-05-22 04:01:33 +00:00
JimmFly
10015c59b7
feat(core): add private anchor link for sharing ( #6966 )
...
close AFF-1085
2024-05-16 13:35:02 +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
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.
![截屏2024-05-08 18.23.21.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/93d8218a-3b26-4b0c-9f15-71a8996556db.png )
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.
![截屏2024-05-10 15.30.57.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/sJGviKxfE3Ap685cl5bj/dbc59e80-9504-40b1-b712-5c155cb6fa63.png )
### 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
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
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
Akumatus
4a032eb260
fix: modify experimental features to app-level ( #6823 )
2024-05-08 12:21:02 +08:00
CatsJuice
e7483c7914
fix(core): correct ai related copywritting ( #6799 )
2024-05-07 07:19:53 +00:00
JimmFly
6c8e7c8c1d
feat(i18n): update language resources ( #6767 )
2024-05-06 10:47:03 +00:00
EYHN
527ffa6b3f
feat(core): adjust ai term ( #6770 )
2024-05-06 06:47:06 +00:00
CatsJuice
4aa7cafda3
fix(core): ai related copywritting fix ( #6766 )
2024-05-06 03:57:04 +00:00
EYHN
764da784ae
feat(core): add enable cloud failed notify ( #6741 )
2024-04-30 04:46:09 +00:00
pengx17
5c861939a5
fix(core): show toast for requestRunInEdgeless ( #6715 )
2024-04-29 11:14:07 +00:00
JimmFly
31b284a2d0
feat(core): add fallback component to member list ( #6672 )
...
<img width="549" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/7246002f-ebfb-4486-abbc-35bbee8fba0e ">
2024-04-25 02:27:39 +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
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 )
...
![CleanShot 2024-04-22 at 09.05.42.gif](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/61b35d07-5d5a-4df9-859b-17cf7a9c20cf.gif )
2024-04-22 03:26:01 +00:00
CatsJuice
9cb6dcd93d
feat(core): check user's subscription at ai onboarding stage ( #6608 )
2024-04-18 11:28:06 +00:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08: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