[PR #137] [MERGED] Display Item Count for Collapsed JSON Nodes #72

Closed
opened 2025-12-29 07:19:12 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/137
Author: @otonii
Created: 11/23/2024
Status: Merged
Merged: 12/3/2024
Merged by: @gschier

Base: masterHead: feature/code-folding


📝 Commits (1)

  • e713a6c add codeFolding config for json

📊 Changes

1 file changed (+44 additions, -0 deletions)

View changed files

📝 src-web/components/core/Editor/extensions.ts (+44 -0)

📄 Description

Feature: Display Item Count for Collapsed JSON Nodes

Description

This PR implements a new feature that displays the number of properties or items in a JSON node when it is collapsed. This helps users quickly understand the amount of information contained in multi-line nodes without needing to expand and count them.

Motivation

Working with large JSON structures can make it difficult to quickly grasp the density of information in each node. This feature aims to improve the user experience by making navigation through complex JSONs more intuitive and efficient.

Key Changes

  1. Added an item/property counter to display next to collapsed nodes.
  2. Added the codeFolding configuration of CodeMirror library to support this functionality.

Screenshots

normal
Opened
Screenshot 2024-11-23 at 18 14 13
Folded

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/137 **Author:** [@otonii](https://github.com/otonii) **Created:** 11/23/2024 **Status:** ✅ Merged **Merged:** 12/3/2024 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `master` ← **Head:** `feature/code-folding` --- ### 📝 Commits (1) - [`e713a6c`](https://github.com/mountain-loop/yaak/commit/e713a6cdd314358febaa87027b2b17fe36dbd963) add codeFolding config for json ### 📊 Changes **1 file changed** (+44 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src-web/components/core/Editor/extensions.ts` (+44 -0) </details> ### 📄 Description ### **Feature: Display Item Count for Collapsed JSON Nodes** #### **Description** This PR implements a new feature that displays the number of properties or items in a JSON node when it is collapsed. This helps users quickly understand the amount of information contained in multi-line nodes without needing to expand and count them. #### **Motivation** Working with large JSON structures can make it difficult to quickly grasp the density of information in each node. This feature aims to improve the user experience by making navigation through complex JSONs more intuitive and efficient. #### **Key Changes** 1. Added an item/property counter to display next to collapsed nodes. 2. Added the `codeFolding` configuration of `CodeMirror` library to support this functionality. #### **Screenshots** | <img width="1027" alt="normal" src="https://github.com/user-attachments/assets/33abbdef-4e68-4d16-a4d5-37cf5c6e6776"> | |:--:| |Opened| |<img width="1027" alt="Screenshot 2024-11-23 at 18 14 13" src="https://github.com/user-attachments/assets/506ed100-664b-4c5f-876b-619d54d49e14">| |:--:| |Folded| --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 07:19:12 +01:00
adam closed this issue 2025-12-29 07:19:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#72