Commit Graph

190 Commits

Author SHA1 Message Date
LongYinan
4dddbbdaee
fix: add prefer-dom-node-remove rule (#5112) 2023-11-29 04:43:51 +00:00
LongYinan
45690c2756
fix: add no-useless-promise-resolve-reject rule (#5111) 2023-11-29 04:43:47 +00:00
LongYinan
d267029761
fix: add prefer-array-some rule (#5109) 2023-11-29 04:43:43 +00:00
LongYinan
23cfc58fe2
fix: add prefer-dom-node-append rule (#5108) 2023-11-29 04:43:39 +00:00
LongYinan
123f091e5b
fix: add prefer-dom-node-dataset rule (#5107) 2023-11-29 04:43:35 +00:00
LongYinan
923844f302
fix: add eqeqeq lint rule (#5106) 2023-11-29 04:43:31 +00:00
JimmFly
c78eb96507
feat(core): show searched result with results group and add duplicate commands (#5073)
[TOV-65](https://linear.app/affine-design/issue/TOV-65/should-show-searched-result-without-categories)

https://github.com/toeverything/AFFiNE/assets/102217452/50fba70b-7efa-4e47-ba8a-de21e400166c
2023-11-29 02:35:13 +00:00
LongYinan
aaaed5ac14
fix(core): nx cache configuration (#5065) 2023-11-28 06:59:48 +00:00
Peng Xiao
71d6b730f7
chore: bump blocksuite (#5051)
https://github.com/toeverything/blocksuite/pull/5337
2023-11-27 04:46:23 +00:00
Peng Xiao
34d575078c
feat(core): simple recovery history ui poc (#5033)
Simple recovery history UI poc.
What's missing
- [x] e2e

All biz logic should be done, excluding complete ui details.
- [ ] offline prompt
- [ ] history timeline
- [ ] page ui

https://github.com/toeverything/AFFiNE/assets/584378/fc3f6a48-ff7f-4265-b9f5-9c0087cb2635
2023-11-27 02:41:19 +00:00
DarkSky
f04ec50d12
feat: optional payment for frontend (#5056) 2023-11-25 15:15:44 +00:00
Joooye_34
317ca7f4e7
ci: fix storybook publish problem (#5047) 2023-11-23 23:38:09 +08:00
JimmFly
4168551783
chore: bump icons version (#5042) 2023-11-23 12:00:51 +00:00
Peng Xiao
ae8329c590
chore(core): update react-resizable-panels (#5041)
`react-resizable-panels` will throw some errors sometime when showing history modal dialog.
I haven't checked the root cause, but upgrade it to the latest will get rid of the error.
2023-11-23 09:20:12 +00:00
LongYinan
25eda22af6
v0.10.3-canary.2 2023-11-23 16:47:40 +08:00
EYHN
23e0137ed8
refactor(workspace): blob sync (#5037)
This pr implements a blob engine.
It exposes a single `BlobStorage` to the `blocksuite`, and in it we sync blobs between multiple storages.

The implement still have few issues, but we can merge this pr first and fix them in future.

* BlobEngine currently **do nothing when delete**, because synchronization logic conflicts with deletion logic.
* BlobEngine sync between storages by querying the blob list at regular intervals. This will **cause many queries**, we can avoid this in the future by subscribing to remote changes.
2023-11-23 07:56:19 +00:00
李华桥
9ded6afb4b
chore: v0.10.3-canary.1 2023-11-23 14:39:55 +08:00
JimmFly
ad2d3b9167
feat(core): add download app button to web (#5023) 2023-11-23 14:33:25 +08:00
LongYinan
3499dbbb7f
feat: upgrade dependencies and lockfile (#5016)
- Close https://github.com/toeverything/AFFiNE/security/dependabot/47
2023-11-23 05:18:05 +00:00
Joooye_34
4c8d54b3a7
refactor(core): use manual upgrade to replace auto migration when web setup (#5022)
1. Split logic in `packages/common/infra/src/blocksuite/index.ts` to multiple single files
2. Move migration logic from setup to upgrade module, to prevent auto migration problems and loading problem
2023-11-23 02:26:06 +00:00
EYHN
06203498da
fix(core): fix page loading shimmer (#5027) 2023-11-22 12:55:10 +00:00
Flrande
d7d47853fe
chore: bump blocksuite (#5030) 2023-11-22 20:51:35 +08:00
Flrande
a3d880daa3
chore: bump blocksuite (#5026) 2023-11-22 20:12:52 +08:00
LongYinan
5f1a124b53
fix(core): add error boundary for workspace layout (#5014)
https://github.com/toeverything/AFFiNE/assets/3468483/d478bf4f-2be3-4d7d-8d94-aa95c1f74c8e
2023-11-22 09:58:33 +08:00
Peng Xiao
f33c49b27e
fix(core): hmr issue on dev (#5006)
I suspect HMR does not working properly on dev because we have multiple entries.
One relative issue: https://github.com/webpack/webpack-dev-server/issues/2792/

I think we do not need multiple entries for polyfills & plugins after all. They could be in the same chunk, and could be later optimized through splitChunks option.

`ses.ts` is changed to `ses-lockdown.ts` because `ses.ts` does not pass circular dependency check by madge. I haven't looked through the real root cause though. See https://github.com/pahen/madge/issues/355
2023-11-21 17:27:16 +00:00
Peng Xiao
615255706d
fix: invisible button should not be interactive (#5017) 2023-11-22 01:05:38 +08:00
JimmFly
f06bdd9a39
fix(core): cmdk crash when entering double quotes (#5008)
Due to a bug in the upstream repository, a temporary fix was implemented until the issue in the upstream repository is resolved.
https://github.com/pacocoursey/cmdk/issues/189
2023-11-21 12:51:22 +00:00
李华桥
00c11d40cf
v0.10.3-canary.0 2023-11-21 10:02:46 +08:00
李华桥
0f6b28fd06
c0.11.0-canary.0 2023-11-20 23:53:50 +08:00
EYHN
9370110cdc
feat(workspace): more status for SyncEngine (#4984) 2023-11-20 22:51:20 +08:00
EYHN
70e71bd43e
fix(core): make e2e more stable (#4987) 2023-11-20 20:17:30 +08:00
EYHN
899e46b1fa
fix(core): rerender (#4988) 2023-11-20 17:32:40 +08:00
LongYinan
34c5e7d83d
build: remove useless source-map-loader to speedup webpack (#4910) 2023-11-20 11:04:57 +08:00
LongYinan
7f09652cca
fix(core): handle the getSession network error properly (#4909)
If network offline or API error happens, the `session` returned by the `useSession` hook will be null, so we can't assume it is not null.

There should be following changes:
1. create a page in ErrorBoundary to let the user refetch the session.
2. The `SessionProvider` stop to pull the new session once the session is null, we need to figure out a way to pull the new session when the network is back or the user click the refetch button.
2023-11-20 11:04:39 +08:00
Cats Juice
57d42bf491
refactor(core): remove all MUI related components and utilities (#4941) 2023-11-20 10:51:28 +08:00
JimmFly
4ef1f4c046
fix(core): escape cmdk value (#4947)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-11-20 10:49:32 +08:00
JimmFly
f09c717413
fix(core): adjust cmdk list scroll padding block (#4972) 2023-11-20 10:39:45 +08:00
Cats Juice
134428f38d
style(core): update pro plan card style (#4960) 2023-11-18 00:36:10 +08:00
JimmFly
ce2eeeffbe
feat(i18n): update translation (#4923) 2023-11-17 17:39:33 +08:00
EYHN
aa4c7407de
refactor: new provider (#4900) 2023-11-17 15:50:01 +08:00
Flrande
8b2c3d4c41
chore: bump blocksuite (#4958) 2023-11-16 22:01:03 +08:00
JimmFly
ddd7cab414
feat(core): support share edgeless mode (#4856)
Close #3287

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at d3fdf86</samp>

### Summary
📄🚀🔗

<!--
1.  📄 - This emoji represents the page and edgeless modes of sharing a page, as well as the GraphQL operations and types related to public pages.
2.  🚀 - This emoji represents the functionality of publishing and revoking public pages, as well as the confirmation modal and the notifications for the user.
3.  🔗 - This emoji represents the sharing URL and the query parameter for the share mode, as well as the hooks and functions that generate and use the URL.
-->
This pull request adds a feature to the frontend component of AFFiNE that allows the user to share a page in either `page` or `edgeless` mode, which affects the appearance and functionality of the page. It also adds the necessary GraphQL operations, types, and schema to support this feature in the backend, and updates the tests and the storybook stories accordingly.

*  Modify the `useIsSharedPage` hook to accept an optional `shareMode` argument and use the `getWorkspacePublicPagesQuery`, `publishPageMutation`, and `revokePublicPageMutation` from `@affine/graphql`
2023-11-15 16:02:58 +08:00
Peng Xiao
f9971ba922
fix(core): change server url of stable to insider (#4902) (#4926) 2023-11-14 14:40:06 +08:00
Joooye_34
30bac7dce2
ci(core): eslint errors for core (#4662) 2023-11-10 10:25:59 +00:00
Joooye_34
b98a258083 fix(core): change server url of stable to insider (#4902) 2023-11-10 15:46:31 +08:00
Yifeng Wang
2117d6b232
chore: bump blocksuite (#4901) 2023-11-10 13:23:29 +08:00
李华桥
5c48c83301
v0.10.0 2023-11-10 11:42:04 +08:00
fourdim
af7d331610
feat(core): add global loading state (#4840) 2023-11-10 03:25:05 +00:00
JimmFly
1fe5a0fffa
feat(core): auto select block when jump to block (#4858)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-11-10 03:02:56 +00:00
fourdim
f1e32aab66
fix(hooks): push success toast after save (#4830) 2023-11-10 02:40:52 +00:00
李华桥
063f5a683e
v0.10.0-canary.16 2023-11-10 10:10:54 +08:00
Peng Xiao
fd74776abe
fix(core): disable sync doc/blob on start (#4897) 2023-11-09 18:00:53 +00:00
李华桥
09c3a8828f
chore: add performance logger 2023-11-10 00:33:48 +08:00
李华桥
075eead9fa
v0.10.0-canary.15 2023-11-09 23:27:12 +08:00
Joooye_34
15b0c127f5
chore: disable outline, copilot and hello world plugin (#4894) 2023-11-09 14:53:45 +00:00
Peng Xiao
d0b014543c
fix(core): select all in page list group header does not need to enable selection (#4869) 2023-11-09 12:01:36 +00:00
Joooye_34
af72bf0f69
feat(core): support signup set password before goto stripe payment url (#4892) 2023-11-09 11:58:16 +00:00
liuyi
f9654bb1f8
feat(core): unify all new created page IDs to nanoid (#4884) 2023-11-09 09:22:02 +00:00
Joooye_34
12a2ccf1a5
fix(core): visit /signin pay when already logged and subscribed (#4882)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-11-09 07:38:52 +00:00
Peng Xiao
227b8b0061
fix(component): dragged component disappear when dragging (#4870) 2023-11-09 06:20:15 +00:00
Peng Xiao
442115632b
chore(component): bump bs (#4880) 2023-11-09 04:47:10 +00:00
3720
da2821eaac
fix(core): collections data migration without blocking data reads (#4866) 2023-11-08 12:38:43 +00:00
Joooye_34
c55565ee71
chore: update changelog url (#4868) 2023-11-08 12:08:24 +00:00
Joooye_34
744cd47481
v0.10.0-canary.14 2023-11-08 15:36:54 +08:00
Hongtao Lye
12c72e63b1
chore: bump blocksuite version (#4862) 2023-11-08 07:12:48 +00:00
EYHN
b7edaab387
chore: fix code style issues (#4857) 2023-11-08 05:51:08 +00:00
JimmFly
83472cc682
fix(core): duplicate registration in edgeless (#4864) 2023-11-08 02:47:46 +00:00
Joooye_34
f50b8002b3
v0.10.0-canary.13 2023-11-07 09:55:30 +08:00
Joooye_34
7a4669a6aa
feat(core): implement parts of workspace upgrade design (#4850) 2023-11-06 17:02:25 +00:00
Joooye_34
8554d5d791
v0.10.0-canary.12 2023-11-07 00:13:51 +08:00
JimmFly
acf0734c95
fix(core): adjust discount display (#4847) 2023-11-06 10:17:24 +00:00
Joooye_34
3b74ff2b92
v0.10.0-canary.11 2023-11-06 18:10:28 +08:00
JimmFly
2b34e1a9cd
feat(core): adjust filter logic (#4831) 2023-11-06 06:41:18 +00:00
JimmFly
9664d142ad
feat(core): temporary expansion files are limited to 100M (#4833) 2023-11-06 06:38:46 +00:00
JimmFly
e7106b7393
chore(i18n): adjust text (#4832) 2023-11-06 06:36:49 +00:00
Cats Juice
7a8150398c
feat(core): payment plans error boundary (#4744) 2023-11-06 02:42:21 +00:00
Cats Juice
3c4dbed16b
fix(core): payment UI fix (#4839) 2023-11-06 02:40:52 +00:00
Peng Xiao
7e381e830a
perf(core): load all pages after 10s (#4834) 2023-11-03 09:42:29 +00:00
Cats Juice
61dc4a56f9
fix(core): implement pricing plans scroll area with radix (#4824) 2023-11-03 06:16:25 +00:00
JimmFly
788c445f2b
chore(i18n): add new key for empty trash page (#4829) 2023-11-03 06:15:13 +00:00
Joooye_34
fb0aaabe53
v0.10.0-canary.10 2023-11-02 23:40:34 +08:00
Cats Juice
de33967a73
fix(component): flex setting-modal header & footer (#4818) 2023-11-02 15:11:20 +00:00
Peng Xiao
65321e39cc
refactor(component): virtual rendering page list (#4775)
Co-authored-by: Joooye_34 <Joooye1991@gmail.com>
2023-11-02 14:21:01 +00:00
JimmFly
0a88be7771
feat(core): add jump to block for cmdk (#4802) 2023-11-02 11:49:49 +00:00
3720
7068d5f38a
feat(core): remove mode and pages field from Collection (#4817) 2023-11-02 10:47:43 +00:00
Hongtao Lye
15024c6c8a
chore: bump blocksuite (#4801) 2023-11-02 09:12:23 +00:00
JimmFly
af9663d3e7
fix(core): adjust payment related text (#4797) 2023-11-02 08:22:54 +00:00
EYHN
6ef02fbc38
fix(core): fix block suite edit mode switch shortcut (#4813) 2023-11-02 07:17:44 +00:00
Joooye_34
75c8dd75e3
v0.10.0-canary.9 2023-11-01 22:03:47 +08:00
Cats Juice
e5c86a9249
fix(core): billing cancel confirm dialog (#4795) 2023-11-01 09:38:43 +00:00
Joooye_34
0273ea8b00
v0.10.0-canary.8 2023-11-01 00:03:04 +08:00
Joooye_34
db36f81d24
feat(core): support subscribe plan after login (#4788) 2023-10-31 15:29:23 +00:00
DarkSky
c30d2550ff
fix: request prevented when re-downgrade subscribe (#4786) 2023-10-31 11:17:28 +00:00
Cats Juice
93e286177f
feat(core): billing history pagination (#4787) 2023-10-31 09:47:59 +00:00
Peng Xiao
8ca53326a7
fix(electron): update app icons (#4789)
Co-authored-by: Joooye_34 <Joooye1991@gmail.com>
2023-10-31 09:09:42 +00:00
Cats Juice
7d6c096462
feat(core): payment billing loading (#4763) 2023-10-31 09:00:19 +00:00
Peng Xiao
f08408ebe5
fix(core): possible crash issues (#4783) 2023-10-31 08:56:14 +00:00
Cats Juice
0ad0ab50d0
fix(core): adjust setting-modal layout to center tip (#4776) 2023-10-31 08:10:41 +00:00
Joooye_34
563863005f
v0.10.0-canary.6 2023-10-31 14:40:47 +08:00
Joooye_34
37ec552f74
v0.10.0-canary.5 2023-10-31 11:54:25 +08:00