Commit Graph

1501 Commits

Author SHA1 Message Date
Jason Lee 3131756b0d chore: Update GPUI to avoid convert SharedString for id. 2025-12-09 18:27:57 +08:00
Floyd Wang 6c04fa9895 color_picker: Add hex input pattern to avoid panic (#1774) 2025-12-09 09:50:58 +00:00
Jason Lee 7fee4c6c41 root: Use defer for WindowExt to open dialog, sheet, notifications (#1758)
Probably fixes #1579 by changed methods in `WindowExt` (open_dialog,
close_dialog ...) to use defer.
2025-12-09 08:21:02 +00:00
Tajang ffb3a60ce5 docs: Add anyhow dependency to Getting Started. (#1772) 2025-12-09 15:20:09 +08:00
Jason Lee 11977dcaad menu: Support check state to AppMenuBar. (#1771)
<img width="710" height="568" alt="image"
src="https://github.com/user-attachments/assets/6a2bbd01-c9c2-4bc5-b631-534eb9a18420"
/>

## Break Change

- Removed `window` option from `AppMenuBar::new` method, we don't need
it.

```diff
- AppMenuBar::new(window, cx);
+ AppMenuBar::new(cx);
```
2025-12-09 06:04:03 +00:00
Duane Bester e03beb459b text_view: Fix CodeBlock interactivity id (#1767) 2025-12-09 13:38:33 +08:00
Floyd Wang 6c1e5b7ce7 webview: Update wry dependence to lb-wry (#1769) 2025-12-09 02:32:03 +00:00
Floyd Wang 070a426a92 Bump gpui (#1768) 2025-12-09 01:59:30 +00:00
stayhydated 7840746d36 table: make Column return owned (#1766) 2025-12-08 23:49:49 +08:00
Jason Lee bf0bd3e345 sheet, dialog: Fix content overflow scrollbar (#1763)
Closes #1612
2025-12-08 20:41:55 +08:00
Floyd Wang 745cee4800 story: Update chart story style details (#1762) 2025-12-08 15:37:21 +08:00
Jason Lee 1d8f9bdd1b webview: Split a gpui-wry crate for WebView. (#1759)
## Break Change

- Removed `webview` feature, use `gpui-wry` crate instead.
2025-12-08 07:33:23 +00:00
Jason Lee 72494be4cd story: Refactor stories folder. (#1760) 2025-12-08 15:00:07 +08:00
Jason Lee 55d38cf83b Bump v0.5.0 2025-12-08 10:55:10 +08:00
Floyd Wang 8bb9d7f654 list, table: Rename both delegate is_eof to has_more (#1757)
Previously, we misused the meaning of is_eof and treated it with the
opposite semantics.

* Rename both delegate `is_eof` to `has_more`.
* Set default value to `false`.

## Breaking Change
```diff
- fn is_eof(&self, cx: &App) -> bool {
+ fn has_more(&self, cx: &App) -> bool {
```
2025-12-08 10:46:54 +08:00
Jason Lee c40e352dbc chore: Update GPUI and depends on newest. (#1748)
Prepare to waiting for GPUI release v0.2.3
2025-12-08 10:08:53 +08:00
Duane Bester fa17c7d09b editor: Add InlineCompletion LSP support (#1736)
Closes [1729](https://github.com/longbridge/gpui-component/issues/1729)

## Description

Adds support for inline completions, which allows the editor to support
agentic "tab to complete" solutions. This works, (tested macOS), but not
sure of any gotchas or different approaches.

## Screenshot


https://github.com/user-attachments/assets/8e437f1e-9792-4417-b070-0a1dd8de6024

## How to Test

User implements the `inline_completion` method in CompletionsProvider.

Not implementing should have no effect. 

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2025-12-07 03:01:44 +00:00
John 40e145a204 input: Fix text not in vertical center when masked text is empty. (#1753)
Closes #1724

## Screenshot

### Before                      
<img width="824" height="656" alt="CleanShot20251206132455"
src="https://github.com/user-attachments/assets/dc917dc2-1c48-4a7a-bc24-29f09f656d95"
/>

### After 
<img width="826" height="654" alt="CleanShot20251206132600"
src="https://github.com/user-attachments/assets/3a62e7fd-1f85-4165-84bf-7a9b25f5ef3d"
/>

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-06 13:21:07 +00:00
amiyzku f705d10f72 chart: Add candlestick chart (#1749)
## Description

Add `CandlestickChart` component for visualizing financial OHLC data
with candlestick patterns.

- Introduced a new CandlestickChart for displaying OHLC (Open, High,
Low, Close) values.
- Updated ChartStory to include stock price data and render multiple
candlestick chart variations.
- Enhanced theme with bullish and bearish colors for candlestick
representation.
- Updated documentation to include CandlestickChart examples and usage.

This addition enhances the charting library by providing a crucial tool
for visualizing stock market trends.

## Screenshot

<img width="1335" height="423" alt="image"
src="https://github.com/user-attachments/assets/5df7078e-a469-4262-b645-6434d08b7ccf"
/>

## How to Test

```bash
cargo run -p gpui-component-story
```

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2025-12-05 18:24:25 +08:00
Floyd Wang bc1092a6e1 context_menu: Prevent mouse events when menu popped out (#1750)
## Before

https://github.com/user-attachments/assets/6cb5a767-d888-43f1-b5cc-1f3c5748389d

## After

https://github.com/user-attachments/assets/0846d0e2-2311-47d1-8d5b-2e7bbc347fe3
2025-12-05 09:09:37 +00:00
Jason Lee 893155bcee docs: Fix typo in notifications doc. (#1747)
Close #1745
2025-12-05 07:25:09 +00:00
Jason Lee 56fb93bca8 table: Add render_header method to support custom table header. (#1746)
Closes #1733

## Example

```rs
impl TableDelegate for MyTable {
    fn render_header(&mut self, _: &mut Window, _: &mut Context<TableState<Self>>) -> Stateful<Div> {
        div().id("header").h_10()
    }
}
```
2025-12-05 15:17:13 +08:00
Andreas Johansson 8fcf5f337d input: Fix resetting highlighting for single line code editor (#1742)
## Description

When using `set_value` with a `code_editor("lang").multi_line(false)`
the highlighting and lsp will not be reset.

## Video

### Before

https://github.com/user-attachments/assets/5fef5b6e-478e-4233-a911-e087f889040a

### After

https://github.com/user-attachments/assets/3ea99060-8dba-4604-9d3f-c151b3aadcf2

## How to Test

`cargo run --release -- input`, enter some text in "Single line code
editor", click "Reset"

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2025-12-05 09:53:07 +08:00
Ylin 3b2746e0ba setting: Supplement subscription InputEvent for number_input (#1740) 2025-12-04 14:47:11 +08:00
Floyd Wang 13eceab1ac webview: Public the raw wry webview handle (#1739) 2025-12-04 03:53:28 +00:00