mirror of
https://github.com/mum4k/termdash.git
synced 2026-04-27 03:15:55 +03:00
[PR #273] [MERGED] Send metadata about events to widgets. #294
Labels
No labels
bug
cleanup
enhancement
enhancement
enhancement
good first issue
help wanted
help wanted
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/termdash#294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/mum4k/termdash/pull/273
Author: @mum4k
Created: 11/28/2020
Status: ✅ Merged
Merged: 11/28/2020
Merged by: @mum4k
Base:
devel← Head:243-event-meta📝 Commits (6)
dd6acb1Give metadata about events to widgets.43c0f26Updating CHANGELOG.6a4dc1dFakewidget now indicates focus state when an event is received.03144e6Update instructions in CHANGELOG.dc2118bContainer test cases exercising delivery of event metadata.ceab87bTermdash 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.