spacr.qt.ai.issue_preview¶
Editable, explicitly approved preview for a public GitHub report.
Classes¶
Show the exact public payload and require a Send click. |
Module Contents¶
- class spacr.qt.ai.issue_preview.IssuePreviewDialog(report: Mapping[str, str], parent=None, console=None, traceback_text: str = '')[source]¶
Bases:
PySide6.QtWidgets.QDialogShow the exact public payload and require a Send click.
- Parameters:
report – the payload, as
bodyandfingerprint. What this dialog shows is what would be sent, with nothing added afterwards – which is the whole reason it exists.parent – parent widget.
console – the AI console that owns the conversation. Taken from
parentwhen not given, so the screen opening this does not have to know about the button.traceback_text – the traceback to offer, if there is one.
Build the review dialog shown before anything is posted publicly.
Nothing has been sent when this opens, and the warning at the top says so: a public issue is world-readable, indexed and mirrored, and cannot be reliably unpublished. Path stripping is on by default.
Diagnose is offered here because this is the moment the user is looking hardest at the error and the last moment before it goes somewhere public – an explanation may save the report entirely, and makes it better when it does not.
- Parameters:
report – the drafted issue – its
title,bodyandfingerprint.parent – parent widget, or
None.console – the console that owns the AI conversation; taken from the parent when not given, so the screen opening this need not know about the button.
traceback_text – the traceback to diagnose.