csoc-de / Shifts

MIT License
28 stars 7 forks source link

Add more details to ShiftType #58

Open privatemaker opened 10 months ago

privatemaker commented 10 months ago

After filling out the ShiftType list with a handful of items, the items just display the title.

shifts-shifttype-list

It would be helpful to also see the days and time range on each ShiftType item, something like

Morning
Mon, Tue, Wed, Thu, Fri, Sat
7:30 AM - 3:00 PM

Perhaps also show the color attribute.

All of the data appears to be there in the XHR request.

[{
    "0": {
        "id": 1,
        "name": "Morning",
        "desc": "",
        "startTimestamp": "2023-10-20T05:30:00.000Z",
        "stopTimestamp": "2023-10-20T13:00:00.000Z",
        "color": "#DF1313",
        "moRule": 1,
        "tuRule": 1,
        "weRule": 1,
        "thRule": 1,
        "frRule": 1,
        "saRule": 1,
        "soRule": 0,
        "skillGroupId": 0,
        "isWeekly": 0,
        "deleted": 0
    }
}]

I would like to familiarize myself with the code and implement this enhancement but will wait for @csoc-kevink or @fkirchesch to comment if such contributions are welcome.