IrishEgie / qrsquad

This is a simple QR Scanner Software paired with an OCR device. Right now this is just the barebones front-end
0 stars 0 forks source link

Export all Ticket recorded from Client-side (Cache) #13

Open Adr-hyng opened 6 months ago

Adr-hyng commented 6 months ago

Export Button is found at Quick Help Menu Drawer

Adr-hyng commented 6 months ago

Need Export button for Local Device @IrishEgie. The current export button from the Drawer is for server-side only, so, another export button for "Export Cache" or something like that.

Adr-hyng commented 6 months ago

Meanwhile, for developers, either use JSON or SQLite. The output of the export data should be in JSON format.

{
    'exported_tickets': [
        {
            "id": 0,
            "uid": f6333a7b-9cb3-496f-a13f-861e51961884,
            "check_in": "2023-12-21T10:45:30.000Z",
            "check_out": "2023-12-21T10:45:30.000Z",
            "history": [
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                }
            ]
        },
        {
            "id": 1,
            "uid": f6333a7b-9cb3-496f-a13f-861e51961884,
            "check_in": "2023-12-21T10:45:30.000Z",
            "check_out": "2023-12-21T10:45:30.000Z",
            "history": [
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                }
            ]
        },
        {
            "id": 2,
            "uid": f6333a7b-9cb3-496f-a13f-861e51961884,
            "check_in": "2023-12-21T10:45:30.000Z",
            "check_out": "2023-12-21T10:45:30.000Z",
            "history": [
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 1,
                    "time_used": "2023-12-21T10:45:30.000Z"
                },
                {
                    "date_used": "2023-12-21T10:45:30.000Z",
                    "type": 0,
                    "time_used": "2023-12-21T10:45:30.000Z"
                }
            ]
        },
    ]
}
IrishEgie commented 6 months ago

There are 2 export buttons currently, one at the ticket page & one at the sidebar drawer.... both are different buttons. That was why at the initial UI draft there was a dedicated button to navigate to the ticket page.

If another button is really necessary where should this be put?

Here are the 2, exports right now. image image

Where should the local export button be put?

IrishEgie commented 6 months ago

Edited the export button (complete with simple animation) in the Quick Menu Drawer to house a bottom sheet popping up 2 options of exporting function from client side or server side. You can use these 2 containers as buttons to execute your function of exporting.

image