Skip to content

Commit

Permalink
Merge pull request #18 from forevermatt/develop
Browse files Browse the repository at this point in the history
Release 0.9.0
  • Loading branch information
forevermatt authored Dec 4, 2020
2 parents 1660b03 + 3693001 commit 6500e7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ https://forevermatt.github.io/svelte-budget/
a mouse
- [x] Autofocus the appropriate input (where applicable) on arrival at each
page
- [ ] Allow adding a comment/note on each transaction
- [x] Allow adding a comment/note on each transaction
- [ ] Handle page reloads in the middle of the add-expense process (which
loses the timestamp, for example)
- [ ] Add a data-breadcrumb trail as they enter data for a new transaction
- [x] Setup collaborator
- [ ] Synchronize data between devices/browsers
- [ ] Auto-refill categories each month
- [ ] Enable adding category during new-transaction workflow
- [ ] Enable adding account during new-transaction workflow
- [ ] ...

## Data Structure
Expand Down
2 changes: 1 addition & 1 deletion assets/bundle.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/views/ExpenseReview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { formatAmount } from "../helpers/numbers";
import { push } from 'svelte-spa-router'
$: transaction = $transactionInProgress
$: transactionNote = transaction.note || ''
$: account = getAccountFrom(transaction.accountUuid, $accounts)
$: accountName = account.name || ''
$: amountTotal = transaction.amountTotal || 0
Expand All @@ -25,6 +26,11 @@ function setComment(event) {
updatePendingTransaction({ comment })
}
const setNote = event => {
let note = event.target.value
updatePendingTransaction({ note })
}
const setTimestamp = event => {
let dateString = event.target.value
let when = new Date(`${dateString} 12:00:00`)
Expand Down Expand Up @@ -54,7 +60,10 @@ const setTimestamp = event => {
<b>Date:</b>
<input type="date" class="float-right" on:change={setTimestamp} value={formatDateISO8601(transaction.timestamp)} />
</p>
<!-- TODO: Add "Comment" field. -->
<p>
<b>Note:</b>
<input class="float-right" on:change={setNote} value={transactionNote} />
</p>
</div>
</div>

Expand Down

0 comments on commit 6500e7d

Please sign in to comment.