Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update firmware update logic and screens #196

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

CommanderRedYT
Copy link
Member

No description provided.

@CommanderRedYT CommanderRedYT self-assigned this Sep 27, 2024
@CommanderRedYT CommanderRedYT changed the title Improve log information Update firmware update logic and screens Sep 27, 2024
@CommanderRedYT CommanderRedYT marked this pull request as draft September 27, 2024 19:06
@CommanderRedYT CommanderRedYT added the enhancement New feature or request label Sep 27, 2024
@CommanderRedYT CommanderRedYT marked this pull request as ready for review September 27, 2024 21:00
Copy link

☂️ Code Coverage

% Stmts% Branch% Funcs% Lines
6.69 🔴0.1 🔴0.18 🔴6.96 🔴
Click to expand
File% Stmts% Branch% Funcs% Lines
src/slices
app.ts31.25 🔴0 🔴0 🔴31.25 🔴
settings.ts5.31 🔴0 🔴0 🔴5.31 🔴
database.ts25 🔴0 🔴0 🔴28.57 🔴
github.ts30.76 🔴100 🟢0 🔴30.76 🔴
opendtu.ts5.61 🔴0 🔴0 🔴5.61 🔴
src/types
settings.ts100 🟢100 🟢100 🟢100 🟢
src/utils
log.ts55.55 🟠25 🔴0 🔴62.5 🟠
ago.ts11.11 🔴0 🔴0 🔴12.5 🔴
capitalize.ts50 🔴100 🟢0 🔴50 🔴
formatBytes.ts33.33 🔴0 🔴0 🔴40 🔴
percentage.ts25 🔴0 🔴0 🔴25 🔴
formatVersion.ts20 🔴100 🟢0 🔴20 🔴
time.ts0 🔴100 🟢0 🔴0 🔴
inverter.ts12.5 🔴0 🔴0 🔴12.5 🔴
isIP.ts25 🔴0 🔴0 🔴33.33 🔴
src
constants.ts100 🟢100 🟢100 🟢100 🟢
store.ts88.88 🟢100 🟢50 🔴100 🟢
style.tsx31.81 🔴0 🔴0 🔴31.81 🔴
App.tsx7.21 🔴0 🔴3.33 🔴7.44 🔴
src/components
BaseModal.tsx25 🔴0 🔴0 🔴25 🔴
ShowTimeRange.tsx7.69 🔴0 🔴0 🔴9.09 🔴
OpenDTUValue.tsx18.18 🔴0 🔴0 🔴18.18 🔴
DeviceOfflineWrapper.tsx8.33 🔴0 🔴0 🔴8.33 🔴
DeviceStatus.tsx5.88 🔴0 🔴0 🔴7.69 🔴
StatusWidget.tsx25 🔴0 🔴0 🔴25 🔴
ImportantStatusValues.tsx14.28 🔴100 🟢0 🔴20 🔴
src/components/modals
AppOfflineModal.tsx25 🔴100 🟢0 🔴25 🔴
EnableAppUpdatesModal.tsx7.69 🔴100 🟢0 🔴7.69 🔴
EnableFetchOpenDtuUpdatesModal.tsx7.69 🔴100 🟢0 🔴7.69 🔴
LogExtensionModal.tsx7.69 🔴0 🔴0 🔴9.09 🔴
LogLevelModal.tsx16.66 🔴100 🟢0 🔴16.66 🔴
ChangeCustomNameModal.tsx4.16 🔴0 🔴0 🔴4.34 🔴
ChangeOpendtuCredentialsModal.tsx4.25 🔴0 🔴0 🔴4.44 🔴
ChangeServerUrlModal.tsx5.26 🔴0 🔴0 🔴5.88 🔴
ConfirmDeleteDeviceModal.tsx7.14 🔴100 🟢0 🔴7.14 🔴
ChangeGraphRefreshIntervalModal.tsx9.09 🔴0 🔴0 🔴10 🔴
TimeRangeLastNSecondsModal.tsx11.76 🔴0 🔴0 🔴12.5 🔴
AddDatabaseModal.tsx4.34 🔴0 🔴0 🔴4.34 🔴
ManageDatabaseModal.tsx2.56 🔴0 🔴0 🔴2.7 🔴
GenericRefreshModal.tsx11.11 🔴100 🟢0 🔴11.11 🔴
InstallAssetModal.tsx2.4 🔴0 🔴0 🔴2.4 🔴
SelectFirmwareModal.tsx3.84 🔴0 🔴0 🔴4.16 🔴
LimitConfigModal.tsx5 🔴0 🔴0 🔴5.08 🔴
PowerConfigModal.tsx8.57 🔴0 🔴0 🔴8.82 🔴
ChangeLanguageModal.tsx9.52 🔴0 🔴0 🔴9.52 🔴
ChangeThemeModal.tsx5.55 🔴100 🟢0 🔴5.88 🔴
ChangeBooleanValueModal.tsx3.84 🔴0 🔴0 🔴3.84 🔴
ChangeTextValueModal.tsx5 🔴0 🔴0 🔴5 🔴
src/types/opendtu
state.ts100 🟢100 🟢100 🟢100 🟢
control.ts100 🟢100 🟢100 🟢100 🟢
src/translations
index.ts100 🟢50 🔴100 🟢100 🟢
src/hooks
useAppLanguage.ts33.33 🔴0 🔴0 🔴50 🔴
useHasLiveData.ts10.34 🔴0 🔴0 🔴10.34 🔴
useOrientation.ts14.28 🔴0 🔴0 🔴14.28 🔴
useEnhancedLog.ts16.66 🔴0 🔴0 🔴20 🔴
useLivedata.ts12.5 🔴0 🔴0 🔴12.5 🔴
useHasNewAppVersion.ts9.09 🔴0 🔴0 🔴11.11 🔴
useDeviceIndex.ts33.33 🔴100 🟢0 🔴50 🔴
useDtuState.ts25 🔴0 🔴0 🔴25 🔴
useHasAuthConfigured.tsx33.33 🔴0 🔴0 🔴33.33 🔴
useHasNewOpenDtuVersion.ts7.69 🔴0 🔴0 🔴9.09 🔴
useInverterDevice.ts20 🔴0 🔴0 🔴20 🔴
useEventLog.ts20 🔴0 🔴0 🔴20 🔴
useFirmwareDependantFeature.ts18.18 🔴0 🔴0 🔴20 🔴
useGridProfile.ts20 🔴0 🔴0 🔴20 🔴
useInverterLimits.ts20 🔴0 🔴0 🔴20 🔴
useInverterPowerData.ts20 🔴0 🔴0 🔴20 🔴
useMemoWithInterval.ts8.33 🔴0 🔴0 🔴10 🔴
useIsConnected.ts25 🔴0 🔴0 🔴25 🔴
useTriedToConnect.ts25 🔴0 🔴0 🔴25 🔴
useRequireMultiplePresses.ts7.69 🔴0 🔴0 🔴7.69 🔴
useSettings.ts33.33 🔴100 🟢0 🔴50 🔴
useDtuSettings.ts20 🔴0 🔴0 🔴20 🔴
src/firmware
index.ts13.33 🔴0 🔴0 🔴13.33 🔴
src/api
opendtuapi.ts0.19 🔴0 🔴0 🔴0.19 🔴
ApiHandler.tsx4.44 🔴0 🔴0 🔴4.54 🔴
src/components/styled
StyledSurface.tsx40 🔴0 🔴0 🔴40 🔴
StyledListItem.tsx50 🔴0 🔴0 🔴50 🔴
StyledTextInput.tsx100 🟢100 🟢100 🟢100 🟢
SettingsSurface.tsx44.44 🔴0 🔴0 🔴44.44 🔴
src/components/Charts
UnifiedLineChart.tsx3.09 🔴0 🔴0 🔴3.19 🔴
AcPowerChart.tsx14.28 🔴0 🔴0 🔴14.28 🔴
DcVoltageChart.tsx14.28 🔴0 🔴0 🔴14.28 🔴
ImportantCharts.tsx3.12 🔴0 🔴0 🔴3.44 🔴
src/database
prometheus.ts1.49 🔴0 🔴0 🔴1.58 🔴
index.tsx9.19 🔴0 🔴0 🔴9.63 🔴
src/github
index.tsx55.55 🟠100 🟢0 🔴71.42 🟡
FetchHandler.tsx4.54 🔴0 🔴0 🔴4.87 🔴
src/components/logging
LogLine.tsx40 🔴100 🟢0 🔴40 🔴
src/views/navigation/screens/DebugGroup
AppLogScreen.tsx7.69 🔴0 🔴0 🔴7.69 🔴
DebugColorsScreen.tsx20 🔴0 🔴0 🔴20 🔴
DebugScreen.tsx2.38 🔴0 🔴0 🔴2.38 🔴
src/components/devices
DeviceListItem.tsx4.76 🔴0 🔴0 🔴5.55 🔴
DeviceList.tsx20 🔴100 🟢0 🔴25 🔴
MDNSScanItem.tsx5 🔴0 🔴0 🔴5.12 🔴
MDNSScan.tsx5.12 🔴0 🔴0 🔴5.4 🔴
src/views/navigation/screens/DeviceGroup
DeviceListScreen.tsx7.14 🔴0 🔴0 🔴7.14 🔴
DeviceSettingsScreen.tsx1.4 🔴0 🔴0 🔴1.58 🔴
src/views/navigation/screens/GraphsGroup
ConfigureGraphsScreen.tsx1.16 🔴0 🔴0 🔴1.29 🔴
ManageDatabasesScreen.tsx5.55 🔴0 🔴0 🔴5.88 🔴
SelectDatabaseScreen.tsx4 🔴0 🔴0 🔴4.16 🔴
src/views/navigation/screens/InformationGroup
AboutAppScreen.tsx6.25 🔴0 🔴0 🔴6.25 🔴
FirmwareListScreen.tsx2.7 🔴0 🔴0 🔴2.85 🔴
LicensesScreen.tsx10 🔴0 🔴0 🔴10 🔴
MqttInformationScreen.tsx5.88 🔴0 🔴0 🔴6.25 🔴
NetworkInformationScreen.tsx5 🔴0 🔴0 🔴5.55 🔴
NtpInformationScreen.tsx11.11 🔴0 🔴0 🔴12.5 🔴
SystemInformationScreen.tsx1.81 🔴0 🔴0 🔴1.96 🔴
src/components/firmware
FirmwareListItem.tsx10.34 🔴0 🔴0 🔴10.71 🔴
src/views/navigation/screens/InverterGroup
InverterDataScreen.tsx8.69 🔴0 🔴0 🔴9.52 🔴
InverterDeviceInfoScreen.tsx5.55 🔴0 🔴0 🔴5.88 🔴
InverterEventLogScreen.tsx7.69 🔴0 🔴0 🔴8 🔴
InverterGridProfileScreen.tsx5.71 🔴0 🔴0 🔴6.06 🔴
InverterInfoScreen.tsx3.75 🔴0 🔴0 🔴3.84 🔴
src/views/navigation/tabs
GraphTab.tsx33.33 🔴100 🟢0 🔴33.33 🔴
InverterListTab.tsx33.33 🔴100 🟢0 🔴33.33 🔴
LivedataTab.tsx33.33 🔴100 🟢0 🔴33.33 🔴
MainSettingsTab.tsx1.19 🔴0 🔴0 🔴1.33 🔴
src/components/inverters
InverterListItem.tsx2.27 🔴0 🔴0 🔴2.43 🔴
InverterList.tsx6.66 🔴0 🔴0 🔴7.14 🔴
src/views/navigation
NavigationTabs.tsx33.33 🔴0 🔴0 🔴42.85 🔴
NavigationStack.tsx40 🔴0 🔴0 🔴40 🔴
src/views/navigation/screens
MainScreen.tsx15.38 🔴0 🔴0 🔴15.38 🔴
src/views/navigation/screens/SettingsGroup
NetworkSettingsScreen.tsx0.64 🔴0 🔴0 🔴0.64 🔴
src/views/navigation/screens/SetupGroup
SetupAddOpenDTUScreen.tsx2.81 🔴0 🔴0 🔴2.89 🔴
SetupAuthenticateOpenDTUInstanceScreen.tsx3.07 🔴0 🔴0 🔴3.12 🔴
SetupOpenDTUCompleteScreen.tsx8.33 🔴0 🔴0 🔴9.09 🔴

@CommanderRedYT CommanderRedYT merged commit 28fa72f into develop Sep 27, 2024
6 checks passed
@CommanderRedYT CommanderRedYT deleted the 191-firmware-update-seems-broken branch September 27, 2024 21:10
@CommanderRedYT CommanderRedYT linked an issue Sep 27, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Firmware Update seems broken
1 participant