Open Adr-hyng opened 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.
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"
}
]
},
]
}
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.
Where should the local export button be put?
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.
Export Button is found at Quick Help Menu Drawer