Peng Xiao
ce64685176
refactor(core): side bar resizing ( #5280 )
...
Rewrite sidebar panel using a customized react-resizable-panels version that supports sidebar pixel sizing (not using flex percentages).
Now the left & right sidebar using the same `ResizePanel` impl.
fix https://github.com/toeverything/AFFiNE/issues/5271
fix TOV-163
fix TOV-146
fix TOV-168
fix TOV-109
fix TOV-165
2023-12-13 07:52:01 +00:00
Peng Xiao
883ab46557
fix(core): bg color issues in transparent mode ( #5278 )
...
fix the following style issue
![CleanShot 2023-12-13 at 00.06.13@2x.png ](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/46f5e766-e6c9-4965-bab7-6fd6dbb2c651.png )
2023-12-13 07:14:24 +00:00
JimmFly
f4a52c031f
feat(core): support sidebar page item dnd ( #5132 )
...
Added the ability to drag page items from the `all pages` view to the sidebar, including `favourites,` `collection` and `trash`. Page items in `favourites` and `collection` can also be dragged between each other. However, linked subpages cannot be dragged.
Additionally, an operation menu and ‘add’ button have been provided for the sidebar’s page items, enabling the addition of a subpage, renaming, deletion or removal from the sidebar.
On the code front, the `useSidebarDrag` hooks have been implemented for consolidating drag events. The functions `getDragItemId` and `getDropItemId` have been created, and they accept type and ID to obtain itemId.
https://github.com/toeverything/AFFiNE/assets/102217452/d06bac18-3c28-41c9-a7d4-72de955d7b11
2023-12-12 16:04:58 +00:00
Flrande
9aa33d0228
feat: bump blocksuite ( #5267 )
...
Change history: 2b5bb47...2b3d2ba
2023-12-12 06:18:30 +00:00
Peng Xiao
cfd200528f
fix(component): revert theme flickering ( #5238 ) ( #5256 )
...
This reverts commit e8cfc807ea
.
2023-12-11 06:05:16 +00:00
Peng Xiao
5979162a5c
fix(component): theme flickering ( #5238 )
...
Add color-scheme to html so that the web will use system scheme when scripts has not being loaded;
Use `(prefers-color-scheme: dark)` so that the css vars do not defer load based on `data-theme`, which is set by next-themes (which is deferred).
2023-12-08 10:12:20 +00:00
LongYinan
feed400462
chore: bump up vite version to v5 ( #5203 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vitejs.dev ) ([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite )) | [`^4.4.11` -> `^5.0.0`](https://renovatebot.com/diffs/npm/vite/4.5.1/5.0.6 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/4.5.1/5.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/4.5.1/5.0.6?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>vitejs/vite (vite)</summary>
### [`v5.0.6`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small506-2023-12-06-small )
[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.5...v5.0.6 )
- perf: in-memory public files check ([#​15195](https://togithub.com/vitejs/vite/issues/15195 )) ([0f9e1bf](https://togithub.com/vitejs/vite/commit/0f9e1bf )), closes [#​15195](https://togithub.com/vitejs/vite/issues/15195 )
- chore: remove unneccessary eslint-disable-next-line regexp/no-unused-capturing-group ([#​15247](https://togithub.com/vitejs/vite/issues/15247 )) ([35a5bcf](https://togithub.com/vitejs/vite/commit/35a5bcf )), closes [#​15247](https://togithub.com/vitejs/vite/issues/15247 )
### [`v5.0.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small505-2023-12-04-small )
[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.4...v5.0.5 )
- fix: emit `vite:preloadError` for chunks without deps ([#​15203](https://togithub.com/vitejs/vite/issues/15203 )) ([d8001c5](https://togithub.com/vitejs/vite/commit/d8001c5 )), closes [#​15203](https://togithub.com/vitejs/vite/issues/15203 )
- fix: esbuild glob import resolve error ([#​15140](https://togithub.com/vitejs/vite/issues/15140 )) ([676804d](https://togithub.com/vitejs/vite/commit/676804d )), closes [#​15140](https://togithub.com/vitejs/vite/issues/15140 )
- fix: json error with position ([#​15225](https://togithub.com/vitejs/vite/issues/15225 )) ([14be75f](https://togithub.com/vitejs/vite/commit/14be75f )), closes [#​15225](https://togithub.com/vitejs/vite/issues/15225 )
- fix: proxy html path should be encoded ([#​15223](https://togithub.com/vitejs/vite/issues/15223 )) ([5b85040](https://togithub.com/vitejs/vite/commit/5b85040 )), closes [#​15223](https://togithub.com/vitejs/vite/issues/15223 )
- fix(deps): update all non-major dependencies ([#​15233](https://togithub.com/vitejs/vite/issues/15233 )) ([ad3adda](https://togithub.com/vitejs/vite/commit/ad3adda )), closes [#​15233](https://togithub.com/vitejs/vite/issues/15233 )
- fix(hmr): don't consider CSS dep as a circular dep ([#​15229](https://togithub.com/vitejs/vite/issues/15229 )) ([5f2cdec](https://togithub.com/vitejs/vite/commit/5f2cdec )), closes [#​15229](https://togithub.com/vitejs/vite/issues/15229 )
- feat: add '\*.mov' to client.d.ts ([#​15189](https://togithub.com/vitejs/vite/issues/15189 )) ([d93a211](https://togithub.com/vitejs/vite/commit/d93a211 )), closes [#​15189](https://togithub.com/vitejs/vite/issues/15189 )
- feat(server): allow disabling built-in shortcuts ([#​15218](https://togithub.com/vitejs/vite/issues/15218 )) ([7fd7c6c](https://togithub.com/vitejs/vite/commit/7fd7c6c )), closes [#​15218](https://togithub.com/vitejs/vite/issues/15218 )
- chore: replace 'some' with 'includes' in resolveEnvPrefix ([#​15220](https://togithub.com/vitejs/vite/issues/15220 )) ([ee12f30](https://togithub.com/vitejs/vite/commit/ee12f30 )), closes [#​15220](https://togithub.com/vitejs/vite/issues/15220 )
- chore: update the website url for homepage in package.json ([#​15181](https://togithub.com/vitejs/vite/issues/15181 )) ([282bd8f](https://togithub.com/vitejs/vite/commit/282bd8f )), closes [#​15181](https://togithub.com/vitejs/vite/issues/15181 )
- chore: update vitest to 1.0.0-beta.6 ([#​15194](https://togithub.com/vitejs/vite/issues/15194 )) ([2fce647](https://togithub.com/vitejs/vite/commit/2fce647 )), closes [#​15194](https://togithub.com/vitejs/vite/issues/15194 )
- refactor: make HMR agnostic to environment ([#​15179](https://togithub.com/vitejs/vite/issues/15179 )) ([0571b7c](https://togithub.com/vitejs/vite/commit/0571b7c )), closes [#​15179](https://togithub.com/vitejs/vite/issues/15179 )
- refactor: use dedicated regex methods ([#​15228](https://togithub.com/vitejs/vite/issues/15228 )) ([0348137](https://togithub.com/vitejs/vite/commit/0348137 )), closes [#​15228](https://togithub.com/vitejs/vite/issues/15228 )
- perf: remove debug only prettifyUrl call ([#​15204](https://togithub.com/vitejs/vite/issues/15204 )) ([73e971f](https://togithub.com/vitejs/vite/commit/73e971f )), closes [#​15204](https://togithub.com/vitejs/vite/issues/15204 )
- perf: skip computing sourceRoot in injectSourcesContent ([#​15207](https://togithub.com/vitejs/vite/issues/15207 )) ([1df1fd1](https://togithub.com/vitejs/vite/commit/1df1fd1 )), closes [#​15207](https://togithub.com/vitejs/vite/issues/15207 )
### [`v5.0.4`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small504-2023-11-29-small )
[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.3...v5.0.4 )
- fix: bindCLIShortcuts to proper server ([#​15162](https://togithub.com/vitejs/vite/issues/15162 )) ([67ac572](https://togithub.com/vitejs/vite/commit/67ac572 )), closes [#​15162](https://togithub.com/vitejs/vite/issues/15162 )
- fix: revert "fix: js fallback sourcemap content should be using original content ([#​15135](https://togithub.com/vitejs/vite/issues/15135 ))" ([#​15178](https://togithub.com/vitejs/vite/issues/15178 )) ([d2a2493](https://togithub.com/vitejs/vite/commit/d2a2493 )), closes [#​15135](https://togithub.com/vitejs/vite/issues/15135 ) [#​15178](https://togithub.com/vitejs/vite/issues/15178 )
- fix(define): allow define process.env ([#​15173](https://togithub.com/vitejs/vite/issues/15173 )) ([ec401da](https://togithub.com/vitejs/vite/commit/ec401da )), closes [#​15173](https://togithub.com/vitejs/vite/issues/15173 )
- fix(resolve): respect order of browser in mainFields when resolving ([#​15137](https://togithub.com/vitejs/vite/issues/15137 )) ([4a111aa](https://togithub.com/vitejs/vite/commit/4a111aa )), closes [#​15137](https://togithub.com/vitejs/vite/issues/15137 )
- feat: preserve vite.middlewares connect instance after restarts ([#​15166](https://togithub.com/vitejs/vite/issues/15166 )) ([9474c4b](https://togithub.com/vitejs/vite/commit/9474c4b )), closes [#​15166](https://togithub.com/vitejs/vite/issues/15166 )
- refactor: align with Promise.withResolvers() ([#​15171](https://togithub.com/vitejs/vite/issues/15171 )) ([642f9bc](https://togithub.com/vitejs/vite/commit/642f9bc )), closes [#​15171](https://togithub.com/vitejs/vite/issues/15171 )
### [`v5.0.3`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small503-2023-11-28-small )
[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.2...v5.0.3 )
- fix: `generateCodeFrame` infinite loop ([#​15093](https://togithub.com/vitejs/vite/issues/15093 )) ([6619de7](https://togithub.com/vitejs/vite/commit/6619de7 )), closes [#​15093](https://togithub.com/vitejs/vite/issues/15093 )
- fix: js fallback sourcemap content should be using original content ([#​15135](https://togithub.com/vitejs/vite/issues/15135 )) ([227d56d](https://togithub.com/vitejs/vite/commit/227d56d )), closes [#​15135](https://togithub.com/vitejs/vite/issues/15135 )
- fix(css): render correct asset url when CSS chunk name is nested ([#​15154](https://togithub.com/vitejs/vite/issues/15154 )) ([ef403c0](https://togithub.com/vitejs/vite/commit/ef403c0 )), closes [#​15154](https://togithub.com/vitejs/vite/issues/15154 )
- fix(css): use non-nested chunk name if facadeModule is not CSS file ([#​15155](https://togithub.com/vitejs/vite/issues/15155 )) ([811e392](https://togithub.com/vitejs/vite/commit/811e392 )), closes [#​15155](https://togithub.com/vitejs/vite/issues/15155 )
- fix(dev): bind plugin context functions ([#​14569](https://togithub.com/vitejs/vite/issues/14569 )) ([cb3243c](https://togithub.com/vitejs/vite/commit/cb3243c )), closes [#​14569](https://togithub.com/vitejs/vite/issues/14569 )
- chore(deps): update all non-major dependencies ([#​15145](https://togithub.com/vitejs/vite/issues/15145 )) ([7ff2c0a](https://togithub.com/vitejs/vite/commit/7ff2c0a )), closes [#​15145](https://togithub.com/vitejs/vite/issues/15145 )
- build: handle latest json-stable-stringify replacement ([#​15049](https://togithub.com/vitejs/vite/issues/15049 )) ([bcc4a61](https://togithub.com/vitejs/vite/commit/bcc4a61 )), closes [#​15049](https://togithub.com/vitejs/vite/issues/15049 )
### [`v5.0.2`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small502-2023-11-21-small )
[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.1...v5.0.2 )
- fix: make htmlFallback more permissive ([#​15059](https://togithub.com/vitejs/vite/issues/15059 )) ([6fcceeb](https://togithub.com/vitejs/vite/commit/6fcceeb )), closes [#​15059](https://togithub.com/vitejs/vite/issues/15059 )
### [`v5.0.1`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small501-2023-11-21-small )
- test: avoid read check when running as root ([#​14884](https://togithub.com/vitejs/vite/issues/14884 )) ([1d9516c](https://togithub.com/vitejs/vite/commit/1d9516c )), closes [#​14884](https://togithub.com/vitejs/vite/issues/14884 )
- perf(hmr): skip traversed modules when checking circular imports ([#​15034](https://togithub.com/vitejs/vite/issues/15034 )) ([41e437f](https://togithub.com/vitejs/vite/commit/41e437f )), closes [#​15034](https://togithub.com/vitejs/vite/issues/15034 )
- fix: run htmlFallbackMiddleware for no accept header requests ([#​15025](https://togithub.com/vitejs/vite/issues/15025 )) ([b93dfe3](https://togithub.com/vitejs/vite/commit/b93dfe3 )), closes [#​15025](https://togithub.com/vitejs/vite/issues/15025 )
- fix: update type CSSModulesOptions interface ([#​14987](https://togithub.com/vitejs/vite/issues/14987 )) ([d0b2153](https://togithub.com/vitejs/vite/commit/d0b2153 )), closes [#​14987](https://togithub.com/vitejs/vite/issues/14987 )
- fix(legacy): error in build with --watch and manifest enabled ([#​14450](https://togithub.com/vitejs/vite/issues/14450 )) ([b9ee620](https://togithub.com/vitejs/vite/commit/b9ee620 )), closes [#​14450](https://togithub.com/vitejs/vite/issues/14450 )
- chore: add comment about crossorigin attribute for script module ([#​15040](https://togithub.com/vitejs/vite/issues/15040 )) ([03c371e](https://togithub.com/vitejs/vite/commit/03c371e )), closes [#​15040](https://togithub.com/vitejs/vite/issues/15040 )
- chore: cleanup v5 beta changelog ([#​14694](https://togithub.com/vitejs/vite/issues/14694 )) ([531d3cb](https://togithub.com/vitejs/vite/commit/531d3cb )), closes [#​14694](https://togithub.com/vitejs/vite/issues/14694 )
### [`v5.0.0`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#500-2023-11-16 )
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-08 09:57:11 +00:00
Peng Xiao
fcd43033fe
fix(electron): sync settings from localStorage -> atom -> electron ( #5020 )
...
- moved `appSettingAtom` to infra since we now have different packages that depends on it. There is no better place to fit in for now
- use atomEffect to sync setting changes to updater related configs to Electron side
- refactored how Electron reacts to updater config changes.
2023-12-08 03:20:02 +00:00
Umar Faiz
453d4db713
fix: close font calt to avoid render twinkle ( #4969 )
2023-12-08 03:08:59 +00:00
Rakhee Singh
780ffd94dc
feat(core): added new filter for last n days ( #5167 )
...
Co-authored-by: rakhee28 <rakhee@strings.ai>
Co-authored-by: EYHN <cneyhn@gmail.com>
2023-12-08 11:08:15 +08:00
Peng Xiao
5352736eba
feat(component): new right sidebar ( #5169 )
...
Refactor AFFiNE layout to support new right sidebar.
The new layout:
![image](https://github.com/toeverything/AFFiNE/assets/584378/678a05f5-bd48-4dbe-ad78-7a0bcc979918 )
**Highlights:**
- new sidebar UI/UX
- favoring top-down UI components that are composed by basic building blocks in each route, instead of creating universal component like `WorkspaceHeader` that renders every possible cases (which I think is really hard to maintain)
- remove plugin based solution
**Pros/cons for current plugin-based solution:**
The current solution is somewhat a Dependency Injection (DI) approach, where the layout is defined at the top and UI items can be injected using Jotai atom slots.
This approach works well if we want a fully configurable system with everything being handled by plugins. It provides flexibility for custom extensions.
However, this solution is more suitable for single-page applications where the UI is completely controlled by configuration. It becomes challenging to achieve an optimized and visually appealing UI that remains under our control. An example of such a scenario would be a customizable dashboard like Grafana.
Another drawback of the existing solution is that we need to use Jotai and hooks to access context values, resulting in an unclear data flow within the component hierarchy.
**Alternatively, our approach in this PR** provides layout building blocks such as headers and sidebars, which can then be composed in individual route components. The good is that we have cleaner biz component instead of vague all-in-one layout component (like `<WorkspaceHeader />`).
**Issues of the implementation in this PR:**
Some UI layouts that that seems to be defined at the root layout are now defined in individual route component instead.
New 3-col layout component like the right sidebar still needs some abstraction and they are right now just for the detail editor only.
2023-12-08 01:03:48 +00:00
Peng Xiao
ed8e526f71
fix(core): remove duplicate loading component ( #5168 )
2023-12-07 15:34:10 +00:00
Peng Xiao
352bb548f0
fix(core): update noise image ( #5219 )
...
seems https://github.com/toeverything/AFFiNE/pull/4946 not in latest canary.
2023-12-07 15:11:00 +00:00
Yifeng Wang
d507c24570
feat: bump blocksuite ( #5228 )
2023-12-07 19:28:49 +08:00
Yifeng Wang
819f0243d5
feat: bump blocksuite ( #5218 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-12-07 18:24:23 +08:00
JimmFly
7ec8e49b3b
feat(core): add responsive styles to registration page ( #5044 )
...
The responsive style of the login and registration page has been adjusted, with special treatment given to the input.
work for #4843
2023-12-06 10:43:14 +00:00
Yifeng Wang
6cbf5b2a92
feat: bump blocksuite ( #5194 )
...
Co-authored-by: AyushAgrawal-A2 <ayushagl06@gmail.com>
2023-12-06 18:15:03 +08:00
JimmFly
b32a427ecd
chore: adjust banner content text ( #5153 )
...
![image](https://github.com/toeverything/AFFiNE/assets/102217452/86a77f1f-1be5-4d05-bdfa-9e1b321c0d9e )
2023-12-06 08:13:56 +00:00
Peng Xiao
1e01ed0b0f
fix(component): modal blurness ( #5177 )
...
moved https://github.com/toeverything/design/pull/108
Do not use transform to center the modal. It has know issue to cause modal to have blurred texts.
https://github.com/radix-ui/website/issues/383
fix https://github.com/toeverything/AFFiNE/issues/5176
2023-12-05 09:18:49 +00:00
Cats Juice
1cd8de9d60
fix(component): clear page list operation's link style ( #5148 )
...
- before
![CleanShot 2023-12-01 at 12 03 24@2x](https://github.com/toeverything/AFFiNE/assets/39363750/6951ee61-d3c3-43b3-8949-fe6ed9ceb99e )
- after
![CleanShot 2023-12-01 at 12 08 02@2x](https://github.com/toeverything/AFFiNE/assets/39363750/2a85e5f7-9156-4aef-81a2-76d66a673ebd )
2023-12-05 07:01:42 +00:00
LongYinan
1dacb21178
chore: bump up @dnd-kit/modifiers version to v7 ( #5189 )
...
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@dnd-kit/modifiers](https://togithub.com/clauderic/dnd-kit ) ([source](https://togithub.com/clauderic/dnd-kit/tree/HEAD/packages/modifiers )) | [`^6.0.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/@dnd-kit%2fmodifiers/6.0.1/7.0.0 ) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@dnd-kit%2fmodifiers/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@dnd-kit%2fmodifiers/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@dnd-kit%2fmodifiers/6.0.1/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@dnd-kit%2fmodifiers/6.0.1/7.0.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>clauderic/dnd-kit (@​dnd-kit/modifiers)</summary>
### [`v7.0.0`](https://togithub.com/clauderic/dnd-kit/blob/HEAD/packages/modifiers/CHANGELOG.md#700 )
[Compare Source](https://togithub.com/clauderic/dnd-kit/compare/@dnd-kit/modifiers@6.0.1...@dnd-kit/modifiers@7.0.0 )
##### Patch Changes
- Updated dependencies \[[`bc588c7`](bc588c7f7b
), [`b417f0f`](b417f0f94b
), [`f342d5e`](f342d5efd9
)]:
- [@​dnd-kit/core](https://togithub.com/dnd-kit/core )[@​6](https://togithub.com/6 ).1.0
- [@​dnd-kit/utilities](https://togithub.com/dnd-kit/utilities )[@​3](https://togithub.com/3 ).2.2
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSJ9-->
2023-12-05 04:05:29 +00:00
Flrande
a2784c352f
chore: bump blocksuite ( #5138 )
2023-12-04 12:02:35 +00:00
Cats Juice
d911d21d1c
feat(component): add storybook ( #5079 )
2023-12-04 08:32:19 +00:00
Cats Juice
9c50dbc362
feat(core): remove all imports from design/component ( #5078 )
...
feat(core): remove all imports from design/component
feat(plugin): remove imports from design-components
feat(storybook): remove design-components imoprts
feat(core): remove
fix(component): remove design/component import in local-demo-tip
2023-12-04 08:32:16 +00:00
Cats Juice
0abadbe7bb
refactor(component): migrate design components ( #5000 )
...
```[tasklist]
### Tasks
- [x] Migrate components from [design](https://github.com/toeverything/design )
- [x] Replace all imports from `@toeverything/components`
- [x] Clean up `@toeverything/components` dependencies
- [x] Storybook
```
### Influence
Here are all the components that are influenced by `@toeverything/components`
- `@affine/component`
- App update `Button` `Tooltip`
- App sidebar header `IconButton`, `Tooltip`
- Back `Button`
- Auth
- Change email page save `Button`
- Change password page all `Button`s (Save, Later, Open)
- Confirm change email `Button`
- Set password page `Button`
- Sign in success page `Button`
- Sign up page `Button`
- Auth `Modal`
- Workspace card `Avatar`, `Divider`, `Tooltip`, `IconButton`
- Share
- Disable shared public link `Modal`
- Import page `IconButton`, `Tooltip`
- Accept invite page `Avatar`, `Button`
- Invite member `Modal`
- 404 Page `Avatar`, `Button`, `IconButton`, `Tooltip`
- Notification center `IconButton`
- Page list
- operation cell `IconButton`, `Menu`, `ConfirmModal`, `Tooltip`
- tags more `Menu`
- favorite `IconButton`, `Tooltip`
- new page dropdown `Menu`
- filter `Menu`, `Button`, `IconButton`
- Page operation `Menu`
- export `MenuItem`
- move to trash `MenuItem`, `ConfirmModal`
- Workspace header filter `Menu`, `Button`
- Collection bar `Button`, `Tooltip` (*⚠️ seems not used*)
- Collection operation `Menu`, `MenuItem`
- Create collection `Modal`, `Button`
- Edit collection `Modal`, `Button`
- Page mode filter `Menu`
- Page mode `Button`, `Menu`
- Setting modal
- storage usage progress `Button`, `Tooltip`
- On boarding tour `Modal`
- `@affine/core`
- Bookmark `Menu`
- Affine error boundary `Button`
- After sign in send email `Button`
- After sign up send email `Button`
- Send email `Button`
- Sign in `Button`
- Subscription redirect `Loading`, `Button`
- Setting `Modal`
- User plan button `Tooltip`
- Members `Avatar`, `Button`, `IconButton`, `Loading`, `Tooltip`, `Menu`
- Profile `Button`, `Avatar`
- Workspace
- publish panel `Button`, `Tooltip`
- export panel `Button`
- storage panel `Button`, `Tooltip`
- delete `ConfirmModal`
- Language `Menu`
- Account setting `Avatar`, `Button`
- Date format setting `Menu`
- Billing `Button`, `IconButton`, `Loading`
- Payment plans `Button`, `ConfirmModal`, `Modal`, `Tooltip`
- Create workspace `Modal`, `ConfirmModal`, `Button`
- Payment disabled `ConfirmModal`
- Share/Export `Menu`, `Button`, `Divider`
- Sign out `ConfirmModal`
- Temp disable affine cloud `Modal`
- Page detail operation `Menu`
- Blocksuite mode switch `Tooltip`
- Login card `Avatar`
- Help island `Tooltip`
- `plugin`
- copilot
- hello world
- image preview
- outline
2023-12-04 08:32:12 +00:00
Joooye_34
eb7d293aaa
fix(core): implement editor timeout and report error from boundary ( #5105 ) ( #5151 )
...
fix(core): implement editor timeout and report error from boundary (#5105 )
ci: add sentry env when frontend assets build (#5131 )
fix(core): expose catched editor load error (#5133 )
fix(infra): use blocksuite api to check compatibility (#5137 )
fix(infra): compatibility logic follow blocksuite (#5143 )
fix(core): rerender error boundary when route change and improve sentry report (#5147 )
2023-12-01 07:25:08 +00:00
JimmFly
3e662f358d
fix(core): adjust ui styles ( #5094 )
2023-11-30 12:23:57 +08:00
JimmFly
23518cae16
feat(core): add manual check for updates ( #4957 )
...
work for #4523
add `appBuildType` to `runtimeConfig`
add `useAppUpdater` to manage client updates
<!--
copilot:summary
-->
### <samp>🤖 [[deprecated]](https://githubnext.com/copilot-for-prs-sunset ) Generated by Copilot at cdd012c</samp>
This pull request refactors and enhances the update functionality for the frontend. It introduces a new custom hook `useAppUpdater` that simplifies the update logic and state management, and uses it in various components and commands. It also adds more options and feedback for the user to control and monitor the update process, such as manual download, auto-check, and auto-download toggles, and update status and progress indicators. It also updates the `AboutAffine` component to show the app icon, version, and build type. It also adds new translations, dependencies, types, and schemas related to the update functionality.
<img width="1073" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/16ae7a6a-0035-4e57-902b-6b8f63169501 ">
2023-11-29 13:31:25 +00:00
LongYinan
7a7cbc45d7
fix: add prefer-readonly rule ( #5122 )
2023-11-29 15:19:00 +08:00
LongYinan
e9ea67bd38
fix: add prefer-for-of rule ( #5121 )
2023-11-29 15:18:52 +08:00
LongYinan
cb2c659f52
fix: add no-new-array rule ( #5117 )
2023-11-29 04:44:06 +00:00
LongYinan
4dddbbdaee
fix: add prefer-dom-node-remove rule ( #5112 )
2023-11-29 04:43:51 +00:00
LongYinan
23cfc58fe2
fix: add prefer-dom-node-append rule ( #5108 )
2023-11-29 04:43:39 +00:00
LongYinan
923844f302
fix: add eqeqeq lint rule ( #5106 )
2023-11-29 04:43:31 +00:00
LongYinan
a843dcd851
fix: resolve cycle imports and prevent it by oxlint ( #5103 )
2023-11-29 04:43:27 +00:00
JimmFly
469a18f794
feat(component): default collapse and float sidebar on mobile ( #5077 )
...
work for #4843
https://github.com/toeverything/AFFiNE/assets/102217452/c658dbab-4db8-4065-a3a6-3e20274b6cb9
2023-11-29 02:12:13 +00:00
Peng Xiao
3891f23dfa
fix(component): rework tags list collapsing ( #5072 )
...
Before:
![CleanShot 2023-11-27 at 16.39.55@2x.png ](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/2ac2b8e3-6c30-41f7-a9b2-7a9c81b250fa.png )
After:
![CleanShot 2023-11-27 at 16.38.50@2x.png ](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/12eac806-e641-45be-9215-d166f8733db9.png )
2023-11-27 09:56:25 +00:00
Peng Xiao
71d6b730f7
chore: bump blocksuite ( #5051 )
...
https://github.com/toeverything/blocksuite/pull/5337
2023-11-27 04:46:23 +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
LongYinan
25eda22af6
v0.10.3-canary.2
2023-11-23 16:47:40 +08: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
Peng Xiao
ca07b143ef
fix(core): should not reset page preset on rerender ( #5034 )
...
Should not reset editor preset when re-render.
See ce7ac88fc7/packages/editor/src/components/editor-container.ts (L197)
. If these props changes, it will trigger some unexpected side effects.
2023-11-22 18:29:34 +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
李华桥
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
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
9bab1b5dff
feat(core): keep the latest toast showing when multiple call ( #4961 )
2023-11-20 10:47:09 +08:00
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
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
9ac8a32e00
perf(component): use png instead of svg for rendering noise svg ( #4935 )
2023-11-14 23:03:19 +08:00
Peng Xiao
76b585d1ef
fix(storybook): page tags display ( #4924 )
2023-11-14 09:45:12 +08:00
Joooye_34
30bac7dce2
ci(core): eslint errors for core ( #4662 )
2023-11-10 10:25:59 +00:00
Yifeng Wang
28177657ef
chore: bump theme ( #4904 )
...
Co-authored-by: 李华桥 <joooye1991@gmail.com>
2023-11-10 15:42:06 +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
李华桥
063f5a683e
v0.10.0-canary.16
2023-11-10 10:10:54 +08:00
李华桥
075eead9fa
v0.10.0-canary.15
2023-11-09 23:27:12 +08: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
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
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
3720
08e7fa3486
fix(core): improve the UX for edit collection ( #4827 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-11-07 10:18:56 +00:00
Joooye_34
f50b8002b3
v0.10.0-canary.13
2023-11-07 09:55:30 +08:00
Joooye_34
8554d5d791
v0.10.0-canary.12
2023-11-07 00:13:51 +08:00
Joooye_34
3b74ff2b92
v0.10.0-canary.11
2023-11-06 18:10:28 +08:00
JimmFly
9664d142ad
feat(core): temporary expansion files are limited to 100M ( #4833 )
2023-11-06 06:38:46 +00:00
Cats Juice
3c4dbed16b
fix(core): payment UI fix ( #4839 )
2023-11-06 02:40:52 +00:00
Joooye_34
97db941749
fix(core): remove responsive editor width ( #4821 )
2023-11-03 04:47:51 +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
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
Joooye_34
75c8dd75e3
v0.10.0-canary.9
2023-11-01 22:03:47 +08:00
3720
e5be570f54
fix(core): text color of search input, style for the multi-select tag, date-picker autofocus issue ( #4799 )
2023-11-01 09:28:00 +00:00
Joooye_34
0273ea8b00
v0.10.0-canary.8
2023-11-01 00:03:04 +08:00
JimmFly
97d189f1c8
fix(component): adjust autofill style ( #4773 )
2023-10-31 15:30:35 +00:00
Peng Xiao
f08408ebe5
fix(core): possible crash issues ( #4783 )
2023-10-31 08:56:14 +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
Peng Xiao
9e3c79526c
fix(core): selectAtom crash on isEqual ( #4780 )
2023-10-31 03:29:18 +00:00
Joooye_34
17afe218fe
v0.10.0-canary.4
2023-10-31 01:49:15 +08:00
zzj3720
f23ec9063c
feat(collections): completion i18n
2023-10-30 17:06:59 +08:00
DarkSky
95c1a44a0d
Merge branch 'master' into payment-system
2023-10-30 01:55:51 -05:00
3720
ef8024c657
feat: new collections ( #4530 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-10-27 09:06:59 +00:00
Joooye_34
385de7d33b
Merge remote-tracking branch 'origin/master' into payment-system
2023-10-27 16:04:48 +08:00
JimmFly
e0f7ac426c
feat(core): add translation key for payment ( #4723 )
2023-10-26 16:15:12 +08:00
JimmFly
ae6376edee
chore(core): update communities icon ( #4719 )
2023-10-25 10:45:54 +00:00
JimmFly
df69c908fe
feat(core): adapt storage progress to payment system ( #4713 )
2023-10-25 16:18:30 +08:00
joooye34
559ec3956f
v0.10.0-canary.3
2023-10-24 20:18:21 +08:00
Flrande
627e5dfbb5
feat: bump blocksuite ( #4706 )
2023-10-24 09:00:27 +00:00
JimmFly
5226d6c568
feat(core): add search result highlighting ( #4667 )
...
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
2023-10-24 05:54:37 +00:00
liuyi
858a1da35f
feat(core): impl billing settings ( #4652 )
2023-10-24 11:40:46 +08:00
dependabot[bot]
e75a0743f8
chore: bump @mui/material from 5.14.13 to 5.14.14 ( #4678 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 08:07:04 +00:00
dependabot[bot]
b52e006bfe
chore: bump @mui/icons-material from 5.14.13 to 5.14.14 ( #4680 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 07:04:49 +00:00
Peng Xiao
817463c40e
feat(component): checkbox ( #4665 )
2023-10-20 03:46:44 +00:00
LongYinan
37c6560dd6
v0.10.0-canary.2
2023-10-19 17:18:18 +08:00
Joooye_34
bed9310519
refactor(infra): directory structure ( #4615 )
2023-10-18 15:30:08 +00:00