Skip to content

Commit

Permalink
Date fixes: add ranges (#456)
Browse files Browse the repository at this point in the history
* Update date calculations & tests

* Implement date ranges (WiP)

* Implement date ranges & conversion (WiP)

* Finalize ranges & update tests

* Refactor

* Update imports
  • Loading branch information
khoidt authored Mar 5, 2024
1 parent 7d0e2b3 commit dbf8724
Show file tree
Hide file tree
Showing 16 changed files with 668 additions and 431 deletions.
5 changes: 4 additions & 1 deletion src/chronology/application/DateSelectionMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { MesopotamianDate } from 'chronology/domain/Date'
import { DateFieldDto, MonthFieldDto } from 'fragmentarium/domain/FragmentDtos'
import { Fragment } from 'fragmentarium/domain/fragment'
import { DateSelectionStateParams } from './DateSelectionState'
import { EponymDateField, KingDateField } from 'chronology/domain/DateBase'
import {
EponymDateField,
KingDateField,
} from 'chronology/domain/DateParameters'

interface SaveDateParams {
date?: MesopotamianDate
Expand Down
7 changes: 5 additions & 2 deletions src/chronology/application/DateSelectionState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { MesopotamianDate } from 'chronology/domain/Date'
import { EponymDateField, Ur3Calendar } from 'chronology/domain/DateBase'
import { KingDateField } from 'chronology/domain/DateBase'
import {
EponymDateField,
Ur3Calendar,
KingDateField,
} from 'chronology/domain/DateParameters'
import usePromiseEffect from 'common/usePromiseEffect'
import { useState } from 'react'
import Bluebird from 'bluebird'
Expand Down
Loading

0 comments on commit dbf8724

Please sign in to comment.