sendou.ink/app/components
William Lam 09851faf83
New Date entry on the new Calendar page is now based off the previous one (#1070)
* Issue 858: On the new calendar page adding a new Date entry with the "Add" button will now insert a new date with an offset of +24 hours of the previous row's date value.

* Added comment to ignore the TSLint "object can be null" error

* Changed `var` to `const`

* Fixed Prettier checks in CI pipeline

* Fixed Typecheck CI pipeline error

* Moved getDateWithHoursOffset() function to app/utils/dates.ts

* Added new line at end of file

* Added getValidNewDateIfInvalid() function. This retrieves a valid date. If invalid, get a new Date object.
- So now, if we intentionally/accidentally delete the data in the Calendar's DateInput element, it will be reset to the current Date/Time

* Refactored DateInput component's update state mechanism to be handled by an onChange() function defined in the parent component that is passed to the child

* Prettier formatting so that the new CI pipeline won't output errors at me

* Removed unused imported types

* Removed the datesCount React Hook & refactored accordingly

* Removed unused loader-related variables

* DateInput onChange prop is now optional

* Instead of generating a new Array, iterate over DateInput's inputState's array instead

* Fix potential undefined error

* DatesInputState: refactored to remove index & access the index during iteration with map() 2nd arg

* Properly initialized state for pre-existing events =)
- Also added TODO comments for improving date input handling (1082)

* Prettier formatting

* Uncommented console.warn()

* Touched up comment
2022-10-31 03:59:51 +01:00
..
icons Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
layout Remove Cypress tests 2022-10-30 02:15:15 +03:00
AbilitiesSelector.tsx Add ability to drag abilities into slots 2022-10-01 00:19:31 -07:00
Ability.tsx Fix abilities appearing clickable when they aren't (#1057) 2022-10-30 10:38:03 +02:00
Alert.tsx Banner on calendar page to notify about reporting 2022-08-12 22:52:55 +03:00
Avatar.tsx Upgrade deps 2022-09-04 18:57:56 +03:00
Badge.tsx Add support for badge hue rotate 2022-07-05 11:30:01 +03:00
Breadcrumbs.tsx Refactor breadcrumbs into a component that uses route handles 2022-10-21 00:48:58 +02:00
BuildCard.tsx Fix abilities appearing clickable when they aren't (#1057) 2022-10-30 10:38:03 +02:00
Button.tsx Add limit + load more logic to builds page 2022-09-25 14:55:20 +03:00
Catcher.tsx More friendly error page 2022-09-25 16:18:09 +03:00
Combobox.tsx UserComboBox only one result if exact discord ID match (#1075) 2022-10-30 16:34:18 +02:00
ConditionalScrollRestoration.tsx Add limit + load more logic to builds page 2022-09-25 14:55:20 +03:00
DateInput.tsx New Date entry on the new Calendar page is now based off the previous one (#1070) 2022-10-31 03:59:51 +01:00
Dialog.tsx Stricters Typescript 2022-06-10 01:02:59 +03:00
FormErrors.tsx Custom URL submitting error handling 2022-10-02 00:43:55 +03:00
FormMessage.tsx DatesInput tweaks 2022-07-30 10:35:15 +03:00
FormWithConfirm.tsx Remove Cypress tests 2022-10-30 02:15:15 +03:00
Image.tsx Add ability to drag abilities into slots 2022-10-01 00:19:31 -07:00
Input.tsx Datalist on maplist page initial 2022-10-11 20:14:32 +03:00
Label.tsx Objective damage table change SPU/BRU 2022-10-23 11:59:03 +03:00
Main.tsx Implement TagsSelector 2022-07-30 11:55:57 +03:00
MapPoolSelector.tsx Remove useOnce hook 2022-10-27 23:12:48 +02:00
Placement.tsx Format 2022-10-16 10:12:51 +03:00
Popover.tsx Rename Popover trigger prop 2022-09-27 21:21:21 +03:00
Redirect.tsx Comment modal with functioning link 2022-05-26 15:48:49 +03:00
RelativeTime.tsx Relative time voting timing info 2022-06-11 21:53:34 +03:00
Section.tsx User profile results page 2022-08-11 23:21:15 +03:00
SubNav.tsx Footer desktop initial 2022-07-11 16:11:09 +03:00
Toggle.tsx Add Toggle component 2022-09-16 21:16:50 +03:00