Port ted settings UX from clet edit: immediate settings persistence via View/Options, no save-on-quit#123
Port ted settings UX from clet edit: immediate settings persistence via View/Options, no save-on-quit#123Copilot wants to merge 25 commits into
Conversation
…tor settings Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/f94626f4-d942-433f-bce8-06c1b977241e Co-authored-by: tig <585482+tig@users.noreply.github.com>
…fig path Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/f94626f4-d942-433f-bce8-06c1b977241e Co-authored-by: tig <585482+tig@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/f94626f4-d942-433f-bce8-06c1b977241e Co-authored-by: tig <585482+tig@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18dd69adbf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@copilot see cr comments and address |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/1857480b-56f0-4e86-9e77-c6285d88978f Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Addressed the CR feedback in b617477. Changes made:
Screenshot (updated ted View menu UI): |
|
@copilot ci/cd is failing. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/f5d77102-9405-46d4-bfc8-a7058a027789 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Fixed in 2912c52. CI was failing on ubuntu at No UI behavior changed in this fix; screenshot reference remains: |
|
@copilot bring the clet settings tests over. Right now, user testing shows settings are not being saved. E.g. I change tab indent and no ~/.tui/ted.config.json is created. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/fa3e24ac-04b4-4c7d-b1dd-37e170f564d8 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/fa3e24ac-04b4-4c7d-b1dd-37e170f564d8 Co-authored-by: tig <585482+tig@users.noreply.github.com>
Addressed in eacf13d (with follow-up ef498fa and a8bdfe9): I fixed the remaining CR items by clamping settings-dialog indent size to a minimum of 1 and fixing JSONC comma insertion when appending settings after a trailing Screenshot (no UI layout change): Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Epxected:
Actual: No file created. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/dc7a7529-81f7-47e4-89e5-9b4085a17186 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Fixed in 9ce3c86. I changed Word Wrap persistence to save from the checkbox value-change path itself (not only the menu-item action), so both direct checkbox interaction and menu toggles now persist immediately and create I also added integration coverage for keyboard and mouse View-menu toggle flows in Screenshot (no UI layout change): |
|
@copilot i just did the same steps and no config file was created. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8886220024
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/946b0dba-61e4-4df9-8d68-611eb406f5ad Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Fixed in 41a189e. Word Wrap now persists from the View menu action path itself (explicit I also tightened the integration regression to verify both file creation and Screenshot (no UI layout change): Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot ci cd is failing again. You must endure all tests pass before committing! |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/32fc12e0-fbae-4c4f-96fa-c989169fcfe1 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/32fc12e0-fbae-4c4f-96fa-c989169fcfe1 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Agent-Logs-Url: https://github.com/gui-cs/Editor/sessions/32fc12e0-fbae-4c4f-96fa-c989169fcfe1 Co-authored-by: tig <585482+tig@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Fixed in e450119. I investigated the failing CI jobs (macOS + Windows), reproduced the failure locally, and stabilized the flaky integration test that was failing ( I re-ran full local validation before committing:
Screenshot (no UI layout change): Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f0726f6a9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| GutterOptions = GutterOptions.LineNumbers | GutterOptions.Folding, | ||
| ConvertTabsToSpaces = true, | ||
| ConvertTabsToSpaces = EditorSettings.ConvertTabsToSpaces, | ||
| IndentationSize = EditorSettings.IndentSize, |
There was a problem hiding this comment.
Clamp persisted indentation size before editor initialization
TedApp now applies EditorSettings.IndentSize directly to Editor.IndentationSize during construction, but Editor.IndentationSize throws for values < 1 (ArgumentOutOfRangeException in Editor.cs). Because Program enables configuration loading before constructing TedApp, a user-edited or corrupted ted.config.json with "EditorSettings.IndentSize": 0 (or negative) will crash startup before the UI opens. Clamp or validate the persisted value before assignment so invalid config cannot terminate launch.
Useful? React with 👍 / 👎.
| string[] lines = fx.Driver.ToString ().Split ('\n'); | ||
| int y = Array.FindIndex (lines, static line => line.Contains ("Word Wrap", StringComparison.Ordinal)); | ||
| Assert.True (y >= 0); | ||
| int x = lines[y].IndexOf ("☐", StringComparison.Ordinal); |
There was a problem hiding this comment.
Remove order-dependent assumption about unchecked Word Wrap
This test assumes the Word Wrap menu item is always initially unchecked ("☐"), but other tests in the same class call InvokeSaveViewSettings after setting app.Editor.WordWrap = true, which updates static EditorSettings.WordWrap and changes subsequent TedApp defaults. Since xUnit does not guarantee test method order, this assertion can intermittently fail when the menu starts checked ("☑"), making CI flaky.
Useful? React with 👍 / 👎.
Uh oh!
There was an error while loading. Please reload this page.