update todos

This commit is contained in:
Matt Hill
2024-06-22 21:47:18 -06:00
parent e0d23f4436
commit 68ed1c80ce
7 changed files with 9 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ export function appInitializer(
return () => {
storage.migrate036()
auth.init()
localStorage.init() // @TODO pretty sure we can navigate before this step
localStorage.init()
router.initialNavigation()
}
}

View File

@@ -54,7 +54,6 @@ export class GenericFormPage {
return
}
// @TODO make this more like generic input component dismissal
const success = await handler(this.formGroup.value)
if (success !== false) this.modalCtrl.dismiss()
}

View File

@@ -44,12 +44,7 @@ export class AppActionsPage {
status: T.Status,
action: { key: string; value: T.ActionMetadata },
) {
if (
status &&
action.value.allowedStatuses.includes(
status.main.status, // @TODO
)
) {
if (status && action.value.allowedStatuses.includes(status.main.status)) {
if (!isEmptyObject(action.value.input || {})) {
const modal = await this.modalCtrl.create({
component: GenericFormPage,
@@ -91,7 +86,7 @@ export class AppActionsPage {
await alert.present()
}
} else {
const statuses = [...action.value.allowedStatuses] // @TODO
const statuses = [...action.value.allowedStatuses]
const last = statuses.pop()
let statusesStr = statuses.join(', ')
let error = ''

View File

@@ -58,6 +58,7 @@ export class InitService extends Observable<MappedProgress> {
}
}),
catchError(e => {
// @TODO this toast is presenting when we navigate away from init page. It seems other websockets exhibit the same behavior, but we never noticed because the error were not being caught and presented in this manner
this.errorService.present(e)
return EMPTY

View File

@@ -714,7 +714,7 @@ export module Mock {
value: 'https://guessagain.com',
},
},
} as any // @TODO why is this necessary?
}
export const ConfigSpec: RR.GetPackageConfigRes['spec'] = {
bitcoin: {
@@ -1419,7 +1419,7 @@ export module Mock {
health: {},
},
},
actions: {}, // @TODO need mocks
actions: {},
serviceInterfaces: {
ui: {
id: 'ui',
@@ -1618,7 +1618,7 @@ export module Mock {
icon: 'assets/img/service-icons/btc-rpc-proxy.png',
kind: 'exists',
registryUrl: 'https://community-registry.start9.com',
versionSpec: '>2.0.0', // @TODO
versionSpec: '>2.0.0',
configSatisfied: false,
},
},

View File

@@ -127,7 +127,7 @@ export const mockPatchData: DataModel = {
},
},
},
actions: {}, // @TODO
actions: {},
serviceInterfaces: {
ui: {
id: 'ui',

View File

@@ -41,6 +41,7 @@ export class PatchDbSource extends Observable<Update<DataModel>[]> {
catchError((_, original$) => {
this.state.retrigger()
// @TODO this is returning right away, but we need to wait until state emits again from the retrigger() above.
return this.state.pipe(
filter(current => current === 'running'),
take(1),