Add end-to-end tests for chore and project functionalities, enhance auth flow, and update package version
This commit is contained in:
@@ -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'}
|
||||
|
||||
@@ -576,6 +576,7 @@ const FilterView = () => {
|
||||
}}
|
||||
>
|
||||
<IconButton
|
||||
data-testid='open-add-filter-modal'
|
||||
color='primary'
|
||||
variant='solid'
|
||||
sx={{
|
||||
|
||||
@@ -495,6 +495,7 @@ const ProjectView = () => {
|
||||
}}
|
||||
>
|
||||
<IconButton
|
||||
data-testid='open-add-project-modal'
|
||||
color='primary'
|
||||
variant='solid'
|
||||
sx={{
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user