diff --git a/src/Panel/HistoryPanel.php b/src/Panel/HistoryPanel.php index 336c4a3f8..cd5acc749 100644 --- a/src/Panel/HistoryPanel.php +++ b/src/Panel/HistoryPanel.php @@ -37,4 +37,14 @@ public function data() 'requests' => $recent->toArray(), ]; } + + /** + * Gets the initial text for the history summary + * + * @return string + */ + public function summary() + { + return '0 xhr'; + } } diff --git a/src/Routing/Filter/DebugBarFilter.php b/src/Routing/Filter/DebugBarFilter.php index ea8d3ef1b..ce935e6a3 100644 --- a/src/Routing/Filter/DebugBarFilter.php +++ b/src/Routing/Filter/DebugBarFilter.php @@ -209,6 +209,7 @@ public function afterDispatch(Event $event) $row = $requests->save($row); $this->_injectScripts($row->id, $response); + $response->header(['X-DEBUGKIT-ID' => $row->id]); } /** diff --git a/src/Template/Element/history_panel.ctp b/src/Template/Element/history_panel.ctp index e62ea69a8..91340e320 100644 --- a/src/Template/Element/history_panel.ctp +++ b/src/Template/Element/history_panel.ctp @@ -13,6 +13,7 @@ */ use Cake\Routing\Router; ?> +

@@ -39,12 +40,62 @@ use Cake\Routing\Router; +
+ + + +