mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-05 23:41:42 -05:00
Closed
opened 2026-03-22 21:13:45 -05:00 by GiteaMirror
·
0 comments
No Branch/Tag Specified
main
dependabot/npm_and_yarn/postcss-8.5.12
wip/yaak-proxy-foundation
migrate-vite-plus
fix/native-tls-legacy-servers
gschier/cli-plugin-send-render-http
pr-413
codex/cli-dev-plugin-dir-root
cli-improvements-2
mcp-client-plan
actions-system
omnara/premium-deviator
omnara/repose-aversion
copilot/create-beta-tag-for-main
v2026.3.1
yaak-cli-0.6.2
v2026.3.0
v2026.3.0-beta.10
yaak-cli-0.6.1
yaak-cli-0.5.2
yaak-cli-0.5.1
yaak-cli-0.5.0
v2026.3.0-beta.9
v2026.3.0-beta.8
v2026.3.0-beta.7
v2026.3.0-beta.6
yaak-cli-0.4.0
yaak-cli-0.4.0-beta.10
yaak-cli-0.4.0-beta.9
yaak-cli-0.4.0-beta.8
yaak-cli-0.4.0-beta.7
yaak-cli-0.4.0-beta.6
yaak-cli-0.4.0-beta.4
yaak-cli-0.4.0-beta.5
yaak-cli-0.4.0-beta.3
yaak-api-0.8.3
yaak-api-0.8.1
yaak-api-0.8.2
yaak-cli-0.4.0-beta.2
yaak-cli-0.4.0-beta.1
v2026.3.0-beta.5
v2026.2.4
v2026.3.0-beta.4
v2026.2.3
v2026.3.0-beta.3
v2026.2.2
v2026.3.0-beta.2
v2026.2.1
v2026.2.1-beta.1
v2026.2.0
v2026.2.0-beta.12
v2026.2.0-beta.11
v2026.2.0-beta.10
v2026.2.0-beta.9
v2026.2.0-beta.8
v2026.2.0-beta.7
v2026.2.0-beta.6
v2026.2.0-beta.5
v2026.2.0-beta.4
v2026.2.0-beta.3
v2026.2.0-beta.2
v2026.1.2
v2026.2.0-beta.1
v2026.1.1
v2026.1.0
v2025.10.0-beta.15
v2025.10.0-beta.14
v2025.10.0-beta.13
v2025.10.0-beta.12
v2025.10.0-beta.11
v2025.10.0-beta.10
v2025.10.0-beta.9
v2025.10.0-beta.8
v2025.10.0-beta.7
v2025.10.0-beta.6
v2025.10.0-beta.5
v2025.10.0-beta.4
v2025.10.0-beta.3
v2025.9.3
v2025.10.0-beta.2
v2025.10.0-beta.1
v2025.9.2
v2025.9.2-beta.2
v2025.9.2-beta.1
v2025.9.1
v2025.9.0
v2025.9.0-beta.10
v2025.9.0-beta.9
v2025.9.0-beta.8
v2025.9.0-beta.7
v2025.9.0-beta.6
v2025.9.0-beta.5
v2025.9.0-beta.4
v2025.9.0-beta.3
v2025.8.2
v2025.9.0-beta.2
v2025.9.0-beta.1
v2025.8.1
v2025.8.0
v2025.8.0-beta.1
v2025.7.3
v2025.7.2
v2025.7.1
v2025.7.0
v2025.7.0-beta.5
v2025.7.0-beta.4
v2025.7.0-beta.3
v2025.7.0-beta.2
v2025.7.0-beta.1
v2025.6.1
v2025.6.0
v2025.6.0-beta.10
v2025.6.0-beta.8
v2025.6.0-beta.9
v2025.6.0-beta.7
v2025.6.0-beta.6
v2025.6.0-beta.5
v2025.6.0-beta.4
v2025.6.0-beta.3
v2025.6.0-beta.2
v2025.6.0-beta.1
v2025.5.6
v2025.5.5
v2025.5.4
v2025.5.3
v2025.5.2
v2025.5.1
v2025.5.0
v2025.5.0-beta.9
v2025.5.0-beta.8
v2025.5.0-beta.7
v2025.5.0-beta.6
v2025.5.0-beta.5
v2025.5.0-beta.4
v2025.5.0-beta.3
v2025.5.0-beta.2
v2025.5.0-beta.1
v2025.4.0
v2025.4.0-beta.5
v2025.4.0-beta.4
v2025.4.0-beta.3
v2025.4.0-beta.2
v2025.4.0-beta.1
v2025.3.1
v2025.3.0
v2025.3.0-beta.4
v2025.3.0-beta.3
v2025.2.3
v2025.3.0-beta.2
v2025.3.0-beta.1
v2025.2.2
v2025.2.1
v2025.2.0
v2025.2.0-beta.16
v2025.2.0-beta.15
v2025.2.0-beta.14
v2025.2.0-beta.13
v2025.2.0-beta.12
v2025.2.0-beta.11
v2025.2.0-beta.10
v2025.2.0-beta.9
v2025.2.0-beta.8
v2025.2.0-beta.7
v2025.2.0-beta.6
v2025.2.0-beta.5
v2025.2.0-beta.4
v2025.2.0-beta.3
v2025.2.0-beta.2
v2025.2.0-beta.1
v2025.1.2
v2025.1.1
v2025.1.0
v2025.1.0-rc.1
v2025.1.0-beta.15
v2025.1.0-beta.14
v2025.1.0-beta.13
v2025.1.0-beta.11
v2025.1.0-beta.10
v2025.1.0-beta.9
v2025.1.0-beta.8
v2025.1.0-beta.7
v2025.1.0-beta.6
v2025.1.0-beta.5
v2025.1.0-beta.4
v2025.1.0-beta.3
v2025.1.0-beta.2
v2025.1.0-beta.1
v2024.13.0
v2024.13.0-beta.1
v2024.12.1
v2024.12.0
v2024.12.0-beta.6
v2024.12.0-beta.5
v2024.12.0-beta.4
v2024.12.0-beta.3
v2024.12.0-beta.2
v2024.12.0-beta.1
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0-beta.9
v2024.11.0
v2024.11.0-beta.8
v2024.11.0-beta.7
v2024.11.0-beta.6
v2024.11.0-beta.5
v2024.11.0-beta.4
v2024.11.0-beta.3
v2024.11.0-beta.2
v2024.11.0-beta.1
v2024.10.1
v2024.10.0
v2024.10.0-beta.6
v2024.10.0-beta.5
v2024.10.0-beta.4
v2024.10.0-beta.3
v2024.9.1
v2024.10.0-beta.2
v2024.9.0
v2024.10.0-beta.1
v2024.9.0-beta.3
v2024.9.0-beta.2
v2024.9.0-beta.1
v2024.8.2
v2024.8.1
v2024.8.0
v2024.8.0-beta.5
v2024.8.0-beta.4
v2024.8.0-beta.3
v2024.8.0-beta.2
v2024.8.0-beta.1
v2024.7.0
v2024.7.0-beta.11
v2024.7.0-beta.10
v2024.7.0-beta.9
v2024.7.0-beta.8
v2024.7.0-beta.7
v2024.7.0-beta.6
v2024.7.0-beta.5
v2024.7.0-beta.4
v2024.7.0-beta.3
v2024.7.0-beta.2
v2024.7.0-beta.1
v2024.6.6
v2024.6.5
v2024.6.4
v2024.6.3
v2024.6.2
v2024.6.1
v2024.6.0
v2024.6.0-beta.1
v2024.5.2
v2024.5.1
v2024.5.1-beta.1
v2024.5.0
v2024.5.0-beta.1
v2024.4.2
v2024.4.1
v2024.4.0
v2024.4.0-beta.3
v2024.4.0-beta.2
v2024.4.0-beta.1
v2024.3.10
v2024.3.9
v2024.3.8
v2024.3.7
v2024.3.6
v2024.3.5
v2024.3.4
v2024.3.3
v2024.3.2
v2024.3.1
v2024.3.0
v2024.3.0-beta.2
v2024.3.0-beta.1
v2024.2.0
v2024.1.0
v2024.0.1
v2024.0.1-beta.2
v2024.0.1-beta.1
v2024.0.0
v2023.4.0-beta.4
v2023.4.0-beta.3
v2023.4.0-beta.2
v2023.4.0-beta.1
v2023.3.0
v2023.3.0-beta.2
v2023.3.0-beta.1
v2023.2.0
v2023.1.7
v2023.0.20
v2023.0.19
v2023.0.18
v2023.0.17
v2023.0.16
v2023.0.15
v2023.0.14
v2023.0.12
v2023.0.11
v2023.0.10
v2023.0.9
v2023.0.8
v2023.0.7
v2023.0.6
v2023.0.5
v2023.0.4
v2023.0.3
v2022.0.1
v2023.0.1
v2023.0.0
v0.0.2
v0.0.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/yaak#285
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/363
Author: @NureddinSoltan
Created: 1/13/2026
Status: ❌ Closed
Base:
main← Head:add-json-comment-support📝 Commits (10+)
6106187feat: Add JSON comment support to editoredd92faMerge branch 'mountain-loop:main' into add-json-comment-support1fcdc09feat & fix: support highlight the comment if it's after the code at the same line, add an ignore for the lint check because this is a regex matching pattern.71d3620Merge branch 'main' into add-json-comment-supportbc573a7Merge branch 'main' into add-json-comment-supportc5a615fMerge branch 'mountain-loop:main' into add-json-comment-support83ba2e2Merge branch 'main' into add-json-comment-supporta73a50fMerge branch 'main' into add-json-comment-supportf1da0cfMerge branch 'main' into add-json-comment-supportf4fcfb2Merge branch 'main' into add-json-comment-support📊 Changes
5 files changed (+119 additions, -14 deletions)
View changed files
📝
src-web/components/core/Editor/Editor.css(+10 -0)📝
src-web/components/core/Editor/Editor.tsx(+6 -3)➕
src-web/components/core/Editor/commentHighlight.ts(+70 -0)📝
src-web/components/core/Editor/json-lint.ts(+7 -6)📝
src-web/hooks/useSendAnyHttpRequest.ts(+26 -5)📄 Description
What this does
I've added support for comments in the JSON editor :) ! Now you can use
//and/* */style comments when writing request bodies, which makes it way easier to document what you're testing.Why I built this
This was something I was really missing when I started using Yaak. I write multiple comments in my HTTP requests to test things, and I can't live without them. When I found out Yaak doesn't support this, I decided to add it myself. I thought it would be kinda easy, but it took me some time to get it right - though it was a really enjoyable experience XD.
When I'm working with complex API requests, I often want to add notes about what certain fields do or remind myself to change something later. Before this PR, adding comments would break everything because they're not valid JSON. This PR fixes that by:
What changed
Cmd/Ctrl+/to quickly comment/uncomment lines.Example
Now this works without errors:
The comments stay in the editor but get stripped out when the request is actually sent, so the API only sees valid JSON.
Tested
//and/* */styles workFuture improvements
There's one edge case with the highlighting: if you have
// /*on a line, the multi-line comment won't actually work (because the/*is inside a single-line comment), but the highlighting will still show everything after it as commented. Ideally, the highlighting should stop so the user can see that something's wrong. Although users can see a red dot and error indicator showing there's a problem, the visual highlighting could be clearer. I don't think this is critical for now since it's a rare case, but it could be improved in a future PR to help catch these mistakes.Current behavior (left) vs. Expected behavior (right):
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.