Skip to content

Conversation

@Insality
Copy link
Owner

@Insality Insality commented Jun 19, 2025

Druid 1.2.0

  • [Blocker] Fix for internal is_enabled state
  • [Button] Expose all click functions for the button
  • [Scroll] Add scroll_to_make_node_visible function
  • [Palette] Add Druid Color module
    • Use local color = require("druid.color") to access the module
    • Manage color palettes
    • Color conversions
    • Convenient usage
  • [Container] Fix for container stretch mode
    • stretch and fit was not init correctly in the init function arguments
  • [Rich Text] Using color names from the palette
  • [Rich Text] Add rich_text:set_split_to_characters(true) to split each letter node separately
    • Weird implementation, but nice to have
  • [Rich Text] Add set_width and set_height functions
  • [GO Widgets] Now passes events and functions from the widget to the GO context
  • [Layout] Add set_position_function function, similar to the Grid component
  • #329 Allow numeric characters in RichText tags

@Insality Insality self-assigned this Jun 19, 2025
Copilot AI review requested due to automatic review settings August 8, 2025 15:22
Copy link

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 introduces multiple improvements and bug fixes to the Druid UI framework. It includes new widgets for performance monitoring, enhanced properties panel functionality, color system refactoring, rich text improvements, and various component fixes.

  • New memory and FPS panel widgets for performance monitoring
  • Enhanced properties panel with scene navigation, auto-refresh, and Lua table rendering
  • Refactored color system to remove hardcoded colors from rich text styles

Reviewed Changes

Copilot reviewed 26 out of 30 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
wiki/manuals/widget_memory_fps_panels.md New documentation for memory and FPS panel widgets
wiki/changelog.md Version 1.2.0 changelog with feature additions
test/tests/test_rich_text.lua Updated tests to use hex colors instead of named colors
druid/widget/properties_panel/properties_panel.lua Major enhancements including scene navigation, auto-refresh, and Lua table rendering
druid/color.lua Enhanced color system with palette loading from config
druid/custom/rich_text/rich_text.lua Added split-to-characters functionality
druid/base/scroll.lua Added scroll_to_make_node_visible method
druid/base/button.lua Refactored internal method names for consistency
druid/base/blocker.lua Fixed enabled state initialization bug
Comments suppressed due to low confidence (1)

druid/widget/properties_panel/properties/property_button.lua:8

  • This commented-out field annotation should be removed as it's inconsistent with the uncommented fields above and may cause confusion.
---@field text_button druid.text

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 48.92473% with 95 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.63%. Comparing base (ba7ee40) to head (f39c23f).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
druid/base/scroll.lua 2.94% 33 Missing ⚠️
druid/druid.lua 19.04% 17 Missing ⚠️
druid/helper.lua 41.66% 14 Missing ⚠️
druid/custom/rich_text/rich_text.lua 38.46% 8 Missing ⚠️
druid/color.lua 70.83% 7 Missing ⚠️
druid/custom/rich_text/module/rt_parse.lua 44.44% 5 Missing ⚠️
druid/extended/layout.lua 63.63% 4 Missing ⚠️
druid/base/button.lua 80.00% 3 Missing ⚠️
druid/system/druid_instance.lua 66.66% 2 Missing ⚠️
druid/component.lua 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #314      +/-   ##
==========================================
- Coverage   68.08%   67.63%   -0.45%     
==========================================
  Files          32       33       +1     
  Lines        4791     4950     +159     
==========================================
+ Hits         3262     3348      +86     
- Misses       1529     1602      +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants