< Posts

cleanup, cleanup, cleanup

Published: 05-22-2024

more logo updates

the logo got a semi-transparent background, as well as a thin stroke.

new Fireclip logo (updated)

clean ups

worked on cleaning up the renderer-backend interaction. got rid of some redundant code.

improved requests handling by passing the status code back to the caller, as well as the deserialized body.

the actual method can be seen below.

typescript

Requests.ts

type ResWrapped<T> = {
    ok: boolean,
    data?: T,
    err?: string
    code: number
}

async function requestWithResponseBody<T>(url: string, method: string = "GET", body?: object, headers?: Record<string, string>): Promise<ResWrapped<T>> {
    const res = await request(url, method, body, headers)
    const result: ResWrapped<T> = {
        ok: res.ok,
        code: res.status
    }
    if (res.ok) {
        result.data = await res.json() as T
    } else {
        result.err = await res.text()
    }
    // console.log(result)
    return result
}

better login screen

the login was also refactored to accomodate the new logo.

the new login screen

simplified the process of sending messages form the frontend to backend.

so the frontend can now be easily alerted when needed.

what’s next ?

  • add logo to the header
  • updating the search to pull all items if wanted (maybe a search window ?)
  • beta releases would be nice, configurable in the app.
  • there is a way to send logs from the frontend to the backend. got this idea of creating a ring of logs that can be inspected (for debug purposes)
  • refactor/simplify the shortcuts window
  • change user password ? -> a bit risky, will probably require full deletion -> recreation
  • update the legal documents
  • backup user data to some place (maybe s3)
  • add a method to buy the license