Commit Graph

202 Commits

Author SHA1 Message Date
Fangdun Tsai
f4abe39689
feat(core): pdf preview (#8569)
Co-authored-by: forehalo <forehalo@gmail.com>
2024-11-12 19:12:31 +08:00
fundon
a5bcfb0b14
fix: reference parameters and add test cases (#8740)
Upstreams: https://github.com/toeverything/blocksuite/pull/8689
Closes: AF-1650
2024-11-12 09:23:57 +00:00
JimmFly
6fe2e42490
feat(core): add page width property (#8775)
close AF-1655
2024-11-12 02:58:14 +00:00
donteatfriedrice
c323e5ae93
feat: use custom @ import dialog (#8723)
[BS-1747](https://linear.app/affine-design/issue/BS-1747/[ui]-通过导入的ui还是旧的,需要更新)
2024-11-08 01:53:29 +00:00
EYHN
902635e60f
refactor(core): desktop project struct (#8334) 2024-11-05 11:00:33 +08:00
JimmFly
0469675d88
feat(core): add tooltips to the doc properties in the sidebar (#8684)
close AF-1597
2024-11-04 07:20:33 +00:00
JimmFly
c2ebf0b822
fix(core): handle uncaught ai flag (#8663) 2024-11-01 17:18:21 +08:00
darkskygit
7a201984e9
feat(server): add real-world prompt test for copilot apis (#8629)
fix AF-1432, PD-1176
2024-11-01 07:05:12 +00:00
JimmFly
10b1f233d9
feat(core): add edgelessTheme property and edgelessDefault theme setting (#8614)
close AF-1430 AF-1471

https://github.com/user-attachments/assets/d997ac6c-ce94-4fa4-ab34-29b36c7796ea
2024-11-01 03:58:02 +00:00
JimmFly
0f9d11fd5c
feat(core): add createdBy property to default property (#8642)
close AF-1563
2024-10-31 05:01:52 +00:00
LongYinan
c08b02caba
Revert "feat: copilot frontend e2e (#7694)"
This reverts commit d71852789f.
2024-10-31 12:08:57 +08:00
darkskygit
d71852789f
feat: copilot frontend e2e (#7694) 2024-10-29 08:56:37 +00:00
JimmFly
10963da706
refactor(core): improve editor gap appendParagraph function (#8567)
close AF-1257

Every time we clicked on an empty space at the bottom, a new Paragraph block was created.
Now we change it so that if there is already an empty Paragraph block at the bottom, we focus it instead of creating a new one.
2024-10-24 10:53:18 +00:00
pengx17
4b6c4ed546
feat(core): doc database properties (#8520)
fix AF-1454

1. move inline tags editor to components
2. add progress component
3. adjust doc properties styles for desktop
4. subscribe bs database links and display in doc info
5. move update/create dates to doc info
6. a trivial e2e test

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/eed266c1-fdac-4f0e-baa9-4aa00d14a2e8.mp4">10月23日.mp4</video>
2024-10-24 07:38:45 +00:00
EYHN
7cd4028176
feat(core): adjust doc property style (#8561) 2024-10-21 09:41:45 +00:00
EYHN
42b3e069f9
feat(core): use contain strict optimizing performance (#8553) 2024-10-21 06:42:08 +00:00
JimmFly
d1783b6f8c
feat(core): prevent the floating sidebar from showing immediately after the sidebar is closed (#8531)
close PD-1763

https://github.com/user-attachments/assets/a8346098-5f87-4297-bdb6-885f5486ce78
2024-10-21 05:26:02 +00:00
CatsJuice
8f92be926b
feat(core): new "is journal" page property (#8525)
close AF-1450, AF-1451, AF-14552
2024-10-18 10:03:08 +00:00
JimmFly
bfb8d582ed
feat(core): set doc mode and primary doc mode separately (#8359)
https://github.com/user-attachments/assets/98c282f2-4c53-475f-bf10-936a626c2630
2024-10-17 13:48:45 +00:00
EYHN
24e0c5797c
refactor(core): doc property (#8465)
doc property upgraded to use orm.

The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.

![CleanShot 2024-10-14 at 15 34 52](https://github.com/user-attachments/assets/748b8b80-061f-4d6a-8579-52e59df717c2)

Added a sidebar view to manage properties
![CleanShot 2024-10-14 at 15 35 58](https://github.com/user-attachments/assets/bffa9b1a-a1a5-4708-b2e8-4963120f3af9)

new property ui in workspace settings
![CleanShot 2024-10-14 at 15 36 44](https://github.com/user-attachments/assets/572d8dcc-9b3d-462a-9bcc-5f5fa8e622da)

Property lists can be collapsed
![CleanShot 2024-10-14 at 15 37 59](https://github.com/user-attachments/assets/2b20be1a-8141-478a-8fe7-405aff6d04fd)
2024-10-15 10:17:12 +00:00
CatsJuice
db4d8ddf0b
feat(core): bump theme, update workspace card color variables, add active status (#8467)
close AF-1468
2024-10-11 01:03:38 +00:00
forehalo
9043e6607e
refactor(i18n): lazy load languages (#8456)
closes AF-1397
2024-10-10 09:03:06 +00:00
JimmFly
5213431d51
feat(core): show floating sidebar when hovering sidebar swtich (#8393)
web:

https://github.com/user-attachments/assets/3cafe094-7938-4241-8d57-cfd5ccaadf25

client:

https://github.com/user-attachments/assets/ca218a45-de92-4e0a-ad83-c0f47aee2962
2024-10-09 03:48:17 +00:00
L-Sun
afb21f734e
fix(core): fix position of toc in peekview (#8441)
Close [BS-1536](https://linear.app/affine-design/issue/BS-1536/peekview中的toc没有fixed)
2024-10-08 02:44:33 +00:00
pengx17
a3dc074574
feat: ctrl click to open embeded doc in new tab (#8401)
fix AF-1176
depends on https://github.com/toeverything/blocksuite/pull/8478
2024-10-08 02:06:59 +00:00
EYHN
096f50b83b
chore(i18n): cleanup i18n file (#8318) 2024-09-20 06:25:17 +00:00
fundon
6921c3073c
refactor(core): improve scroll anchoring logic (#8269)
Upstreams: https://github.com/toeverything/blocksuite/pull/8378
2024-09-19 02:58:11 +00:00
fundon
f397815ad1
chore: bump blocksuite (#8230)
## 0.17.11

### Patch Changes

- [3c61be5](3c61be5ded): - Refactor drag handle widget
  - Split embed blocks to `@blocksuite/affine-block-embed`
  - Fix latex selected state in edgeless mode
  - Fix unclear naming
  - Fix prototype pollution
  - Fix portal interaction in affine modal
  - Fix paste linked block on edgeless
  - Add scroll anchoring widget
  - Add highlight selection
2024-09-18 12:11:14 +00:00
pengx17
2ac4a846f7
feat(core): copy event for image (#8219)
fix AF-1383
2024-09-13 10:28:28 +00:00
Saul-Mirone
56f4634c1f
chore: bump bs with new extension api (#8042) 2024-09-02 10:32:22 +00:00
darkskygit
d93d39e29d
feat: add editor record (#7938)
fix CLOUD-58, CLOUD-61, CLOUD-62, PD-1607, PD-1608
2024-09-02 09:37:39 +00:00
EYHN
b96ad57568
feat(core): import template (#8000) 2024-08-29 04:01:35 +00:00
JimmFly
03b2cda845
refactor(core): move fontFamily and fullWidthLayout to editor settings (#7988) 2024-08-28 02:35:24 +00:00
EYHN
3db95bafa2
feat(core): use new print pdf api (#7932) 2024-08-21 10:06:22 +00:00
EYHN
c822594882
feat(core): mode in query string (#7904) 2024-08-16 10:59:43 +00:00
L-Sun
620d20710a
chore: bump bs (#7899)
Bump blocksuite from https://github.com/toeverything/blocksuite/pull/7934

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7985 @L-Sun

## Misc
- https://github.com/toeverything/BlockSuite/pull/7971 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7965 @doouding
2024-08-16 08:46:16 +00:00
JimmFly
ba5ba71f35
chore: add test for all collection and all tag (#7687) 2024-08-13 08:19:54 +00:00
hwangdev97
4ac9bd7790
feat(i18n): fix i18n en-Us & en json english style (#7834) 2024-08-12 03:19:13 +00:00
pengx17
7fca13076a
feat: mid click links to open in new tab (#7784)
fix AF-1200
2024-08-08 09:43:35 +00:00
L-Sun
ff68efb206
chore: bump blocksuite (#7776)
## Features
- https://github.com/toeverything/BlockSuite/pull/7859 @akumatus
- https://github.com/toeverything/BlockSuite/pull/7855 @darkskygit
- https://github.com/toeverything/BlockSuite/pull/7858 @donteatfriedrice

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7843 @doouding
- https://github.com/toeverything/BlockSuite/pull/7863 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7865 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7860 @doouding
- https://github.com/toeverything/BlockSuite/pull/7857 @fundon

## Refactor
- https://github.com/toeverything/BlockSuite/pull/7862 @L-Sun

## Misc
- https://github.com/toeverything/BlockSuite/pull/7833 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7864 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7861 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7849 @Saul-Mirone
2024-08-07 09:45:09 +00:00
JimmFly
4e03edba44
feat(i18n): add Spanish(Argentina) and Urdu (#7771)
Support for various languages has been updated, and `Spanish (Argentina)` and `Urdu` have been added. Many thanks to the community contributors for their ongoing translation efforts.
2024-08-07 08:57:23 +00:00
pengx17
ae9381c36d
feat: allow opening new tab for some navigation buttons (#7764)
fix AF-1010
2024-08-07 06:43:10 +00:00
L-Sun
f6279ee47f
chore(core): remove outline viewer feature flag (#7770) 2024-08-07 03:46:15 +00: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
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
L-Sun
4719ffadc6
chore: bump blocksuite (#7696)
## Features
- https://github.com/toeverything/BlockSuite/pull/7807 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7786 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7797 @donteatfriedrice

## Bugfix
- https://github.com/toeverything/BlockSuite/pull/7814 @fundon
- https://github.com/toeverything/BlockSuite/pull/7812 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7792 @fundon
- https://github.com/toeverything/BlockSuite/pull/7788 @fundon
- https://github.com/toeverything/BlockSuite/pull/7805 @doouding
- https://github.com/toeverything/BlockSuite/pull/7810 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7802 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7804 @L-Sun
- https://github.com/toeverything/BlockSuite/pull/7799 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7753 @CatsJuice
- https://github.com/toeverything/BlockSuite/pull/7798 @zzj3720
- https://github.com/toeverything/BlockSuite/pull/7796 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7793 @doouding
- https://github.com/toeverything/BlockSuite/pull/7795 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7791 @fundon
- https://github.com/toeverything/BlockSuite/pull/7747 @doouding
- https://github.com/toeverything/BlockSuite/pull/7785 @fundon
- https://github.com/toeverything/BlockSuite/pull/7784 @akumatus

## Misc
- https://github.com/toeverything/BlockSuite/pull/7800 @Saul-Mirone
- https://github.com/toeverything/BlockSuite/pull/7790 @fourdim
2024-08-02 01:29:10 +00:00
CatsJuice
e60b2d64e5
fix(core): new no children status for explorer (#7686)
close AF-1140
2024-08-01 09:41:13 +00:00
L-Sun
2093685385
chore: bump blocksuite (#7680) 2024-07-31 21:57:51 +08:00
L-Sun
622715d2f3
feat(core): outline viewer (quick toc) (#7614)
Close: [BS-949](https://linear.app/affine-design/issue/BS-949/outline-viewer-加入到affine)

Details  are in this PR: https://github.com/toeverything/blocksuite/pull/7704
2024-07-29 10:19:57 +00:00