Commit Graph

5789 Commits

Author SHA1 Message Date
pengx17
625249ca5b
docs: update outdated docs (#6756)
fix #5171
2024-05-06 02:03:14 +00:00
forehalo
cebb841430
feat(server): add flag to disable new sign ups (#6752) 2024-04-30 15:19:30 +00:00
pengx17
91ee5e05bb
fix: ai chat session handling (#6751)
fix AFF-999
upstream: https://github.com/toeverything/blocksuite/pull/6932
2024-04-30 15:08:27 +00:00
pengx17
0c175ada31
fix: remove dnd for workspace list (#6754)
fix TOV-399
2024-04-30 14:57:38 +00:00
EYHN
0a1241436f
fix(templates): fix typo (#6750) 2024-04-30 08:54:24 +00:00
pengx17
5586de61fb
chore: bump blocksuite (#6753)
## Features
- https://github.com/toeverything/BlockSuite/pull/6929 @pengx17

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6931 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6925 @fourdim
- https://github.com/toeverything/BlockSuite/pull/6928 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6933 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6932 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6920 @golok727
- https://github.com/toeverything/BlockSuite/pull/6927 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6923 @regischen
- https://github.com/toeverything/BlockSuite/pull/6906 @fundon

## Refactor
- https://github.com/toeverything/BlockSuite/pull/6926 @fourdim

## Misc
2024-04-30 08:40:32 +00:00
forehalo
f566457dcf
test(server): payment tests (#6737) 2024-04-30 06:59:54 +00:00
pengx17
1f97437320
fix(core): input overflow issue (#6748) 2024-04-30 13:18:20 +08:00
pengx17
eb7904bf62
fix(core): prompt message tunning (#6747)
fix AFF-1003
2024-04-30 13:18:20 +08:00
EYHN
2420b2849f
chore(core): remove unused module (#6744) 2024-04-30 04:58:15 +00:00
EYHN
764da784ae
feat(core): add enable cloud failed notify (#6741) 2024-04-30 04:46:09 +00:00
EYHN
148e058cde
refactor(core): remove once signed in event (#6740)
This once signed in event does not work properly.
2024-04-30 04:46:02 +00:00
forehalo
a14194c482
fix(server): blob controller permission (#6746) 2024-04-30 03:47:00 +00:00
pengx17
9b28e7313f
fix(core): make it real action (#6745) 2024-04-30 03:33:09 +00:00
EYHN
a1169a43c9
chore: bump blocksuite (#6742)
## Features
- https://github.com/toeverything/BlockSuite/pull/6917 @undefined
- https://github.com/toeverything/BlockSuite/pull/6895 @golok727

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6906 @fundon
- https://github.com/toeverything/BlockSuite/pull/6919 @fundon
- https://github.com/toeverything/BlockSuite/pull/6921 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6910 @golok727
- https://github.com/toeverything/BlockSuite/pull/6918 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/6915 @fundon
- https://github.com/toeverything/BlockSuite/pull/6912 @golok727
- https://github.com/toeverything/BlockSuite/pull/6789 @fundon
- https://github.com/toeverything/BlockSuite/pull/6909 @fundon

## Refactor
- https://github.com/toeverything/BlockSuite/pull/6913 @golok727

## Misc
2024-04-29 12:26:08 +00:00
EYHN
1323a0fc5f
feat(core): prefetch onboarding video (#6736)
![CleanShot 2024-04-29 at 17.32.41@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/g3jz87HxbjOJpXV3FPT7/21ebbc62-c4a2-496c-af05-600a2ded2a9d.png)
2024-04-29 12:13:16 +00:00
pengx17
5c861939a5
fix(core): show toast for requestRunInEdgeless (#6715) 2024-04-29 11:14:07 +00:00
pengx17
7c5a259e84
fix(core): update prompts (#6738)
Update prompts:

When sending a message to openai, we actually send two messages.
There are two issues here:

1. the role in the first message shall be user or system
2. the content in the first message is not being interpolated at all.

```
[
  {
    role: "assistant",
    createdAt: "2024-04-27T06:30:34.820Z",
    params: {
      language: "French",
    },
    content: "You are a translation expert, please translate the following content into French, and only perform the translation action, keeping the translated content in the same format as the original content:\n\n          \"\"\"\"\n\n          \n\n          \"\"\"\"",
  },
  {
    role: "user",
    content: "Basic things you should know:",
    attachments: undefined,
    params: {
      language: "French",
    },
    createdAt: "2024-04-29T09:42:11.466Z",
  },
]
```

In this PR I removed `content` from prompts and let open ai use the second message (user) as the input.
2024-04-29 11:02:16 +00:00
EYHN
1d3c477c65
chore: enable source map on production (#6731) 2024-04-29 09:42:35 +00:00
Brooooooklyn
301d517892
chore: delete removed next-auth patch (#6729) 2024-04-29 09:30:09 +00:00
EYHN
20116eb940
chore: remove unused y-indexeddb (#6728) 2024-04-29 09:14:42 +00:00
Brooooooklyn
9c8168a066
chore: upgrade Rust to 1.77.2 (#6732) 2024-04-29 09:03:18 +00:00
EYHN
6202ba5ada
refactor(core): remove jump once (#6733)
Previously, we marked `jumpOnce: true` on `doc.meta` to open a specific doc after creating a new workspace. This pr removes `jumpOnce` and directly jumps to the specific doc URL.

This PR also fixes an error when opening the all-page page, because the all-page page scans the jumpOnce attribute of all docs, and the code in it will fail on damaged data.
2024-04-29 08:51:31 +00:00
CatsJuice
5e8fe28326
chore(core): replace ai onboarding videos (#6730) 2024-04-29 07:07:43 +00:00
pengx17
964e475c5f
chore: bump @pengx17/electron-forge-maker-appimage (#6726)
fix https://github.com/toeverything/AFFiNE/issues/6722
add `--no-sandbox --disable-setuid-sandbox` to appimage run
2024-04-29 04:57:52 +00:00
pengx17
905d7d18e4
chore: bump blocksuite (#6725) 2024-04-29 04:57:46 +00:00
Brooooooklyn
81729703d9
chore(server): use native file-type implementation (#6686) 2024-04-29 04:46:26 +00:00
EYHN
f98db24391
fix(core): fix opt out telemetry cause error (#6723) 2024-04-29 04:03:31 +00:00
EYHN
704532bd2f
fix(core): adjust notify style (#6724) 2024-04-29 03:51:41 +00:00
CatsJuice
8d342f85ad
fix(core): workspace avatar hover radius (#6717) 2024-04-29 02:27:21 +00:00
Brooooooklyn
fed2503782
refactor(server): rename @affine/storage to @affine/server-native (#6682)
- Close https://github.com/toeverything/AFFiNE/issues/6680
2024-04-29 02:14:20 +00:00
EYHN
236c6e00df
fix(infra): reduce workspace avatar request (#6713) 2024-04-28 07:06:27 +00:00
fundon
7584ab4b91
feat(core): add seed to fal (#6712) 2024-04-26 11:40:09 +00:00
darkskygit
b639e52dca
feat: allow custom seed (#6709) 2024-04-26 11:40:07 +00:00
pengx17
5d114ea965
refactor(electron): cleanup secondary db logic (#6710) 2024-04-26 10:57:09 +00:00
pengx17
d015be24e6
fix: incorrect mixpanel param (#6706) 2024-04-26 10:45:29 +00:00
darkskygit
850bbee629
test: copilot unit & e2e test (#6649)
fix CLOUD-31
2024-04-26 09:43:35 +00:00
EYHN
f015a11181
chore: bump blocksuite (#6707)
## Features
- https://github.com/toeverything/BlockSuite/pull/6785 @zzj3720

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6894 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6893 @doouding
- https://github.com/toeverything/BlockSuite/pull/6891 @fundon
- https://github.com/toeverything/BlockSuite/pull/6879 @doouding
- https://github.com/toeverything/BlockSuite/pull/6885 @regischen
- https://github.com/toeverything/BlockSuite/pull/6888 @doouding
- https://github.com/toeverything/BlockSuite/pull/6890 @doouding
- https://github.com/toeverything/BlockSuite/pull/6889 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6887 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6877 @EYHN
- https://github.com/toeverything/BlockSuite/pull/6882 @fundon
- https://github.com/toeverything/BlockSuite/pull/6886 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6884 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6881 @fundon
- https://github.com/toeverything/BlockSuite/pull/6880 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6878 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6876 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6873 @pengx17

## Refactor

## Misc
- https://github.com/toeverything/BlockSuite/pull/6874 @doouding
2024-04-26 07:42:37 +00:00
pengx17
cc17d3287e
fix: open in chat does not work when the panel is not opened (#6703)
https://github.com/toeverything/AFFiNE/pull/6503 does not work with "open in chat".
IMO resetting tab whenever opening right panel does not make too much sense. @zanwei

fix AFF-951
2024-04-26 03:50:40 +00:00
CatsJuice
5b5c27b6ce
feat(core): add ai pricing tip for plans page (#6704) 2024-04-26 03:28:28 +00:00
darkskygit
8bdd940ac8
fix: some event missing with multiple env webhook (#6705) 2024-04-26 02:56:09 +00:00
darkskygit
15c1e46680
chore: use default throttler replace strict throttler (#6698) 2024-04-26 02:18:20 +00:00
forehalo
2c228a35f8
fix(server): stripe webhook calls in random order (#6702) 2024-04-25 12:22:07 +00:00
darkskygit
a0c219e036
feat: use default params if not provided (#6701) 2024-04-25 10:59:46 +00:00
forehalo
3297486e31
fix(server): skip throttle for currentUser (#6700) 2024-04-25 09:45:31 +00:00
pengx17
6237bf18ab
build(electron): nsis typo (#6697) 2024-04-25 09:10:34 +00:00
darkskygit
ea3f427918
fix: large transaction (#6695) 2024-04-25 08:33:21 +00:00
dependabot
74b7d024be
chore(deps): bump rustls from 0.21.10 to 0.21.11 (#6683)
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.10 to 0.21.11.
<details>
<summary>Commits</summary>
<ul>
<li><a href="7b8d1dbc1e"><code>7b8d1db</code></a> Prepare 0.21.11</li>
<li><a href="ebcb4782f2"><code>ebcb478</code></a> complete_io: bail out if progress is impossible</li>
<li><a href="20f35dfb6d"><code>20f35df</code></a> Regression test for <code>complete_io</code> infinite loop bug</li>
<li><a href="2f2aae15a4"><code>2f2aae1</code></a> Don't specially handle unauthenticated close_notify alerts</li>
<li><a href="e163587b98"><code>e163587</code></a> Don't deny warnings from nightly clippy</li>
<li><a href="9f864874cf"><code>9f86487</code></a> server::handy: fix new nightly clippy lint</li>
<li><a href="7e0e8ab599"><code>7e0e8ab</code></a> Correct assorted clippy warnings in test code</li>
<li><a href="3587d98f4e"><code>3587d98</code></a> Apply clippy suggestions from Rust 1.72</li>
<li><a href="d082e837b3"><code>d082e83</code></a> Address <code>clippy::redundant_static_lifetimes</code></li>
<li><a href="5e7a06ca45"><code>5e7a06c</code></a> Address <code>clippy::slow_vector_initialization</code></li>
<li>Additional commits viewable in <a href="https://github.com/rustls/rustls/compare/v/0.21.10...v/0.21.11">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rustls&package-manager=cargo&previous-version=0.21.10&new-version=0.21.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/toeverything/AFFiNE/network/alerts).

</details>
2024-04-25 07:47:47 +00:00
renovate
6af849e875
chore: bump up supertest version to v7 (#6690)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [supertest](https://togithub.com/ladjs/supertest) | [`^6.3.4` -> `^7.0.0`](https://renovatebot.com/diffs/npm/supertest/6.3.4/7.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/supertest/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/supertest/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/supertest/6.3.4/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/supertest/6.3.4/7.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>ladjs/supertest (supertest)</summary>

### [`v7.0.0`](https://togithub.com/ladjs/supertest/releases/tag/v7.0.0)

[Compare Source](https://togithub.com/ladjs/supertest/compare/v6.3.4...v7.0.0)

-   Merge pull request [#&#8203;834](https://togithub.com/ladjs/supertest/issues/834) from Bruception/master  [`225118c`](https://togithub.com/ladjs/supertest/commit/225118c)
-   Fix TestAgent not inheriting Agent properties  [`f290431`](https://togithub.com/ladjs/supertest/commit/f290431)
-   fix: bump deps, drop Node.js v<14.16.0  [`1e18c20`](https://togithub.com/ladjs/supertest/commit/1e18c20)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5IiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
2024-04-25 07:32:48 +00:00
pengx17
050efe3749
fix(core): update prompts (#6693)
update based on latest docs
2024-04-25 05:26:50 +00:00