Commit Graph

6521 Commits

Author SHA1 Message Date
EYHN
96fed60655
chore: bump blocksuite (#7751)
## Features
- https://github.com/toeverything/BlockSuite/pull/7850 @donteatfriedrice
- https://github.com/toeverything/BlockSuite/pull/7848 @L-Sun

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7853 @doouding
- https://github.com/toeverything/BlockSuite/pull/7838 @fundon
- https://github.com/toeverything/BlockSuite/pull/7851 @donteatfriedrice

## Refactor

## Misc
2024-08-07 02:52:44 +00:00
EYHN
dd74cfea14
chore(core): remove old favorite (#7743)
closes AF-1203
2024-08-07 02:19:53 +00:00
pengx17
c2cf331ff7
fix(electron): fix tab view blink issue on open new tab (#7748)
fix AF-1197
2024-08-06 15:57:40 +00:00
darkskygit
744cc542de
feat: handle copilot error (#7760)
fix BS-729 CLOUD-32 PD-1529
2024-08-06 11:19:35 +00:00
fundon
601f5fef95
chore(core): theme v1.0.2 (#7746) 2024-08-06 10:54:09 +00:00
darkskygit
14669b9ced
feat: improve continue to chat compatibility (#7757)
fix AF-1152
2024-08-06 09:15:42 +00:00
darkskygit
5872b884a5
fix: increase image limit of copilot (#7756)
fix AF-1080 AF-1154
2024-08-06 09:15:40 +00:00
liuyi
d0f1bb24fd
chore(core): replace with new track impl (#7735) 2024-08-06 09:15:15 +00:00
renovate[bot]
7373e174db
chore: bump up fast-xml-parser version to v4.4.1 [SECURITY] (#7752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 16:54:24 +08:00
forehalo
cc09085dc2
feat(core): make event track great again (#7695)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/5c0ymolP9B7QStCsS1RP/6a3941d9-4409-4eda-987b-88ae41bd72d4.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/5c0ymolP9B7QStCsS1RP/3e9cedec-5457-4e7a-9125-63aab7247cd2.png)
2024-08-06 08:39:29 +00:00
darkskygit
f93743dae6
fix: reset height after send (#7755)
fix PD-1427
2024-08-06 08:25:28 +00:00
darkskygit
de7933c1dd
fix: dont limit text block height in chat panel (#7754)
fix PD-1368
2024-08-06 08:25:27 +00:00
pengx17
ca7c221d23
fix(electron): onboarding not shown (#7753)
fix AF-1199
2024-08-06 07:54:32 +00:00
EYHN
873e6faef2
chore: bump @blocksuite/icons (#7749) 2024-08-06 05:32:19 +00:00
CatsJuice
5938d8b259
feat(core): add tooltip and toast for organize operations (#7725)
close AF-1138, AF-1139, AF-1165
2024-08-06 02:07:10 +00:00
EYHN
cd4e462d8c
fix(core): transform workspace db when enable cloud (#7744) 2024-08-05 15:17:19 +00:00
pengx17
a03831f2a2
fix(electron): whitescreen issue (#7742)
1. non-blurred mode whitescreen issue
2. should not close tab with cmd+w for pinned tabs
2024-08-05 14:09:22 +00:00
pengx17
0d7de67e01
refactor(electron): reduce the number of listeners for ipc (#7740)
previously there are quite a lot of api/events handlers registered on ipcMain/ipcRenderer. After this PR, the number should be significantly reduced, which will benefit performance.
2024-08-05 13:33:31 +00:00
darkskygit
0acc1bd9e8
chore: cleanup outdated model & upgrade model (#7739) 2024-08-05 10:13:33 +00:00
EYHN
e6e9f7d4c7
feat(core): enable feature flag for release (#7738) 2024-08-05 09:53:11 +00:00
pengx17
9f57ed5e84
fix(electron): find in page input border blink issue (#7737) 2024-08-05 09:27:21 +00:00
JimmFly
9cc976ce2e
fix(core): canvas text adapts to input scrolling (#7733)
close PD-1539
Fixed the problem that the input text in find in page cannot be scrolled correctly.
2024-08-05 09:27:18 +00:00
CatsJuice
6d253c0600
fix(core): add favorite folder in menu, adjust empty-page new page button (#7730)
close AF-1150, AF-1128, AF-1131
- Replace favorite migration related copy
- Adjust empty page's "New Page" button
  ![CleanShot 2024-08-05 at 15.16.06@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/1cf7d75a-a33a-4eec-9dc1-87d50d9526f1.png)
- Add toggle favorite to folder menu
  ![CleanShot 2024-08-05 at 15.17.50@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/af6116b5-47d1-49a6-9660-41c0d7cd8fd3.png)
- Adjust `Button`
  - add `withoutHover` state
  - remove cursor: not-allowed when disabled
2024-08-05 09:15:17 +00:00
darkskygit
73a6723d15
fix: use correct user id in forked session (#7710) 2024-08-05 09:03:11 +00:00
pengx17
5050418c1a
fix(electron): app ghosting issue when quickly opening new tabs (#7736)
fix PD-1519
2024-08-05 08:51:11 +00:00
pengx17
5ab1210c9c
fix(electron): drop indicator position (#7734) 2024-08-05 08:03:13 +00:00
pengx17
51848ff6c3
fix(electron): allow close pinned tab (#7732) 2024-08-05 08:03:12 +00:00
pengx17
5f52547d9e
fix(electron): tab title/icon default state (#7731) 2024-08-05 07:39:51 +00:00
pengx17
561fa46232
fix(electron): add i18n setup for shell (#7728)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/1ef2a050-c372-4b8f-8bf0-b1e557e11f29.png)
2024-08-05 06:52:14 +00:00
renovate[bot]
7a66212568
chore: bump up oxlint version to v0.7.0 (#7727) 2024-08-05 14:46:59 +08:00
pengx17
51ca7657d8
feat(electron): new tab/split view entries (#7708)
fix AF-1146
2024-08-05 05:37:50 +00:00
L-Sun
bd31c8388c
fix(core): update outline viewer style (#7641)
## What changes
- Update responsive style and fix some bug of outline viewer (https://github.com/toeverything/blocksuite/pull/7759)
- Change left and right padding of full-width editor from `15px` to `72px`
- Hide outline viewer when side outline panel is opened ([BS-987](https://linear.app/affine-design/issue/BS-987/逻辑-bug-toc-入口和-toc-侧边栏共存))
- Add entries of outline panel and frame panel in more menu of detail page header ( [BS-996](https://linear.app/affine-design/issue/BS-996/page-mode-下的-page-option-缺少-view-table-of-contents-的入口) , [BS-1006](https://linear.app/affine-design/issue/BS-1006/edgeless-mode-的-page-options-里缺少-view-all-frames))
- Add outline viewer to dock peek preview ( [BS-995](https://linear.app/affine-design/issue/BS-995/center-peek-里缺少-quick-toc-的入口) )
- Add more e2e tests for outline viewer
2024-08-05 03:57:48 +00:00
L-Sun
545bd032a7
fix(core): app height exceeds viewport of mobile (#7706)
TL;DR
use `100dvh` instead of `100vh`.

https://stackoverflow.com/a/72245072

PS: The `100dvh` is tested in Firefox in macOS

## Before
iPad
<img src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/MyRfgiN4RuBxJfrza3SG/c81548ed-7ca0-4f88-af7c-cce498958a28.png" width="250">

Phone
<img src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/MyRfgiN4RuBxJfrza3SG/4559554d-6f3f-445f-82c1-39a0dc2eb664.png" width="250">

## After
iPad
<img src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/MyRfgiN4RuBxJfrza3SG/51fe97f9-f488-432c-9866-20524efd08de.png" width="250">

Phone
<img src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/MyRfgiN4RuBxJfrza3SG/a05cce56-38a5-47df-a0c6-f757d94ef6b8.png" width="250">
2024-08-05 03:42:15 +00:00
pengx17
e3878ae8bf
build(electron): nightly build issue for windows (#7649)
ref https://github.com/toeverything/AFFiNE/actions/runs/10156494874/job/28085093900
2024-08-05 03:28:02 +00:00
pengx17
c0c5c83dad
fix(electron): should activate the target tab when closing other tabs (#7704)
fix PD-1520
2024-08-05 03:11:55 +00:00
pengx17
cbdcfdc2d8
fix(electron): duplicate tab views issue (#7703)
fix PD-1523
2024-08-05 03:11:52 +00:00
pengx17
741ff2379e
fix(electron): reload view in tab context menu issue (#7702)
fix PD-1524
2024-08-05 03:11:50 +00:00
pengx17
9307acf0de
fix(core): ctrl/cmd + click on add page button opens in new tab (#7701)
fix PD-1521
2024-08-05 03:11:47 +00:00
pengx17
0468355593
test(electron): adjust expect timeout for CI (#7707) 2024-08-05 03:11:44 +00:00
CatsJuice
249f3471c9
feat(component): shortcut style for tooltip (#7721)
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/2e68337c-91f1-4ea7-8426-7fb33be02081.png)

- New `shortcut` prop for `<Tooltip />`
  - single key
      ```tsx
      <Tooltip shortcut="T" />
      ```
  - multiple
      ```tsx
      <Tooltip shortcut={["⌘",  "K"]} />
      ```
- Round tooltip's arrow
- Use new design system colors
- Replace some usage
  - App sidebar switch
  - Editor mode switch
  - New tab (new)
2024-08-05 02:57:24 +00:00
CatsJuice
3d855647c7
refactor(component): refactor the implementation of Button and IconButton (#7716)
## Button
- Remove props withoutHoverStyle
   refactor hover impl with independent layer, so that hover-color won't affect the background even if is overridden outside
- Update `type` (renamed to `variant`):
  - remove `processing` and `warning`
  - rename `default` with `secondary`
- Remove `shape` props
- Remove `icon` and `iconPosition`, replaced with `prefix: ReactNode` and `suffix: ReactNode`
- Integrate tooltip for more convenient usage
- New Storybook document
- Focus style

## IconButton
- A Wrapper base on `<Button />`
- Override Button size and variant
  - size: `'12' | '14' | '16' | '20' | '24' | number`
     These presets size are referenced from the design system.
  - variant:  `'plain' | 'solid' | 'danger' | 'custom'`
- Inset icon via Button 's prefix

## Fix
- fix some button related issues
- close AF-1159, AF-1160, AF-1161, AF-1162, AF-1163, AF-1158, AF-1157

## Storybook

![CleanShot 2024-08-03 at 14.57.20@2x.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/f5a76110-35d0-4082-a940-efc12bed87b0.png)
2024-08-05 02:57:23 +00:00
donteatfriedrice
10deed94e3
fix: center peek message role (#7723) 2024-08-05 02:43:58 +00:00
EYHN
f108b95704
feat(core): tuning for better search (#7713) 2024-08-05 02:29:50 +00:00
EYHN
ad26102815
fix(core): fix scroll block into view (#7712) 2024-08-05 02:29:49 +00:00
EYHN
05448f50af
fix(core): wrong display of 404 page (#7711) 2024-08-02 10:40:58 +00:00
EYHN
e54be7dc02
feat(core): loading ui for favorite and organize (#7700) 2024-08-02 07:17:01 +00:00
donteatfriedrice
94c5effdd5 fix: should save chat to block when doc mode (#7697)
[BS-1033](https://linear.app/affine-design/issue/BS-1033/在page模式下尝试存chat-block,被告知失败,预期是切换到白板模式直接操作成功)
2024-08-02 13:14:15 +08:00
donteatfriedrice
62fc7e2f4d fix: support chat in different doc (#7693)
fix:
[BS-990](https://linear.app/affine-design/issue/BS-990/避免centerpeek中发起的会话,等待ai返回时,页面失去响应)
[BS-1005](https://linear.app/affine-design/issue/BS-1005/chat-block无法被copy-paste到别的文档中,duplicate全篇文档后,可以center-peek)
2024-08-02 13:14:15 +08:00
donteatfriedrice
f7798a00c1 feat: patch edgeless clipboard to support cuntom block copy paste (#7689)
fix: [BS-1005](https://linear.app/affine-design/issue/BS-1005/chat-block无法被copy-paste到别的文档中,duplicate全篇文档后,可以center-peek)

related: https://github.com/toeverything/blocksuite/pull/7797
2024-08-02 13:14:14 +08:00
pengx17
854718db0e
test(electron): enable trace file for desktop tests (#7692)
<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/e8d87ee7-cea6-4188-80a7-1a64f6c74eca.webm">e02e866a6496b210b8883798d82783d8.webm</video>

one failed run but no valuable result
2024-08-02 04:07:33 +00:00