Skip to content

#674: Add project country question - #684

Merged
samrichca merged 6 commits into
mainfrom
feat/674-jurisdiction-question
Sep 2, 2026
Merged

samrichca merged 6 commits into
mainfrom
feat/674-jurisdiction-question

Conversation

@samrichca

@samrichca samrichca commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a country field to the project page in DACO.

Related Issues

Description of Changes

DACO API

  • Adds a country field for projects in a user's application

DACO UI

  • Adds a country field to the projects page in a user's application

Data Model

  • Adds a country field to the data model for applications

Special Instructions

Before running these changes, you will need to migrate your databases:

pnpm migrate-dev

Readiness Checklist

  • Self Review
    • I have performed a self review of code
    • I have run the application locally and manually tested the feature
  • PR Format
    • The PR title is properly formatted to match the pattern: #{TicketNumber}: Description of Changes
    • Links are included to all relevant tickets
  • Labels Added
    • Label is added for each package/app that is modified (api, ui, data-model, etc.)
    • Label is added for the type of work done in this PR (feature, fix, chore, documentation)
  • Local Testing
    • Successfully built all packages locally
    • Successfully ran all test suites, all unit and integration tests pass
  • Updated Tests
    • Unit and integration tests have been added that describe the bug that was fixed or the features that were added
  • Documentation
    • All new environment variables added to .env.schema file and documented in the README
    • All changes to server HTTP endpoints have open-api documentation
    • All new functions exported from their module have TSDoc comment documentation

@samrichca
samrichca marked this pull request as draft July 23, 2026 19:05
@samrichca
samrichca marked this pull request as ready for review September 1, 2026 13:25
@samrichca samrichca added daco-ui daco-api enhancement New feature or request labels Sep 1, 2026

@JamesTLopez JamesTLopez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty much ready to go, just a couple of small things 🕶️

options={GC_STANDARD_GEOGRAPHIC_AREAS.map((areas) => {
return { value: areas.iso, label: areas.en };
})}
initialValue={'CAN'}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initialValue is CAN but it is not displayed in the textbox adding the default to RHF should do the trick:

projectCountry: state.fields.projectCountry ?? 'CAN'

})}
initialValue={'CAN'}
rule={rule}
required

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required is not actually applying the red asterisk, I think this is a bug in Select component itself.

const fieldLabel = props.options.some((option) => option.required) ? RequiredLabel(props.label) : props.label;

Changing that line to this should work

	const fieldLabel = props.required ? RequiredLabel(props.label) : props.label;

…ian-Genome-Library/daco into feat/674-jurisdiction-question

@JamesTLopez JamesTLopez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samrichca
samrichca merged commit 301ee11 into main Sep 2, 2026
2 checks passed
@samrichca
samrichca deleted the feat/674-jurisdiction-question branch September 2, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants