diff --git a/selfdrive/ui/qt/offroad/developer_panel.cc b/selfdrive/ui/qt/offroad/developer_panel.cc index e679720a1b..b918a9353d 100644 --- a/selfdrive/ui/qt/offroad/developer_panel.cc +++ b/selfdrive/ui/qt/offroad/developer_panel.cc @@ -60,6 +60,14 @@ DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) { auto enableGithubRunner = new ParamControl("EnableGithubRunner", tr("Enable GitHub runner service"), tr("Enables or disables the github runner service."), ""); addItem(enableGithubRunner); + // error log button + errorLogBtn = new ButtonControl(tr("Error Log"), tr("VIEW"), tr("View the error log for sunnypilot crashes.")); + connect(errorLogBtn, &ButtonControl::clicked, [=]() { + std::string txt = util::read_file("/data/community/crashes/error.log"); + ConfirmationDialog::rich(QString::fromStdString(txt), this); + }); + addItem(errorLogBtn); + // Joystick and longitudinal maneuvers should be hidden on release branches is_release = params.getBool("IsReleaseBranch"); @@ -112,6 +120,9 @@ void DeveloperPanel::updateToggles(bool _offroad) { } experimentalLongitudinalToggle->refresh(); + // Handle specific controls visibility for release branches + errorLogBtn->setVisible(!is_release); + offroad = _offroad; } diff --git a/selfdrive/ui/qt/offroad/developer_panel.h b/selfdrive/ui/qt/offroad/developer_panel.h index beecc24dee..c1783444ea 100644 --- a/selfdrive/ui/qt/offroad/developer_panel.h +++ b/selfdrive/ui/qt/offroad/developer_panel.h @@ -16,6 +16,7 @@ private: Params params; ParamControl* adbToggle; ParamControl* joystickToggle; + ButtonControl* errorLogBtn; ParamControl* longManeuverToggle; ParamControl* experimentalLongitudinalToggle; ParamControl* hyundaiRadarTracksToggle; diff --git a/selfdrive/ui/translations/main_ar.ts b/selfdrive/ui/translations/main_ar.ts index 4cb648dc3d..643d563a78 100644 --- a/selfdrive/ui/translations/main_ar.ts +++ b/selfdrive/ui/translations/main_ar.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + عرض + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_de.ts b/selfdrive/ui/translations/main_de.ts index 5a994c4ad6..622a822ba9 100644 --- a/selfdrive/ui/translations/main_de.ts +++ b/selfdrive/ui/translations/main_de.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + ANSEHEN + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_es.ts b/selfdrive/ui/translations/main_es.ts index 77b1ecb6e4..25ed875eff 100644 --- a/selfdrive/ui/translations/main_es.ts +++ b/selfdrive/ui/translations/main_es.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + VER + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_fr.ts b/selfdrive/ui/translations/main_fr.ts index 94ebdb0a15..2da3eabafe 100644 --- a/selfdrive/ui/translations/main_fr.ts +++ b/selfdrive/ui/translations/main_fr.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + VOIR + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_ja.ts b/selfdrive/ui/translations/main_ja.ts index 1c6ab9a8b4..9d20a1e7d2 100644 --- a/selfdrive/ui/translations/main_ja.ts +++ b/selfdrive/ui/translations/main_ja.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + 確認 + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_ko.ts b/selfdrive/ui/translations/main_ko.ts index 3286cc081f..8a7dc29fd3 100644 --- a/selfdrive/ui/translations/main_ko.ts +++ b/selfdrive/ui/translations/main_ko.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + 보기 + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_pt-BR.ts b/selfdrive/ui/translations/main_pt-BR.ts index 7a18c35989..5fc837513d 100644 --- a/selfdrive/ui/translations/main_pt-BR.ts +++ b/selfdrive/ui/translations/main_pt-BR.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + VER + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_th.ts b/selfdrive/ui/translations/main_th.ts index abb3088dfe..ca3effbb72 100644 --- a/selfdrive/ui/translations/main_th.ts +++ b/selfdrive/ui/translations/main_th.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + ดู + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_tr.ts b/selfdrive/ui/translations/main_tr.ts index 4e0e93c708..a03a63dfb7 100644 --- a/selfdrive/ui/translations/main_tr.ts +++ b/selfdrive/ui/translations/main_tr.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + BAK + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_zh-CHS.ts b/selfdrive/ui/translations/main_zh-CHS.ts index c9807fa2d6..6b1bee2d9e 100644 --- a/selfdrive/ui/translations/main_zh-CHS.ts +++ b/selfdrive/ui/translations/main_zh-CHS.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + 查看 + + + View the error log for sunnypilot crashes. + + DevicePanel diff --git a/selfdrive/ui/translations/main_zh-CHT.ts b/selfdrive/ui/translations/main_zh-CHT.ts index 1df2d934a8..17fa912d20 100644 --- a/selfdrive/ui/translations/main_zh-CHT.ts +++ b/selfdrive/ui/translations/main_zh-CHT.ts @@ -159,6 +159,18 @@ Enables or disables the github runner service. + + Error Log + + + + VIEW + 觀看 + + + View the error log for sunnypilot crashes. + + DevicePanel