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

Add plenty of fixes #286

Merged
merged 4 commits into from
Dec 18, 2024
Merged

Add plenty of fixes #286

merged 4 commits into from
Dec 18, 2024

Conversation

CommanderRedYT
Copy link
Member

@CommanderRedYT CommanderRedYT commented Dec 18, 2024

This PR includes fixes for:

  • Typescript Type Checking (react-native-paper-dates "fix")
    • Running type checks inside the CI
  • Migration to another BottomSheet library that is hopefully less buggy
  • Do not fetch anything from github when we are offline
  • Add another splashscreen picture for landscape

@CommanderRedYT CommanderRedYT added enhancement New feature or request bugfix labels Dec 18, 2024
@CommanderRedYT CommanderRedYT self-assigned this Dec 18, 2024
Copy link

☂️ Code Coverage

% Stmts% Branch% Funcs% Lines
6.41 🔴0.09 🔴0.24 🔴6.65 🔴
Click to expand
File% Stmts% Branch% Funcs% Lines
src
storage.ts11.11 🔴0 🔴0 🔴11.11 🔴
store.ts70.58 🟡100 🟢40 🔴75 🟡
translations.ts100 🟢50 🔴100 🟢100 🟢
constants.ts100 🟢100 🟢100 🟢100 🟢
style.tsx31.81 🔴0 🔴0 🔴31.81 🔴
InnerApp.tsx5.43 🔴0 🔴0 🔴5.61 🔴
App.tsx100 🟢100 🟢100 🟢100 🟢
src/components
StorageMigrator.tsx9.09 🔴0 🔴0 🔴9.09 🔴
BaseModal.tsx14.28 🔴0 🔴0 🔴14.28 🔴
ReleaseChangelog.tsx40 🔴0 🔴0 🔴40 🔴
ShowTimeRange.tsx7.69 🔴0 🔴0 🔴9.09 🔴
OrientationContainer.tsx33.33 🔴0 🔴0 🔴33.33 🔴
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/slices
opendtu.ts5.05 🔴0 🔴0 🔴5.05 🔴
settings.ts5.2 🔴0 🔴0 🔴5.2 🔴
app.ts31.25 🔴0 🔴0 🔴31.25 🔴
database.ts25 🔴0 🔴0 🔴28.57 🔴
github.ts30.76 🔴100 🟢0 🔴30.76 🔴
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 🔴
correctTag.ts16.66 🔴0 🔴0 🔴16.66 🔴
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 🔴
validation.ts12.5 🔴0 🔴0 🔴12.5 🔴
src/types/opendtu
state.ts100 🟢100 🟢100 🟢100 🟢
control.ts100 🟢100 🟢100 🟢100 🟢
settings.ts100 🟢100 🟢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.14 🔴0 🔴0 🔴7.69 🔴
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.16 🔴0 🔴0 🔴0.16 🔴
ApiHandler.tsx4.25 🔴0 🔴0 🔴4.34 🔴
src/components/styled
StyledSurface.tsx33.33 🔴0 🔴0 🔴33.33 🔴
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 🔴
DcPowerChart.tsx14.28 🔴0 🔴0 🔴14.28 🔴
DcVoltageChart.tsx14.28 🔴0 🔴0 🔴14.28 🔴
ImportantCharts.tsx3.12 🔴0 🔴0 🔴3.44 🔴
src/database
prometheus.ts1.33 🔴0 🔴0 🔴1.42 🔴
index.tsx9.19 🔴0 🔴0 🔴9.63 🔴
src/github
index.tsx55.55 🟠100 🟢0 🔴71.42 🟡
FetchHandler.tsx3.96 🔴0 🔴0 🔴4.21 🔴
src/components/modals
AppChangelogModal.tsx4.76 🔴0 🔴0 🔴4.87 🔴
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.09 🔴0 🔴0 🔴9.09 🔴
ChangeThemeModal.tsx10.52 🔴0 🔴0 🔴11.11 🔴
ChangeEnumValueModal.tsx4 🔴0 🔴0 🔴4 🔴
ChangeTextValueModal.tsx4.76 🔴0 🔴0 🔴4.76 🔴
ChangeBooleanValueModal.tsx3.84 🔴0 🔴0 🔴3.84 🔴
NTPChangeTimezoneModal.tsx3.03 🔴0 🔴0 🔴3.17 🔴
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.12 🔴0 🔴0 🔴2.12 🔴
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.tsx3.33 🔴0 🔴0 🔴3.33 🔴
FirmwareListScreen.tsx2.56 🔴0 🔴0 🔴2.7 🔴
LicensesScreen.tsx15.38 🔴0 🔴0 🔴15.38 🔴
MqttInformationScreen.tsx5.88 🔴0 🔴0 🔴6.25 🔴
NetworkInformationScreen.tsx5 🔴0 🔴0 🔴5.55 🔴
NtpInformationScreen.tsx11.11 🔴0 🔴0 🔴12.5 🔴
SystemInformationScreen.tsx3.22 🔴0 🔴0 🔴3.5 🔴
src/components/firmware
FirmwareListItem.tsx10 🔴0 🔴0 🔴10.34 🔴
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.13 🔴0 🔴0 🔴1.26 🔴
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
DtuSettingsScreen.tsx2.41 🔴0 🔴0 🔴2.43 🔴
NetworkSettingsScreen.tsx0.79 🔴0 🔴0 🔴0.8 🔴
NTPSettingsScreen.tsx2.24 🔴0 🔴0 🔴2.27 🔴
src/components/settings
NTPCurrentTimeComponents.tsx5.88 🔴0 🔴0 🔴5.88 🔴
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 3d84812 into develop Dec 18, 2024
6 checks passed
@CommanderRedYT CommanderRedYT deleted the plenty-of-fixes branch December 18, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant