-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
common
-
accwill be named as{type}Acc -
itemwill be named as{type}
utils.js
-
getFormattedDate(date, format)toformatDate(date, format) -
getCurrentMonth(date)will be removed by lint -
genDayOfWeek(DayOfWeekString)togenDateBlock(dayOW), which dayOW means dayOfWeek -
str2numberStringingenDayOfWeektodayOWMap -
genTimeBlock(dayOfWeek, hours, minutes)togenTimeBlock(dayOW, hours, minutes) -
addColor(events)toassignColor(events) -
hashString(s)will be removed by lint -
colorGenerator(num)topickColor(idx),color_listtocolorList
TimeTableView.js
- props
numberOfDaystonDays - props
formatDateHeadertodateHeaderFormat - props
selectedDateandpivotDateshould be fixed and linted - state
currentMomenttocurrentDate -
generateTimes(pivotTime, endPivotTime)togenTimes(pivotTime, endPivotTime)or better syntax
Header.js
-
getFontSizeHeader(numberOfDays)toheaderFontSize(nDays) -
getDayTextStyles(numberOfDays)todayTextStyle(nDays) -
getColumns(numberOfDays, selectedDate)todatesFrom...(nDays, ...) -
Columns({ columns, numberOfDays, format})toDaysHeader({ dates, nDays, format })and removeColumnComponent. -
Titlerole seems to be speicifed. It is empty. - WeekViewHeader props
numberOfDaystonDays - WeekViewHeader props
selectedDateto... - WeekViewHeader props
formatDatetodateFormat
Events.js
-
EventstoEventTable -
getEventsByNumberOfDays(numberOfDays, events, selectedDate)tocatEventsByDays(nDays, events, ...) -
getStyleForEvent(item)tocalcEventStyle(event) -
getEventsWithPosition(totalEvents)toadjustEventStyle(allEvents) -
getEventItemWidth; change as const (if hooks) -
sortEventByDates(events)tosortEventsByDate(events) - Events props
numberOfDaystonDays - Events props
selectedDateto...
Event.js
- currently no item available
selectedDate
TimeTableViewis saving propspivotDateto statecurrentMoment. And inUNSAFE_componentWillReceiveProps, it updatescurrentMomentas undocumented propsselectedDate. AndcurrentMomentis injected to child components. Will there be scenarios usingselectedDate? In my current view, we could just remove that state and just usepivotDate, renaming allselectedDateitems topivotDate.
Extra alert
- Variable names on function could also change, based on new function name.
- Using old function names which is revealed to user, will be allowed until future v.1.0.6; with aliasing + deprecation notice in documentation. After that we may remove the alias codes.
Please feel free to comment for discussion, related to above items.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested