Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2bc1659
30381 cleaned up some env keys and fixed breadcrumbs (#843)
severinbeauvais Aug 26, 2025
617c9a4
30656 Updated LaunchDarkly module to support orgs (#844)
severinbeauvais Sep 16, 2025
38bd083
30554 DBA NR magic link (#846)
bobdev-94 Sep 29, 2025
73fdf45
29274 Upgraded to Vite (#845)
severinbeauvais Oct 2, 2025
3092f8a
Modify README for pnpm version and commands
severinbeauvais Oct 28, 2025
5eb2bf3
30987 Upgraded to Pinia (#847)
severinbeauvais Oct 28, 2025
53255fe
31112 define disabled wait time and change priority wait time to Days…
eve-git Oct 31, 2025
1d5a40d
30032 - NR Payments - Renewal Payments do not have option to add Foli…
hfekete Nov 18, 2025
0d836f4
29381 - xpro name allowed length increased from 40 to 60 (#852)
hfekete Nov 18, 2025
75a5ac3
Add new FF for priority wait time tooltip (#855)
eve-git Nov 19, 2025
51f92de
2551 update priority tooltips (#856)
eve-git Nov 25, 2025
86da385
29381 - rules and validation updates in name field (#857)
hfekete Dec 4, 2025
bb87cb6
31568 - remove Release Notes link from the footer (#858)
hfekete Dec 15, 2025
96b5a5d
escape dot in invalid designations used in regex (#859)
eve-git Dec 31, 2025
8f1786b
31278-Update code owners. (#861)
mengdong19 Jan 27, 2026
890fc57
32251 Updated banner styling (#862)
severinbeauvais Jan 29, 2026
5a98730
32267-Remove HotJar integration. (#863)
mengdong19 Mar 4, 2026
d644e60
31897 - FIX: WAIT TIME, Estimated Review Time, PENDING_PAYMENT NRS ne…
stevenc987 Mar 24, 2026
b3dbf5c
31897 - FIX: WAIT TIME, Estimated Review Time, PENDING_PAYMENT NRS ne…
stevenc987 Mar 24, 2026
ee31ee1
Merge pull request #865 from stevenc987/main
stevenc987 Mar 24, 2026
0e61ec1
31897 - FIX: WAIT TIME, Estimated Review Time, PENDING_PAYMENT NRS ne…
stevenc987 Mar 24, 2026
3ecc05e
Merge pull request #866 from stevenc987/main
stevenc987 Mar 24, 2026
1f8db93
upgrade to Node.js 24
panish16 Mar 24, 2026
b56705c
Rebase: upgrade to Node.js 24
panish16 Mar 27, 2026
45f5188
readding the pnpm i output
panish16 Mar 31, 2026
0ba0600
assuming version is 9.15.9
panish16 Mar 31, 2026
f544cf1
Merge pull request #868 from panish16/32835-nodejs
stevenc987 Mar 31, 2026
1983038
fix: route conflict name checks to namex-solr-api
Oluwapizzy May 13, 2026
21715bc
Merge feature-solr-merged: resolve conflicts, keep namex-solr-api wiring
Oluwapizzy May 13, 2026
5a4c57d
refactor: remove commented-out legacy conflict check code
Oluwapizzy May 13, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
target: ${{ inputs.environment }}
node_version: '20.5.1'
node_version: "24"
app_name: 'namerequest'
working_directory: 'app'
secrets:
Expand Down
1 change: 1 addition & 0 deletions app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ VUE_APP_BUSINESS_API_KEY=""
VUE_APP_NAMEX_API_GW_URL="https://test.api.connect.gov.bc.ca/namex-dev"
VUE_APP_NAMEX_API_VERSION="/api/v1"
VUE_APP_NAMEX_API_KEY=
VUE_APP_NAMEX_SOLR_API_URL=""
VUE_APP_STATUS_API_URL="https://status-api-dev.apps.gold.devops.gov.bc.ca"
VUE_APP_STATUS_API_VERSION="/api/v1"
VUE_APP_REGISTRIES_SEARCH_API_URL="https://test.api.connect.gov.bc.ca/registry-search-dev"
Expand Down
1 change: 1 addition & 0 deletions app/devops/vaults.env
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ VUE_APP_BUSINESS_API_KEY="op://API/$APP_ENV/business-api/BUSINESS_API_KEY"
VUE_APP_NAMEX_API_GW_URL="op://API/$APP_ENV/namex-api/NAMEX_API_GW_URL"
VUE_APP_NAMEX_API_VERSION="op://API/$APP_ENV/namex-api/NAMEX_API_VERSION"
VUE_APP_NAMEX_API_KEY="op://API/$APP_ENV/namex-api/NAMEX_API_KEY"
VUE_APP_NAMEX_SOLR_API_URL="op://API/$APP_ENV/namex-solr-api/API_URL"
VUE_APP_STATUS_API_URL="op://API/$APP_ENV/status-api/STATUS_API_URL"
VUE_APP_STATUS_API_VERSION="op://API/$APP_ENV/status-api/STATUS_API_VERSION"
VUE_APP_REGISTRIES_SEARCH_API_URL="op://API/$APP_ENV/registries-search-api/REGISTRIES_SEARCH_API_URL"
Expand Down
5 changes: 4 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "name-request",
"version": "5.8.11",
"version": "5.9.0",
"private": true,
"engines": {
"node": ">=24"
},
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion app/src/plugins/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function getConfig (): void {

const namexApiURL: string = import.meta.env.VUE_APP_NAMEX_API_GW_URL + import.meta.env.VUE_APP_NAMEX_API_VERSION
sessionStorage.setItem('NAMEX_API_URL', namexApiURL)

const namexSolrApiUrl: string = import.meta.env.VUE_APP_NAMEX_SOLR_API_URL
sessionStorage.setItem('NAMEX_SOLR_API_URL', namexSolrApiUrl)
const legalApiUrl: string = import.meta.env.VUE_APP_LEGAL_API_URL + import.meta.env.VUE_APP_LEGAL_API_VERSION_2
sessionStorage.setItem('LEGAL_API_URL', legalApiUrl)

Expand Down
55 changes: 22 additions & 33 deletions app/src/store/actions.ts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you remove the commented codes instead?

@stevenc987 stevenc987 May 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I saw the latest version is 5.9.1 on main branch in package.json. Please confirm that is the latest version you got.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { DFLT_MIN_LENGTH, DFLT_MAX_LENGTH, MRAS_MIN_LENGTH, MRAS_MAX_LENGTH } fr
// NB: can't use `this.$xxx` because we don't have `this` (ie, Vue)
import { CanJurisdictions, Designations, checkInvalidDesignation, IntlJurisdictions, RequestActions } from '@/list-data'

// Interfaces
import {
BusinessSearchIF,
CleanedNameIF,
Expand All @@ -51,6 +50,7 @@ import {
} from '@/interfaces'

const namexApiUrl = sessionStorage.getItem('NAMEX_API_URL')
const namexSolrApiUrl = sessionStorage.getItem('NAMEX_SOLR_API_URL')

export const setActiveComponent = (component: string): void => {
enum Tabs {
Expand Down Expand Up @@ -780,55 +780,42 @@ export const setWindowWidth = (width: number): void => {
* FUTURE: move these into a factory if converting to composition api
*/
export const getMatchesExact = async (token: string, cleanedName: string): Promise<Array<ConflictListItemI>> => {
const exactResp = await NamexServices.axios.get(
`${namexApiUrl}/exact-match?query=` + cleanedName,
const resp = await NamexServices.axios.post(
`${namexSolrApiUrl}/v1/search/possible-conflict-names`,
{ query: { value: cleanedName } },
{ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' } }
).catch(() => {
Mutations.mutateNameCheckErrorAdd(state, NameCheckErrorType.ERROR_EXACT)
return null
})
return exactResp?.data ? parseExactNames(exactResp.data) : []
const results = resp?.data?.searchResults?.results || []
return parseExactNames({ names: results.filter((r: any) => r.highlighting?.exact?.length > 0) })
}

// todo: look into differences #31690
export const getMatchesSimilar_main_branch = async (
export const getMatchesSimilar = async (
token: string, cleanedName: string, exactNames: Array<ConflictListItemI>
): Promise<Array<ConflictListItemI>> => {
const synonymResp = await NamexServices.axios.get(
`${namexApiUrl}/requests/synonymbucket/` + cleanedName + '/*',
const resp = await NamexServices.axios.post(
`${namexSolrApiUrl}/v1/search/possible-conflict-names`,
{ query: { value: cleanedName } },
{ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' } }
).catch(() => {
Mutations.mutateNameCheckErrorAdd(state, NameCheckErrorType.ERROR_SIMILAR)
return null
})
if (synonymResp?.data) synonymResp.data.exactNames = exactNames || []
return synonymResp?.data ? parseSynonymNames(synonymResp.data) : []
}

const getMatchesSimilar = async (
token: string,
cleanedName: string
): Promise<{ names: Array<any>, exactNames: Array<any> }> => {
const synonymResp = await NamexServices.axios.get(
`${namexApiUrl}/requests/possible-conflicts/${cleanedName}`,
{
headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' }
}).catch(() => {
Mutations.mutateNameCheckErrorAdd(state, NameCheckErrorType.ERROR_SIMILAR)
return null
})

return {
names: synonymResp.data.names || [],
exactNames: synonymResp.data.exactNames || []
const results = resp?.data?.searchResults?.results || []
const wrapped = {
names: results.map((r: any) => ({ name_info: { id: r.id, name: r.name } })),
exactNames: exactNames || []
}
return parseSynonymNames(wrapped)
}

export const getMatchesRestricted = async (
token: string, cleanedName: string
): Promise<ParsedRestrictedResponseIF> => {
const restrictedResp = await NamexServices.axios.get(
`${namexApiUrl}/documents/restricted-words?content=${cleanedName}`,
`${namexApiUrl}/documents:restricted_words?content=${cleanedName}`,
{ headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' } }
).catch(() => {
Mutations.mutateNameCheckErrorAdd(state, NameCheckErrorType.ERROR_RESTRICTED)
Expand Down Expand Up @@ -943,10 +930,12 @@ export const getQuickSearch = async (
headers: { Authorization: `Basic ${encodedAuth}`, 'content-type': 'application/x-www-form-urlencoded' }
})
const token = tokenResp.data.access_token
const { names, exactNames } = (
const exactNames = checks.exact ? await getMatchesExact(token, cleanedName.exactMatch) : []
// pass in exactNames so that we can check for duplicates
const synonymNames = (
checks.similar
? await getMatchesSimilar(token, cleanedName.synonymMatch)
: { names: [], exactNames: [] }
? await getMatchesSimilar(token, cleanedName.synonymMatch, exactNames)
: []
)

const parsedRestrictedResp: ParsedRestrictedResponseIF = (
Expand All @@ -957,7 +946,7 @@ export const getQuickSearch = async (

return {
exactNames: exactNames,
synonymNames: names,
synonymNames: synonymNames,
restrictedWords: parsedRestrictedResp.restrictedWords,
conditionalWords: parsedRestrictedResp.conditionalWords,
conditionalInstructions: parsedRestrictedResp.conditionalInstructions
Expand Down
Loading