EYHN
81aae61394
fix(core): fix desktop e2e ( #5867 )
2024-02-22 16:12:23 +08:00
EYHN
4560819f76
fix(core): fix 404 after signout (hotfix) ( #5865 )
2024-02-22 15:11:11 +08:00
liuyi
193c197a54
fix(core): window.open to a new origin will be blocked by browser ( #5856 )
2024-02-21 20:51:25 +08:00
Ayush Agrawal
8d141e5a81
feat: blocksuite integration for pageMode & pageUpdatedAt ( #5849 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
2024-02-21 15:16:49 +08:00
Lye Hongtao
e04911315f
feat: move templates into AFFiNE ( #5750 )
...
Related to https://github.com/toeverything/blocksuite/pull/6156
### Change
Move the edgeless templates to AFFiNE. All templates are stored as zip files. Run `node build-edgeless.mjs` in `@affine/templates` to generate JSON-format templates and importing script. The template will be generated automatically during building and dev (`yarn dev`).
2024-02-21 15:10:47 +08:00
Ayush Agrawal
75d58679b6
chore: bump blocksuite ( #5852 )
2024-02-21 15:10:35 +08:00
Ayush Agrawal
2e6386e4cf
feat: bump blocksuite ( #5845 )
2024-02-21 15:09:33 +08:00
Ayush Agrawal
f345a61df0
feat: bump blocksuite ( #5817 )
2024-02-21 15:01:45 +08:00
Flrande
a6420fcd76
feat: bump blocksuite ( #5812 )
2024-02-21 15:00:43 +08:00
Yifeng Wang
fec406f7e8
feat: bump blocksuite ( #5767 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
2024-02-21 14:57:05 +08:00
LongYinan
769398591b
fix: resolve deps and types issues after cherry-pick
2024-02-21 14:51:29 +08:00
JimmFly
e01569fff7
feat(core): add loading to quick search modal ( #5785 )
...
close AFF-285
add `useSyncEngineStatus` hooks
add loading style
<img width="977" alt="test1" src="https://github.com/toeverything/AFFiNE/assets/102217452/e8bf6714-e42b-4adf-a279-341ef5f5cfc0 ">
2024-02-21 14:40:30 +08:00
JimmFly
6bde2de783
feat(core): add starAFFiNE and issueFeedback modal ( #5718 )
...
close TOV-482
https://github.com/toeverything/AFFiNE/assets/102217452/da1f74bc-4b8d-4d7f-987d-f53da98d92fe
2024-02-21 14:23:09 +08:00
JimmFly
3513ced6cb
fix(core): match page preview and page title in page list ( #5840 )
...
close TOV-578
2024-02-21 14:21:05 +08:00
Adithyan
8dc9addc40
feat: Duplicate page in page list and clone naming improvements ( #5818 )
2024-02-21 14:20:38 +08:00
Muhammad Arsil
9d9f89ef2e
fix: cards overlapping issue ( #5727 )
...
Co-authored-by: EYHN <cneyhn@gmail.com >
2024-02-21 14:20:31 +08:00
Whitewater
a5df5a7c8a
chore: skip sync when offline ( #5786 )
2024-02-21 14:17:20 +08:00
EYHN
d2acd0385a
fix(core): prevent data loss (hot-fix) ( #5798 )
2024-02-05 10:54:51 +08:00
Joooye_34
9189d26332
feat: support sign-in with subscription coupon ( #5768 )
2024-02-01 17:03:29 +08:00
Cats Juice
4257b5f3a4
fix(core): set createDate to journal's date when journal created ( #5701 )
2024-01-30 23:13:02 +08:00
Cats Juice
ea17e86032
feat(core): ignore empty journals for page lists ( #5744 )
2024-01-30 17:21:20 +08:00
Yifeng Wang
1cf902bdb6
feat: bump blocksuite ( #5735 )
2024-01-29 16:40:23 +08:00
LongYinan
0044be972f
chore: bump up @blocksuite/icons version to v2.1.44 ( #5732 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons ) | [`2.1.43` -> `2.1.44`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.43/2.1.44 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.44`](https://togithub.com/toeverything/icons/compare/13299f7ede53dfd75ec18b0d2ac0d33621b727ce...bc31d7096132890aa055ac3bdf632826b7734bc5 )
[Compare Source](https://togithub.com/toeverything/icons/compare/13299f7ede53dfd75ec18b0d2ac0d33621b727ce...bc31d7096132890aa055ac3bdf632826b7734bc5 )
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-29 07:39:17 +00:00
DarkSky
070d5ca471
feat: impl unlimited features ( #5659 )
2024-01-26 08:28:54 +00:00
Yifeng Wang
04b9029d1b
feat: bump blocksuite ( #5720 )
...
Co-authored-by: xiaoxin <hongtao.lye@toeverything.info >
2024-01-26 16:27:58 +08:00
Cats Juice
387e292ed9
fix(core): journal title's day tag may be invalid ( #5703 )
...
Fix [TOV-470](https://linear.app/affine-design/issue/TOV-470/journal-invalid-date )
2024-01-26 07:55:35 +00:00
JimmFly
18068f4ae2
feat(core): add collection and tag filters to all pages ( #5567 )
...
close TOV-69
Added the `filterMode` parameter to the `/all` route.
Abstracted the `PageList` and associated components into more universal ones.
Added the `useTagMetas` hook to get and update the workspace tags.
https://github.com/toeverything/AFFiNE/assets/102217452/7595944d-a056-40c2-8d89-d8df9e901a4b
2024-01-26 07:42:47 +00:00
Peng Xiao
b867dcbdeb
fix: add padding between editor and link panel ( #5713 )
...
Fix [AFF-561](https://linear.app/affine-design/issue/AFF-561/bi-directional-link-与文本编辑区域的-top-padding )
2024-01-26 07:32:22 +00:00
Peng Xiao
e8a6b6ad5e
fix(core): bidi links rendering issue ( #5707 )
2024-01-26 06:07:04 +00:00
DarkSky
fdffe90892
fix: consume blob stream correctly ( #5706 )
...
- use correctly endpoint in r2
- consume blob stream correctly
2024-01-25 10:59:53 +00:00
LongYinan
db3891ba33
chore: bump up @blocksuite/icons version to v2.1.43 ( #5702 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons ) | [`2.1.42` -> `2.1.43`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.42/2.1.43 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.43`](https://togithub.com/toeverything/icons/compare/fe902db67e786028fdf90fee995c0e06769e139e...13299f7ede53dfd75ec18b0d2ac0d33621b727ce )
[Compare Source](https://togithub.com/toeverything/icons/compare/fe902db67e786028fdf90fee995c0e06769e139e...13299f7ede53dfd75ec18b0d2ac0d33621b727ce )
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-25 08:56:39 +00:00
Cats Juice
e7307d969c
chore(core): remove journal experimental flag ( #5698 )
2024-01-25 05:33:57 +00:00
Joooye_34
bd8c7751db
chore: update base version to 0.12.0 ( #5695 )
2024-01-25 05:17:35 +00:00
Cats Juice
9aa421d5e1
fix(core): modify journal page title today style, add weekday tag ( #5687 )
...
fix [TOV-434](https://linear.app/affine-design/issue/TOV-434/修改-journal-中-「today」的字体大小和日期-title-大小 )
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/toeverything/AFFiNE/assets/39363750/ac0ab085-5ff7-4d27-a0b1-11d97fdd8074 ">
<img width="100%" alt="" src="https://github.com/toeverything/AFFiNE/assets/39363750/3b311130-ded2-4651-badd-65dd059b7bc5 ">
</picture>
2024-01-24 13:07:20 +00:00
Cats Juice
3f96b9778f
fix(core): change journal header week-date-picker's max-width ( #5688 )
...
Fix [TOV-444](https://linear.app/affine-design/issue/TOV-444/修改-journal-date-picker-max-width )
2024-01-24 12:54:34 +00:00
JimmFly
ad1521fd81
feat(core): adjust member order ( #5685 )
...
close #5686
`Owner >> Unaccepted > Admin > Write > Read`
This algorithm contains two parts: firstly, it calculates the weight of the Member (calculateWeight), and then, it uses set weights to sort the Members (useMembers).
In the calculateWeight part, the computation of the weight involves three primary factors:
1. **Permission Level**: The `Owner` is given the highest weight of `4`, followed by `Admin` with a weight of `3`, then `Write` with a weight of `2`, and finally, `Read`, with a weight of `1`.
2. **Acceptance Status**: `Unaccepted` members have a higher weight, this weight is `1`.
3. The weight corresponding to the permission level, if the member does not exist, this weight is 0.
These three `factors` are stored in the factors array and then processed through the reduce function for weighted sum calculation. Among them, `factor * Math.pow(10, arr.length - 1 - index)` means the more significant weight factors (i.e., the earlier factors) will be assigned a higher value.
Sorting rules are primarily based on the weight values obtained from the calculateWeight function. If the weights are identical, it then sorts by name, here assuming the weight of the name being `null` is the highest. If the names are not `null`, they are sorted alphabetically.
2024-01-24 12:44:01 +00:00
JimmFly
25897dc404
feat(workspace): add blob and storage limit ( #5535 )
...
close TOV-343 AFF-508 TOV-461 TOV-460 TOV-419
Add `isOverCapacity ` status to detect if blob usage exceeds limits.
Add `onCapacityChange` and `onBlobSet` to monitor if the storage or blob exceeds the capacity limit.
Global modals `LocalQuotaModal` and `CloudQuotaModal` have been added, with the upload size of the blob being limited within the modal components.
The notification component has been adjusted, now you can pass in `action` click events and `actionLabel` .
2024-01-24 07:34:51 +00:00
Chen
c566952e09
feat: bump blocksuite ( #5673 )
2024-01-24 15:13:12 +08:00
Peng Xiao
a687e7c0ed
fix(core): workspace feature should be workspace specific ( #5677 )
...
fix TOV-429
2024-01-24 03:07:51 +00:00
Peng Xiao
c2a978f0f2
fix: create page button offset issue on non-windows desktop app ( #5669 )
...
fix TOV-428
2024-01-24 02:56:04 +00:00
Peng Xiao
f62b67de61
fix(core): should set lang when locale changes ( #5679 )
...
this + https://github.com/toeverything/design/pull/110 should fix #5591
fix TOV-457
Reason: HTML requires `lang` to be set to render the correct CJK glyphs.
https://heistak.github.io/your-code-displays-japanese-wrong
<img width="692" alt="image" src="https://github.com/toeverything/AFFiNE/assets/584378/1d350219-5157-42cb-8e98-76d92d55b41e ">
2024-01-24 02:43:22 +00:00
Peng Xiao
65b538ee45
chore: bump @toeverything/theme ( #5680 )
2024-01-24 02:43:19 +00:00
DarkSky
8bbe2e3bb1
feat: use custom image/preview link ( #5584 )
...
dep toeverything/blocksuite#5969
2024-01-23 08:53:57 +00:00
Cats Juice
8300df4a26
fix(core): correct typo in onboarding 'get start' ( #5666 )
2024-01-23 04:54:22 +00:00
Cats Juice
6c8621bdcd
chore(core): bump @toeverything/theme, add cssVar use case ( #5667 )
2024-01-23 04:39:07 +00:00
LongYinan
021105c115
chore: bump up @blocksuite/icons version to v2.1.42 ( #5668 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/icons](https://togithub.com/toeverything/icons ) | [`2.1.41` -> `2.1.42`](https://renovatebot.com/diffs/npm/@blocksuite%2ficons/2.1.41/2.1.42 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>toeverything/icons (@​blocksuite/icons)</summary>
### [`v2.1.42`](https://togithub.com/toeverything/icons/compare/fdca7d8e2eb3f42ffe9df08ab8f397921afb64c9...fe902db67e786028fdf90fee995c0e06769e139e )
[Compare Source](https://togithub.com/toeverything/icons/compare/fdca7d8e2eb3f42ffe9df08ab8f397921afb64c9...fe902db67e786028fdf90fee995c0e06769e139e )
</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 these updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-01-23 04:27:58 +00:00
Peng Xiao
ecdb5b3407
fix(core): properties adapter reactivitiy issue ( #5661 )
2024-01-23 01:41:44 +00:00
Joooye_34
fccdf8ede7
feat: bump blocksuite ( #5642 )
...
https://github.com/toeverything/blocksuite/compare/f0c45fd...4e2c95a
2024-01-22 08:37:32 +00:00
Peng Xiao
0ed26f51af
feat(core): adopt editor features for journal ( #5638 )
2024-01-22 08:25:31 +00:00
Peng Xiao
f41b7d7e71
feat(component): react wrapper for blocksuite editor ( #5606 )
...
A React wrapper for blocksuite editor from title/meta/doc/edgless fragments.
This PR only **clones** the `AffineEditorContainer`'s existing behavior and make it easier for extension in affine later.
fix TOV-315
### Some core issues:
A customized version of `createComponent` from `@lit/react`. The [existing and solutions in the community](https://github.com/lit/lit/issues/4435 ) does not work well in our case.
Alternatively in this PR the approach we have is to create web component instances in React lifecycle and then append them to DOM. However this make it hard to wrap the exported Lit component's using React and therefore we will have an additional wrapper tag for the wrapped web component.
To mitigate the migration issue on using React instead of Lit listed on last day, we now use [a proxy to mimic the wrapped React component](https://github.com/toeverything/AFFiNE/pull/5606/files#diff-5b7f0ae7b52a08739d50e78e9ec803c26ff3d3e5437581c692add0de12d3ede5R142-R183 ) into an `AffineEditorContainer` instance.
2024-01-22 08:25:29 +00:00