Skip to content

Comments

Toggle additional code info in projects/codebook and cod…#193

Merged
jankapunkt merged 2 commits intomainfrom
feature/toggle-code-descriptions
Sep 15, 2025
Merged

Toggle additional code info in projects/codebook and cod…#193
jankapunkt merged 2 commits intomainfrom
feature/toggle-code-descriptions

Conversation

@jankapunkt
Copy link
Member

…ing pages

This allows users to toggle additional code info on the projects/code page and coding page.

image image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability to toggle the display of additional code information (descriptions) on the projects/codebooks page and coding page. Users can now show/hide code descriptions for better readability and reduced visual clutter.

  • Adds a reactive state system to track which codebooks have details shown/hidden
  • Introduces a toggle button with information icon to control visibility of code descriptions
  • Implements hierarchical display of code structure with indentation in the preview

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
useCodes.js Adds reactive state management for tracking detail visibility per codebook
CodebookRenderer.vue Adds information icon toggle button to control code details display
CodeTreeItemRenderer.vue Conditionally displays code descriptions based on toggle state
CodeTreeItem.vue Passes showDetails prop through component hierarchy
CodeTree.vue Connects showDetails state to the tree component
useCodebookPreview.js Adds code sorting functionality with depth calculation for hierarchical display
ProjectCodebooks.vue Implements toggle for code details in the preview with improved layout

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jankapunkt jankapunkt marked this pull request as ready for review September 12, 2025 10:45
Copy link
Contributor

@kadewe kadewe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can push this into deployment. For the next software iteration i may suggest:

The information circle icon is informative (it is understandable), but in the next iteration we need a "tooltip" and also the i in the button is just barely visible. Also it is debatable, if the "i" (which stands for "information") is a good shortcut for "notice".

Also the notice text should be put into a lighter background area - see the following sketch to make it better discernible from the codes
Bildschirmfoto 2025-09-15 um 15 34 05

@jankapunkt jankapunkt merged commit c6cabe3 into main Sep 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants