Make sure you understand the tasks before starting it to understand the scope of the task.
When you are done with the tasks, write the branch name, the task id and the date accomplish, so
schedule-page, 0x2 Thu 23 May 2024 10:35:27 AM CDT
| <?php | |
| /** | |
| * Starting update via different method. | |
| * | |
| * @param object $transient The update request for plugin. | |
| */ | |
| function myplugin_check_for_update( $transient ) { | |
| error_log( 'hello' ); |
Start: Mon 22 Apr 2024 09:54:47 AM CDT
The core UI component: https://gist.github.com/MonteLogic/573bd7d8e2095ee2831f03ebb149d41b
| 'use client' | |
| import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler | |
| import Button from './button'; | |
| import { updateSummary } from '#/app/api/search-shift/network-fns'; | |
| import TextareaAutosize from 'react-textarea-autosize'; | |
| import { UploadButton } from "#/app/utils/uploadthing"; | |
| import { ImageString } from './image-slider'; | |
| import StandardModal from './standard-modal'; | |
| import { FormattedRouteType } from "#/types/RouteTypes"; | |
| import { useSearchParams, usePathname, useRouter } from 'next/navigation'; |
| 'use client'; | |
| import { type WorkTime, type Routes, Prisma } from '@prisma/client'; | |
| import { useEffect, useState } from 'react'; | |
| import Button from './button'; | |
| import { set } from 'date-fns'; | |
| interface shiftsType { | |
| name: string; | |
| startTime: string; |
| 'use client'; | |
| import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler | |
| import Button from './button'; | |
| import { updateSummary, createRecordForSummary } from '#/app/utils/network-fns'; | |
| import TextareaAutosize from 'react-textarea-autosize'; | |
| import { UploadButton } from '#/app/utils/uploadthing'; | |
| import { ImageString } from './image-slider'; | |
| import StandardModal from './standard-modal'; | |
| import { FormattedRouteType } from '#/types/RouteTypes'; | |
| import { useSearchParams, usePathname, useRouter } from 'next/navigation'; |
| export const updateSummary = async ( | |
| entryID: string, | |
| date: string, | |
| routeID: string, | |
| setSummaryObject: React.Dispatch<React.SetStateAction<any>>, | |
| summaryObject: any, | |
| ) => { | |
| alert('8, updateSummary'); | |
| // I'm pretty sure that BS id creation is coming from here: | |
| try { |
| Useful vim commands: | |
| Insert the date but this date would be in the format of MM/DD/YY | |
| :r !echo -n $(date +\%m/\%d/\%y) |