Add end-to-end tests for chore and project functionalities, enhance auth flow, and update package version

This commit is contained in:
Mo Tarbin
2026-08-11 00:55:17 -04:00
parent 6100738db6
commit 43ffb3da5a
12 changed files with 535 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ export const AuthField = ({ label, error, helper, children, ...formProps }) => (
)
export const AuthTextField = ({ label, error, helper, sx, ...inputProps }) => (
<AuthField label={label} error={error} helper={helper}>
<AuthField label={label} error={error} helper={helper} id={inputProps.id}>
<Input size='lg' sx={{ ...authInputSx, ...sx }} {...inputProps} />
</AuthField>
)
@@ -49,7 +49,7 @@ export const AuthPasswordField = ({
const [visible, setVisible] = useState(false)
return (
<AuthField label={label} error={error} helper={helper}>
<AuthField label={label} error={error} helper={helper} id={inputProps.id}>
<Input
size='lg'
type={visible ? 'text' : 'password'}

View File

@@ -576,6 +576,7 @@ const FilterView = () => {
}}
>
<IconButton
data-testid='open-add-filter-modal'
color='primary'
variant='solid'
sx={{

View File

@@ -495,6 +495,7 @@ const ProjectView = () => {
}}
>
<IconButton
data-testid='open-add-project-modal'
color='primary'
variant='solid'
sx={{

View File

@@ -1047,8 +1047,12 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => {
chore.frequencyMetadata = frequency.frequencyMetadata
chore.frequency = frequency.frequency
}
if (!frequency && dueDate) {
// Use RFC3339/ISO-8601 format expected by backend.
if (dueDate) {
// Use RFC3339/ISO-8601 format expected by backend. The backend only
// derives NextDueDate from what's sent on create (handler.go never
// computes it from frequencyType), so this must be sent whether or
// not the task also repeats — otherwise a recurring task created with
// a due date lands with nextDueDate: null.
chore.nextDueDate = new Date(dueDate).toISOString()
}
if (hasReminders && (frequency || dueDate)) {