File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ drawRemainingContestationPeriod :: UTCTime -> UTCTime -> Widget Name
133
133
drawRemainingContestationPeriod deadline now =
134
134
let remaining = diffUTCTime deadline now
135
135
in if remaining > 0
136
- then padLeftRight 1 $ txt " Remaining time to contest: " <+> str (renderTime remaining)
136
+ then padLeftRight 1 $ vBox [ txt " Remaining time to contest: " , str (renderTime remaining)]
137
137
else txt " Contestation period passed, ready to fan out soon."
138
138
139
139
drawTotalCommitted :: UTxO -> Widget n
Original file line number Diff line number Diff line change @@ -45,12 +45,18 @@ handleEvent ::
45
45
EventM Name RootState ()
46
46
handleEvent cardanoClient client e = do
47
47
handleGlobalEvents e
48
+ handleAppEventVia handleTick () e
48
49
zoom connectedStateL $ do
49
50
handleAppEventVia handleHydraEventsConnectedState () e
50
51
zoom connectionL $ handleBrickEventsConnection cardanoClient client e
51
52
zoom (logStateL . logMessagesL) $
52
53
handleAppEventVia handleHydraEventsInfo () e
53
54
55
+ handleTick :: HydraEvent Tx -> EventM Name RootState ()
56
+ handleTick = \ case
57
+ Tick now -> nowL .= now
58
+ _ -> pure ()
59
+
54
60
handleAppEventVia :: (e -> EventM n s a ) -> a -> BrickEvent w e -> EventM n s a
55
61
handleAppEventVia f x = \ case
56
62
AppEvent e -> f e
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ withTUITest region action = do
271
271
as <- newIORef initialAssumedState
272
272
-- NOTE(SN): The null device should allow using this in CI, while we do
273
273
-- capture the output via `outputByteBuffer` anyway.
274
- nullFd <- openFd " /dev/null" WriteOnly Nothing defaultFileFlags
274
+ nullFd <- openFd " /dev/null" WriteOnly defaultFileFlags
275
275
realOut <- outputForConfig $ defaultConfig{outputFd = Just nullFd, termName = Just " xterm" }
276
276
closeFd nullFd
277
277
let output = testOut realOut as frameBuffer
You can’t perform that action at this time.
0 commit comments