Skip to content

fix(ui): 1546 improved email validation#1605

Open
JazzarKarim wants to merge 2 commits intobcgov:mainfrom
JazzarKarim:1546-improve-email-validation
Open

fix(ui): 1546 improved email validation#1605
JazzarKarim wants to merge 2 commits intobcgov:mainfrom
JazzarKarim:1546-improve-email-validation

Conversation

@JazzarKarim
Copy link
Copy Markdown
Collaborator

@JazzarKarim JazzarKarim commented May 4, 2026

Issue:

Description of changes:
Improved email validation to better validate emails like foo@ba$.com for example

Unit tests for platforms pass:
image

It's just since it's in nuxt config, it still points to base layer which doesn't have the latest changes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License

@JazzarKarim JazzarKarim self-assigned this May 4, 2026
@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-platform-dev--pr-1605-9vwirw0c.web.app

@JazzarKarim JazzarKarim marked this pull request as ready for review May 4, 2026 18:22
@JazzarKarim JazzarKarim requested review from dimak1 and jimmypalelil May 4, 2026 18:22
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.

Just curious why tests are under platfom?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Base web has no tests/unit folder so I figured the best thing to do is put them under platforms as there are barely any tests there. I'd be happy to put them somewhere else though if you think it's better! Let me know

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.

The platform has 80%+ test coverage. I would suggest putting email validation tests under host, since it is more freq changes.

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.

[out of scope]
This is a good candidate for implementing tests in the base-web nuxt app. Its not feasible to have the helper reusable code in base-web and having them being tested in consumer packages.


The Platform tests will fail unless you commit the strr-base-web changes first unless you were planning on overridding the CI checks

Copy link
Copy Markdown
Collaborator Author

@JazzarKarim JazzarKarim May 5, 2026

Choose a reason for hiding this comment

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

Done, moved the tests under the host app.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@bcregistry-sre
Copy link
Copy Markdown
Collaborator

Temporary Url for review: https://strr-hosts-dev--pr-1605-x5ceta8x.web.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants