Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file added .vs/CommBank-Web/v17/.wsuo
Binary file not shown.
117 changes: 117 additions & 0 deletions .vs/CommBank-Web/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalManager.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\ui\\features\\goalmanager\\GoalManager.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\lib.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\api\\lib.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalIcon.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\ui\\features\\goalmanager\\GoalIcon.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\pages\\Main\\goals\\GoalCard.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\ui\\pages\\Main\\goals\\GoalCard.tsx||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\types.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\api\\types.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\store\\goalsSlice.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\store\\goalsSlice.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "lib.ts",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\lib.ts",
"RelativeDocumentMoniker": "src\\api\\lib.ts",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\lib.ts",
"RelativeToolTip": "src\\api\\lib.ts",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAQAAAAwAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:30:32.276Z"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "GoalManager.tsx",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalManager.tsx",
"RelativeDocumentMoniker": "src\\ui\\features\\goalmanager\\GoalManager.tsx",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalManager.tsx",
"RelativeToolTip": "src\\ui\\features\\goalmanager\\GoalManager.tsx",
"ViewState": "AQIAALIAAAAAAAAAAAAwwL4AAAAQAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:21:34.391Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "GoalIcon.tsx",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalIcon.tsx",
"RelativeDocumentMoniker": "src\\ui\\features\\goalmanager\\GoalIcon.tsx",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\features\\goalmanager\\GoalIcon.tsx",
"RelativeToolTip": "src\\ui\\features\\goalmanager\\GoalIcon.tsx",
"ViewState": "AQIAAAAAAAAAAAAAAAAAABMAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:21:16.275Z"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "GoalCard.tsx",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\pages\\Main\\goals\\GoalCard.tsx",
"RelativeDocumentMoniker": "src\\ui\\pages\\Main\\goals\\GoalCard.tsx",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\ui\\pages\\Main\\goals\\GoalCard.tsx",
"RelativeToolTip": "src\\ui\\pages\\Main\\goals\\GoalCard.tsx",
"ViewState": "AQIAAAAAAAAAAAAAAAAAADIAAAABAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:17:31.156Z"
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "types.ts",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\types.ts",
"RelativeDocumentMoniker": "src\\api\\types.ts",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\api\\types.ts",
"RelativeToolTip": "src\\api\\types.ts",
"ViewState": "AQIAAA0AAAAAAAAAAAAswBcAAAARAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:16:14.544Z"
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "goalsSlice.ts",
"DocumentMoniker": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\store\\goalsSlice.ts",
"RelativeDocumentMoniker": "src\\store\\goalsSlice.ts",
"ToolTip": "C:\\Users\\aiell\\Documents\\GitHub\\CommBank-Web\\src\\store\\goalsSlice.ts",
"RelativeToolTip": "src\\store\\goalsSlice.ts",
"ViewState": "AQIAAAsAAAAAAAAAAAAwwCcAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2026-04-07T01:15:58.001Z"
}
]
}
]
}
]
}
15 changes: 15 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ExpandedNodes": [
"",
"\\src",
"\\src\\assets",
"\\src\\assets\\images",
"\\src\\data",
"\\src\\store",
"\\src\\ui",
"\\src\\ui\\components",
"\\src\\ui\\features",
"\\src\\ui\\features\\goalmanager"
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios'
import { user } from '../data/user'
import { Goal, Transaction, User } from './types'

export const API_ROOT = 'https://fencer-commbank.azurewebsites.net'
export const API_ROOT = 'http://localhost:11366'

export async function getUser(): Promise<User | null> {
try {
Expand Down
1 change: 1 addition & 0 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface Goal {
accountId: string
transactionIds: string[]
tagIds: string[]
icon?: string // add this line
}

export interface Tag {
Expand Down
17 changes: 7 additions & 10 deletions src/ui/features/goalmanager/GoalIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import 'date-fns'
import 'date-fns'
import React from 'react'
import styled from 'styled-components'
import { TransparentButton } from '../../components/TransparentButton'

type Props = { icon: string | null; onClick: (e: React.MouseEvent) => void }

export default function GoalIcon(props: Props) {
return (
<TransparentButton onClick={props.onClick}>
<Icon>{props.icon}</Icon>
</TransparentButton>
)
return (
<TransparentButton onClick={props.onClick}>
<Icon>{props.icon ?? '🏦'}</Icon>
</TransparentButton>
)
}

const Icon = styled.h1`
font-size: 6rem;
cursor: pointer;
`
`
Loading