Skip to content

Make adding schedules to tasks free#262

Open
duckbytes wants to merge 3 commits into
masterfrom
free_scheduled
Open

Make adding schedules to tasks free#262
duckbytes wants to merge 3 commits into
masterfrom
free_scheduled

Conversation

@duckbytes

Copy link
Copy Markdown
Collaborator

Removes checks that the user is in a paid group.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes paid-subscription gating around task scheduling so that all users can add/edit schedules, and updates related UI/logic to expose scheduling controls universally.

Changes:

  • Removes paid-group/subscription checks that previously hid scheduling UI or cleared schedules during task duplication.
  • Makes schedule details/edit actions always available in task/location and guided setup flows.
  • Always includes the FUTURE task status column in the dashboard grid.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utilities/duplicateTask.ts Removes paid-group check during task duplication (but now leaves unused imports/vars that should be cleaned up).
src/scenes/sharedTaskComponents/TaskScheduleDetails/TaskScheduleDetails.tsx Removes paid-only gating so schedule edit actions are always shown.
src/scenes/sharedTaskComponents/LocationDetailsPanel.tsx Always renders schedule details panel, regardless of subscription state.
src/scenes/GuidedSetup/components/PickUpAndDeliverDetails.tsx Always renders pickup/delivery schedule pickers during guided setup.
src/scenes/Dashboard/components/TasksGrid.js Always includes the FUTURE status column.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 21 to 23
if (!tenantId) throw new Error("tenantId must exist");
if (!task) throw new Error("task must exist");
if (!createdById) throw new Error("createdById must exist");
Comment on lines 36 to 40
pickUpLocation,
pickUpSchedule,
dropOffSchedule,
createdBy,
...rest

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Comment on lines 16 to 20
import TaskScheduleIconText from "../TaskScheduleIconText";
import { Schedule } from "../PickUpAndDeliverSchedule";
import { convertScheduleToTaskData } from "../../../utilities/convertScheduleToTaskData";
import useIsPaidSubscription from "../../../hooks/useIsPaidSubscription";
import calculateDefaultEditTimes from "./utils/calculateDefaultEditTimes";

Comment on lines +671 to +678
<Divider />
<TaskScheduleDetails
onClear={handleClearSchedule}
onChange={handleEditSchedule}
schedule={schedule}
noWarning={noWarning}
hideDate={hideScheduleDate}
/>
Comment on lines 95 to +99
<IconButton onClick={() => setConfirmClear(true)}>
<ClearIcon />
</IconButton>
{isPaid && (
<IconButton onClick={handleSetEditMode}>
<EditIcon />
</IconButton>
)}
<IconButton onClick={handleSetEditMode}>
<EditIcon />
Comment on lines 95 to +99
<IconButton onClick={() => setConfirmClear(true)}>
<ClearIcon />
</IconButton>
{isPaid && (
<IconButton onClick={handleSetEditMode}>
<EditIcon />
</IconButton>
)}
<IconButton onClick={handleSetEditMode}>
<EditIcon />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants