Commit Graph

2174 Commits

Author SHA1 Message Date
Cats Juice
ce7a691eef
fix(component): stack notification cards expand animation (#4962) 2023-11-18 00:32:06 +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
liuyi
9baad36e41
fix(server): all viewers can share public link (#4968) 2023-11-17 13:48:09 +08:00
Flrande
8b2c3d4c41
chore: bump blocksuite (#4958) 2023-11-16 22:01:03 +08:00
Peng Xiao
791eb75ca8
fix(infra): page id compat fix for page ids in workspace.meta (#4950)
since we strip `page:` in keys of workspacedoc.spaces, we should also strip the prefix in meta.pages as well.
2023-11-16 21:57:17 +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
LongYinan
e7e617a791
chore: change default branch to canary (#4948) 2023-11-15 07:46:50 +00:00
Joooye_34
ea4f5ffc83
fix(infra): workspace migration without blockVersions (#4936) 2023-11-14 23:03:40 +08:00
Peng Xiao
9ac8a32e00
perf(component): use png instead of svg for rendering noise svg (#4935) 2023-11-14 23:03:19 +08:00
DarkSky
8d55e5cdf9
fix: change password token check (#4934) (#4932) 2023-11-14 23:03:01 +08:00
Peng Xiao
f9971ba922
fix(core): change server url of stable to insider (#4902) (#4926) 2023-11-14 14:40:06 +08:00
Peng Xiao
16488d594c
fix(infra): compatibility fix for space prefix (#4912)
It seems there are some cases that [this upstream PR](https://github.com/toeverything/blocksuite/pull/4747) will cause data loss.

Because of some historical reasons, the page id could be different with its doc id.
It might be caused by subdoc migration in the following (not 100% sure if all white screen issue is caused by it) 0714c12703/packages/common/infra/src/blocksuite/index.ts (L538-L540)

In version 0.10, page id in spaces no longer has prefix "space:"
The data flow for fetching a doc's updates is:
- page id in `meta.pages` -> find `${page-id}` in `doc.spaces` -> `doc` -> `doc.guid`
if `doc` is not found in `doc.spaces`, a new doc will be created and its `doc.guid` is the same with its pageId
- because of guid logic change, the doc that previously prefixed with `space:` will not be found in `doc.spaces`
- when fetching the rows of this doc using the doc id === page id,
  it will return EMPTY since there is no updates associated with the page id

The provided fix in the PR will patch the `spaces` field of the root doc so that after 0.10 the page doc can still be found in the `spaces` map. It shall apply to both of the idb & sqlite datasources.

Special thanks to @lawvs 's db file for investigation!
2023-11-14 14:39:50 +08:00
liuyi
c44a9a4903
fix(server): wrap updates applying in a transaction (#4922) 2023-11-14 14:39:39 +08:00
Peng Xiao
76b585d1ef
fix(storybook): page tags display (#4924) 2023-11-14 09:45:12 +08:00
LongYinan
f17c0e1268
Merge pull request #4915 from toeverything/chore/hotfix-back-to-master
fix: cherry pick hotfix back to master
2023-11-13 10:12:06 +08:00
Whitewater
eded501123
fix: get page preview based on block order (#4888)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-11-12 15:09:57 +00:00
forehalo
dc8e84df31
fix(server): increase server acceptable websocket payload size 2023-11-12 11:22:00 +08:00
Peng Xiao
a8d89254ce
fix(electron): dev reload (#4911) 2023-11-12 03:19:27 +00:00
李华桥
7525126d89
fix(core): change server url of stable to insider 2023-11-10 20:07:18 +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
28177657ef chore: bump theme (#4904)
Co-authored-by: 李华桥 <joooye1991@gmail.com>
2023-11-10 15:42:06 +08:00
Peng Xiao
5c2d958e2b
fix(core): svg blob syncing issue (#4886) 2023-11-10 05:32:51 +00: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
liuyi
7698a6ac8e
chore(server): bump octobase versions (#4893)
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-11-10 02:25:28 +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
LongYinan
9d89e4f7f5
fix(server): earlyAccessPreview env override (#4898) 2023-11-09 17:20:41 +00:00
李华桥
09c3a8828f
chore: add performance logger 2023-11-10 00:33:48 +08:00
LongYinan
927a6489f9
ci: adjust the beta cluster configuration 2023-11-10 00:22:45 +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
405167854b
perf(server): avoid auto select blob data when upsert (#4891) 2023-11-09 10:45:31 +00:00
liuyi
f9654bb1f8
feat(core): unify all new created page IDs to nanoid (#4884) 2023-11-09 09:22:02 +00:00
EYHN
e3e0553c56
fix(hooks): missing page preview and references (#4863) 2023-11-09 08:59:36 +00:00
liuyi
248fb1fa69
fix(server): token set with id instead of email (#4883) 2023-11-09 08:23:03 +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
Peng Xiao
ad82376890
chore: update delete icon (#4871) 2023-11-09 02:49:48 +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