pengx17
|
b5e543c406
|
feat(electron): mouse middle click to close tab (#7759)
fix AF-1200
|
2024-08-07 05:19:45 +00:00 |
|
pengx17
|
5ab1210c9c
|
fix(electron): drop indicator position (#7734)
|
2024-08-05 08:03:13 +00:00 |
|
CatsJuice
|
249f3471c9
|
feat(component): shortcut style for tooltip (#7721)

- 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

|
2024-08-05 02:57:23 +00:00 |
|
pengx17
|
bfff10e25e
|
feat(electron): app tabs dnd (#7684)
<div class='graphite__hidden'>
<div>🎥 Video uploaded on Graphite:</div>
<a href="https://app.graphite.dev/media/video/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4">
<img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4">
</a>
</div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/cd84e155-9f2e-4d12-a933-8673eb6bc6cb.mp4">Kapture 2024-07-31 at 19.39.30.mp4</video>
fix AF-1149
fix PD-1513
fix PD-1515
|
2024-08-02 02:02:03 +00:00 |
|
pengx17
|
07409b8a91
|
refactor(electron): tab title/icon update logic (#7675)
fix AF-1122
fix AF-1136
|
2024-08-01 16:43:18 +00:00 |
|
pengx17
|
6b8f99c013
|
fix: using width atom for syncing app headers position (#7666)
may use global state to replace these sidebar state atoms
fix AF-1109
|
2024-07-31 07:03:30 +00:00 |
|
pengx17
|
812fdd27b5
|
fix: tab label overflow style when there is only one tab (#7665)
before

after

|
2024-07-31 07:03:28 +00:00 |
|
pengx17
|
ea7066d02c
|
fix: icon color active style (#7656)
fix PD-1500
|
2024-07-30 11:51:17 +00:00 |
|
pengx17
|
157cc97a65
|
test(electron): add test cases for electron tabs (#7635)
fix AF-1000
|
2024-07-29 11:05:24 +00:00 |
|
pengx17
|
1efc1d0f5b
|
feat(electron): multi tabs support (#7440)
use https://www.electronjs.org/docs/latest/api/web-contents-view to serve different tab views
added tabs view manager in electron to handle multi-view actions and events.
fix AF-1111
fix AF-999
fix PD-1459
fix AF-964
PD-1458
|
2024-07-29 11:05:22 +00:00 |
|