akumatus
24cb0d3757
refactor: add docsService for blocksuite to change and observe doc mode ( #7200 )
...
This PR provide `DocModeService` to manage document mode, which is used by blocksuite.
### What Changed?
- Add document mode apis from `DocService` and `DocsService`
- Remove useless `pageService.getEditorMode` and `pageService.slots.editorModeSwitch` api
[Related PR in blocksuite](https://github.com/toeverything/blocksuite/pull/7288 )
[Bump Blocksuite](https://github.com/toeverything/AFFiNE/pull/7209 )
> ## Features
> * [feat(presets): support different tracker control for actions blocksuite#7285](https://github.com/toeverything/blocksuite/pull/7285 ) @donteatfriedrice
> * [feat(edgeless): add default color and editing border for edgeless text blocksuite#7278](https://github.com/toeverything/blocksuite/pull/7278 ) @Flrande
> * [feat(blocks): center peek entries blocksuite#7275](https://github.com/toeverything/blocksuite/pull/7275 ) @pengx17
>
> ## Bugfix
> * [fix(blocks): affine-embed-synced-doc-block peek on dblclick blocksuite#7284](https://github.com/toeverything/blocksuite/pull/7284 ) @pengx17
> * [fix(edgeless): edgeless text rect should automatically update when changing font blocksuite#7292](https://github.com/toeverything/blocksuite/pull/7292 ) @Flrande
> * [fix(edgeless): align panel not work blocksuite#7293](https://github.com/toeverything/blocksuite/pull/7293 ) @Flrande
> * [fix(blocks): filterable list unexpected hover style blocksuite#7291](https://github.com/toeverything/blocksuite/pull/7291 ) @golok727
> * [fix(blocks): slash menu unexpected hover style blocksuite#7290](https://github.com/toeverything/blocksuite/pull/7290 ) @golok727
> * [fix(blocks): bookmark block error on undo or delete while loading blocksuite#7276](https://github.com/toeverything/blocksuite/pull/7276 ) @golok727
> * [fix(presets): chat input max-height blocksuite#7283](https://github.com/toeverything/blocksuite/pull/7283 ) @fundon
> * [fix(presets): get image blob from selection blocksuite#7286](https://github.com/toeverything/blocksuite/pull/7286 ) @donteatfriedrice
> * [fix(blocks): connectors resize and rotate blocksuite#7256](https://github.com/toeverything/blocksuite/pull/7256 ) @fundon
>
> ## Refactor
> * [refactor: add DocModeService for doc mode get, set, toogle and observe change blocksuite#7288](https://github.com/toeverything/blocksuite/pull/7288 ) @akumatus
> * [refactor(edgeless): rewrite auto-connect component as a widget blocksuite#7287](https://github.com/toeverything/blocksuite/pull/7287 ) @doouding
>
> ## Misc
> * [test: fix flaky blocksuite#7295](https://github.com/toeverything/blocksuite/pull/7295 ) @L-Sun
> * [style(page): adjust heading font-weight and letter-spacing blocksuite#7277](https://github.com/toeverything/blocksuite/pull/7277 ) @CatsJuice
> * [chore: apply member ordering rule blocksuite#7279](https://github.com/toeverything/blocksuite/pull/7279 ) @Saul-Mirone
---
2024-06-13 16:53:42 +08:00
pengx17
1439d00b61
feat: add search doc modal ( #7136 )
2024-06-06 06:29:36 +00:00
forehalo
c96fb46751
feat(core): adjust admin panel style ( #7116 )
2024-05-31 10:43:30 +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
b13151b480
feat(core): add admin panel page ( #7115 )
...
The path is `/admin-panel`
2024-05-31 09:42:23 +00:00
forehalo
638fc62601
feat(server): runtime setting support ( #5602 )
...
---
<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev ">Graphite</a>)</summary>
> ## TL;DR
> This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations.
>
> ## What changed
> - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`.
> - Added a new model `ApplicationSetting` with properties `key` and `value`.
> - Added a new module `RuntimeSettingModule` that exports the `Runtime` service.
> - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations.
> - Modified the `app.module.ts` file to import the `RuntimeSettingModule`.
> - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service.
> - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation.
> - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service.
>
> ## How to test
> 1. Run the migration script to create the `application_settings` table.
> 2. Use the `Runtime` service to get, set, and update runtime configurations.
> 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service.
>
> ## Why make this change
> This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application.
</details>
2024-05-28 06:43:53 +00:00
JimmFly
bd9c929d05
feat(core): cmd+f search in doc function ( #7040 )
...
You can use the cmd+F shortcut key to trigger the FindInPage function.
2024-05-28 06:19:48 +00:00
EYHN
b356ddbe6e
fix(core): fix ui flashing ( #7056 )
2024-05-27 08:05:20 +00:00
pengx17
8ed0ceb63e
fix: reset doc mode correctly ( #7071 )
...
it looks like a typo to me, but no obvious issue has been reported related to it?
2024-05-27 06:26:03 +00:00
EYHN
a440e85ffe
chore: bump blocksuite ( #7075 )
...
## Features
- toeverything/blocksuite#6937 @Flrande
## Bugfix
- toeverything/blocksuite#7137 @fundon
- toeverything/blocksuite#7126 @golok727
- toeverything/blocksuite#7128 @CatsJuice
- toeverything/blocksuite#7130 @fundon
## Refactor
## Misc
- toeverything/blocksuite#7131 @fundon
## Additional changes
Adjust the awareness provider so that it only obtains awareness instances when connect, and fixes the dependencies between workspace components.
2024-05-27 05:11:12 +00:00
Flrande
35a6cf655b
feat(core): bump blocksuite ( #6965 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/7052 @donteatfriedrice
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7072 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7073 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7062 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7066 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7061 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7058 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7060 @doouding
- https://github.com/toeverything/BlockSuite/pull/7051 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7054 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7023 @golok727
- https://github.com/toeverything/BlockSuite/pull/7022 @golok727
- https://github.com/toeverything/BlockSuite/pull/7047 @fundon
- https://github.com/toeverything/BlockSuite/pull/7043 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7041 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7038 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7040 @regischen
## Refactor
- https://github.com/toeverything/BlockSuite/pull/7068 @doouding
- https://github.com/toeverything/BlockSuite/pull/7069 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7065 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7048 @fundon
- https://github.com/toeverything/BlockSuite/pull/7045 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7046 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7039 @Flrande
- https://github.com/toeverything/BlockSuite/pull/7036 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7032 @Saul-Mirone
## Misc
- https://github.com/toeverything/BlockSuite/pull/7063 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7050 @fourdim
- https://github.com/toeverything/BlockSuite/pull/7044 @doouding
- https://github.com/toeverything/BlockSuite/pull/7042 @Flrande
- https://github.com/toeverything/BlockSuite/pull/6992 @doouding
2024-05-17 03:44:11 +00:00
JimmFly
a61ded3f25
fix(core): add affine.pro to trustedDomain ( #6943 )
2024-05-15 09:00:15 +00:00
EYHN
4ebe8f5fb4
chore(core): improve export snapshot tool ( #6863 )
2024-05-13 04:00:47 +00:00
JimmFly
f94306703a
feat(core): tag groups sorted alphabetically ( #6865 )
...
feat(core): tag groups sorted alphabetically
feat(core): add display group to collection page and tag page
<img width="755" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/17a5abbe-cd1a-4ce2-8adc-f9aa5b6d6e77 ">
2024-05-13 03:48:17 +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
b8a1fbd6c7
fix(core): add margin to scrollbar when clientBorder has no style ( #6867 )
...
close #6684
https://github.com/toeverything/AFFiNE/assets/102217452/9de18009-c718-4bdd-88fd-caafdb5b419c
2024-05-11 05:44:48 +00:00
JimmFly
eac55fe1c1
feat(core): add multiDelete to trash page ( #6798 )
...
close #6739
https://github.com/toeverything/AFFiNE/assets/102217452/b1779cdf-f617-4188-ad29-70ec1695af1b
2024-05-07 06:54:59 +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
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
e13024580d
feat(core): add ai subscription landing page ( #6657 )
2024-04-22 09:03:27 +00:00
EYHN
d36b5e14aa
feat(core): try cloud link ( #6660 )
2024-04-22 08:51:02 +00:00
EYHN
9fd3f29d1b
fix(core): fix home page init cloud ( #6654 )
2024-04-22 08:05:20 +00:00
forehalo
e8bcb75602
fix(server): use post request to consume magic link token ( #6656 )
2024-04-22 07:15:26 +00:00
EYHN
4085cc6728
fix(core): fix subscribe link for pro plan ( #6627 )
2024-04-19 06:36:38 +00:00
EYHN
09832dc940
feat(core): add subscribe link ( #6610 )
2024-04-18 13:28:32 +00:00
EYHN
06fda3b62c
feat(infra): framework
2024-04-17 15:09:09 +08:00
forehalo
66a272fb8b
fix(core): unable to redirect to same origin paths ( #6586 )
2024-04-17 03:25:31 +00:00
JimmFly
f6fcbd8ea9
fix(core): signIn page style ( #6582 )
2024-04-16 12:56:12 +00:00
CatsJuice
b93e79c59d
feat(core): ai onboarding for edgeless mode ( #6556 )
2024-04-15 07:25:37 +00:00
donteatfriedrice
7b35722288
feat: bump blocksuite ( #6541 )
...
## Features
- https://github.com/toeverything/BlockSuite/pull/6737 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/6735 @pengx17
- https://github.com/toeverything/BlockSuite/pull/6740 @regischen
## Bugfix
- https://github.com/toeverything/BlockSuite/pull/6744 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/6742 @doouding
## Refactor
## Misc
- https://github.com/toeverything/BlockSuite/pull/6741 @fundon
2024-04-15 03:06:38 +00:00
EYHN
d11d69ddf6
feat(core): move help island to workbench ( #6535 )
2024-04-15 02:29:15 +00:00
EYHN
1656b33ce3
feat(core): use zip snapshot for onboarding page ( #6495 )
2024-04-15 02:16:08 +00:00
CatsJuice
6a535b94c3
feat(core): create and open cloud workspace if not exists after logged in ( #6511 )
...
Only execute when `initCloud=true` is specified in the URL search params.
2024-04-12 09:55:45 +00:00
pengx17
4a67c84c73
fix(core): chat panel display on cont in chat ( #6527 )
2024-04-12 03:58:43 +00:00
JimmFly
6ea20e477b
feat(core): add sign in to not found page ( #6496 )
...
close AFF-211
2024-04-10 07:27:02 +00:00
L-Sun
7d131ee9fc
fix(core): viewport element not found in share page ( #6453 )
2024-04-10 15:26:22 +08:00
JimmFly
142896c41a
fix(core): remove unexpected duplicate notification ( #6477 )
...
close TOV-775
2024-04-09 04:28:31 +00:00
liuyi
6fa4b7da54
feat(core): avoid popup window being blocked ( #6451 )
2024-04-03 16:50:09 +08:00
CatsJuice
9127bfae67
refactor(core): replace all notification relies on jotai ( #6417 )
...
- remove all notification that implemented with jotai and replaced with new `notify`
- Add some notify presets:
- `notify.error`
- `notify.success`
- `notify.warning`
2024-04-02 03:19:07 +00:00
JimmFly
62d9b0c959
fix(core): unexpected editable state after trash page refresh ( #6433 )
...
close TOV-772
2024-04-01 08:16:17 +00:00
JimmFly
2631b41e6d
feat(core): add new doc button to collection page ( #6423 )
...
close TOV-64
You can add this document to the collection while creating a new document on the collection page.
<img width="790" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/828f80af-a1a5-47c2-98c2-a574cf79052c ">
2024-04-01 08:05:23 +00:00
JimmFly
2576a69eb6
fix(core): unexpected response style of shared page ( #6383 )
2024-03-29 05:29:54 +00:00
EYHN
ba9dad95b4
fix(core): improve performance ( #6345 )
2024-03-27 14:01:54 +00:00
pengx17
d4c7d58b00
fix: use overflow: clip instead of js to prevent scrolling with pgup/pgdown ( #6338 )
2024-03-27 07:07:22 +00:00
pengx17
5ca17c155a
fix(core): editor pgup/pgdn issues ( #6331 )
...
fix https://github.com/toeverything/AFFiNE/issues/6232
2024-03-27 04:47:32 +00:00
EYHN
cccf864ed9
fix(core): duplicate window controls in trash ( #6329 )
...
fix https://github.com/toeverything/AFFiNE/issues/6310
2024-03-27 02:37:53 +00:00
EYHN
16063340d0
fix(core): fix meta.xxx is undefined ( #6321 )
2024-03-26 08:53:14 +00:00
fundon
8ee9f6ec05
chore: improve password error message ( #6255 )
...
chore: improve error message
chore: add password minlength & maxlength i18n
chore: check max length
fix: i18n variables
feat: add CredentialsRequirementType
2024-03-26 07:15:06 +00:00
EYHN
3e547ce4cc
fix(core): hidden modals when workspace fallback ( #6301 )
2024-03-25 13:52:08 +00:00
JimmFly
1ff6af85f5
feat(core): add page group and display properties ( #6228 )
...
close TOV-23
https://github.com/toeverything/AFFiNE/assets/102217452/c05474de-b73c-40ab-9f18-cc43bb9fd828
2024-03-25 07:53:33 +00:00