diff --git a/cmd/server/pactasrv/portfolio.go b/cmd/server/pactasrv/portfolio.go index b93f5a2..41adde6 100644 --- a/cmd/server/pactasrv/portfolio.go +++ b/cmd/server/pactasrv/portfolio.go @@ -90,6 +90,13 @@ func (s *Server) UpdatePortfolio(ctx context.Context, request api.UpdatePortfoli if request.Body.Description != nil { mutations = append(mutations, db.SetPortfolioDescription(*request.Body.Description)) } + if request.Body.PropertyHoldingsDate != nil { + hd, err := conv.HoldingsDateFromOAPI(request.Body.PropertyHoldingsDate) + if err != nil { + return nil, err + } + mutations = append(mutations, db.SetPortfolioPropertyHoldingsDate(hd)) + } if request.Body.PropertyESG != nil { mutations = append(mutations, db.SetPortfolioPropertyESG(conv.OptionalBoolFromOAPI(*request.Body.PropertyESG))) } diff --git a/frontend/components/form/FieldHeader.vue b/frontend/components/form/FieldHeader.vue index d7a2d18..5289171 100644 --- a/frontend/components/form/FieldHeader.vue +++ b/frontend/components/form/FieldHeader.vue @@ -66,7 +66,7 @@ const helpTextTextClass = computed(() => helpTextExpanded.value ? 'mb-2' : 'h-0'
{{ props.helpText }} diff --git a/frontend/components/inputs/HoldingDate.vue b/frontend/components/inputs/HoldingsDate.vue similarity index 100% rename from frontend/components/inputs/HoldingDate.vue rename to frontend/components/inputs/HoldingsDate.vue diff --git a/frontend/components/portfolio/Editor.vue b/frontend/components/portfolio/Editor.vue index 05bb713..db5b55e 100644 --- a/frontend/components/portfolio/Editor.vue +++ b/frontend/components/portfolio/Editor.vue @@ -40,6 +40,14 @@ const evs = computed({ auto-resize /> + + + +const props = defineProps<{ + name?: string | undefined +}>() + +const singleCharacter = computed(() => { + return props.name?.[0] || 'U' +}) + + + diff --git a/frontend/components/standard/Nav.vue b/frontend/components/standard/Nav.vue index cb2d0e8..7ac8b7c 100644 --- a/frontend/components/standard/Nav.vue +++ b/frontend/components/standard/Nav.vue @@ -1,5 +1,6 @@ + + diff --git a/frontend/lang/en.json b/frontend/lang/en.json index 3becc2a..26abd23 100644 --- a/frontend/lang/en.json +++ b/frontend/lang/en.json @@ -267,7 +267,10 @@ "Home": "Portfolio Analysis Tool", "My Data": "My Data", "Sign In": "Sign In", - "Sign Out": "Sign Out" + "Sign Out": "Sign Out", + "Account": "Account", + "Audit Logs": "Audit Logs", + "Settings": "Settings" }, "components/user/Editor": { "The name that will be associated with": "The name that will be associated with ", @@ -314,7 +317,9 @@ "External": "External", "ExternalHelpText": "If enabled, this portfolio represents external data. If disabled, this portfolio represents internal data.", "Engagement Strategy": "Engagement Strategy", - "EngagementStrategyHelpText": "If enabled, this portfolio represents engagement strategy data. If disabled, this portfolio represents non-engagement strategy data." + "EngagementStrategyHelpText": "If enabled, this portfolio represents engagement strategy data. If disabled, this portfolio represents non-engagement strategy data.", + "Holdings Date": "Holdings Date", + "HoldingsDateHelpText": "The date that the holdings in this portfolio are being evaluated at." }, "lib/editor/portfolio_group": { "Created At": "Created At", diff --git a/frontend/pages/upload.vue b/frontend/pages/upload.vue index dd87348..07b3d49 100644 --- a/frontend/pages/upload.vue +++ b/frontend/pages/upload.vue @@ -374,7 +374,7 @@ const cleanUpIncompleteUploads = async () => { label="Holdings Date" help-text="The holdings date for the portfolio" > - diff --git a/frontend/plugins/primevue.ts b/frontend/plugins/primevue.ts index dddeb42..1034938 100644 --- a/frontend/plugins/primevue.ts +++ b/frontend/plugins/primevue.ts @@ -18,6 +18,7 @@ import InputNumber from 'primevue/inputnumber' import InputSwitch from 'primevue/inputswitch' import InputText from 'primevue/inputtext' import Message from 'primevue/message' +import Menu from 'primevue/menu' import MultiSelect from 'primevue/multiselect' import OverlayPanel from 'primevue/overlaypanel' import ProgressSpinner from 'primevue/progressspinner' @@ -50,6 +51,7 @@ export default defineNuxtPlugin(({ vueApp }) => { vueApp.component('PVInputSwitch', InputSwitch) vueApp.component('PVInputText', InputText) vueApp.component('PVMessage', Message) + vueApp.component('PVMenu', Menu) vueApp.component('PVMultiSelect', MultiSelect) vueApp.component('PVOverlayPanel', OverlayPanel) vueApp.component('PVProgressSpinner', ProgressSpinner)