[PR #273] [MERGED] Send metadata about events to widgets. #294

Closed
opened 2026-03-03 16:23:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/273
Author: @mum4k
Created: 11/28/2020
Status: Merged
Merged: 11/28/2020
Merged by: @mum4k

Base: develHead: 243-event-meta


📝 Commits (6)

  • dd6acb1 Give metadata about events to widgets.
  • 43c0f26 Updating CHANGELOG.
  • 6a4dc1d Fakewidget now indicates focus state when an event is received.
  • 03144e6 Update instructions in CHANGELOG.
  • dc2118b Container test cases exercising delivery of event metadata.
  • ceab87b Termdash tests exercising delivery of event metadata.

📊 Changes

24 files changed (+414 additions, -154 deletions)

View changed files

📝 CHANGELOG.md (+21 -0)
📝 container/container.go (+46 -23)
📝 container/container_test.go (+104 -34)
📝 private/fakewidget/fakewidget.go (+36 -16)
📝 private/fakewidget/fakewidget_test.go (+117 -16)
📝 termdash_test.go (+20 -5)
📝 widgetapi/widgetapi.go (+18 -8)
📝 widgets/barchart/barchart.go (+2 -2)
📝 widgets/button/button.go (+2 -2)
📝 widgets/button/button_test.go (+2 -2)
📝 widgets/donut/donut.go (+2 -2)
📝 widgets/donut/donut_test.go (+2 -2)
📝 widgets/gauge/gauge.go (+2 -2)
📝 widgets/gauge/gauge_test.go (+2 -2)
📝 widgets/heatmap/heatmap.go (+2 -2)
📝 widgets/linechart/linechart.go (+2 -2)
📝 widgets/linechart/linechart_test.go (+8 -8)
📝 widgets/segmentdisplay/segmentdisplay.go (+2 -2)
📝 widgets/segmentdisplay/segmentdisplay_test.go (+2 -2)
📝 widgets/sparkline/sparkline.go (+2 -2)

...and 4 more files

📄 Description

Initially lets the widget know if it container was focused at the time of the event.

Works on #243.


🔄 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/mum4k/termdash/pull/273 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 11/28/2020 **Status:** ✅ Merged **Merged:** 11/28/2020 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `243-event-meta` --- ### 📝 Commits (6) - [`dd6acb1`](https://github.com/mum4k/termdash/commit/dd6acb15e188c5cf197fe9bc1a7833f82e6a2cc3) Give metadata about events to widgets. - [`43c0f26`](https://github.com/mum4k/termdash/commit/43c0f26c5ed52deca855e9904800f69b22e93599) Updating CHANGELOG. - [`6a4dc1d`](https://github.com/mum4k/termdash/commit/6a4dc1dc3f9bd8e5a1db78290b65d6d13815d838) Fakewidget now indicates focus state when an event is received. - [`03144e6`](https://github.com/mum4k/termdash/commit/03144e64690964c2831393099f1a9c35115e3420) Update instructions in CHANGELOG. - [`dc2118b`](https://github.com/mum4k/termdash/commit/dc2118baa785d8bdd442f33a13600a897e3b5712) Container test cases exercising delivery of event metadata. - [`ceab87b`](https://github.com/mum4k/termdash/commit/ceab87b797b12a04b2378df513add8e8adb1bb1c) Termdash tests exercising delivery of event metadata. ### 📊 Changes **24 files changed** (+414 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+21 -0) 📝 `container/container.go` (+46 -23) 📝 `container/container_test.go` (+104 -34) 📝 `private/fakewidget/fakewidget.go` (+36 -16) 📝 `private/fakewidget/fakewidget_test.go` (+117 -16) 📝 `termdash_test.go` (+20 -5) 📝 `widgetapi/widgetapi.go` (+18 -8) 📝 `widgets/barchart/barchart.go` (+2 -2) 📝 `widgets/button/button.go` (+2 -2) 📝 `widgets/button/button_test.go` (+2 -2) 📝 `widgets/donut/donut.go` (+2 -2) 📝 `widgets/donut/donut_test.go` (+2 -2) 📝 `widgets/gauge/gauge.go` (+2 -2) 📝 `widgets/gauge/gauge_test.go` (+2 -2) 📝 `widgets/heatmap/heatmap.go` (+2 -2) 📝 `widgets/linechart/linechart.go` (+2 -2) 📝 `widgets/linechart/linechart_test.go` (+8 -8) 📝 `widgets/segmentdisplay/segmentdisplay.go` (+2 -2) 📝 `widgets/segmentdisplay/segmentdisplay_test.go` (+2 -2) 📝 `widgets/sparkline/sparkline.go` (+2 -2) _...and 4 more files_ </details> ### 📄 Description Initially lets the widget know if it container was focused at the time of the event. Works on #243. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:23:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#294
No description provided.