feat: add scripts tab for gql requests in history request pane

This commit is contained in:
Udhay-Adithya
2025-06-24 23:38:47 +05:30
parent dad447bb0a
commit 5e33d08643

View File

@ -89,13 +89,11 @@ class HistoryRequestPane extends ConsumerWidget {
!codePaneVisible; !codePaneVisible;
}, },
showViewCodeButton: !isCompact, showViewCodeButton: !isCompact,
showIndicators: [ showIndicators: [headerLength > 0, hasQuery, scriptsLength > 0],
headerLength > 0,
hasQuery,
],
tabLabels: const [ tabLabels: const [
kLabelHeaders, kLabelHeaders,
kLabelQuery, kLabelQuery,
kLabelScripts,
], ],
children: [ children: [
RequestDataTable( RequestDataTable(
@ -103,6 +101,7 @@ class HistoryRequestPane extends ConsumerWidget {
keyName: kNameHeader, keyName: kNameHeader,
), ),
const HisRequestBody(), const HisRequestBody(),
const HistoryScriptsTab(),
], ],
), ),
_ => kSizedBoxEmpty, _ => kSizedBoxEmpty,