Skip to content

fix DF-529: errors inline on Location components#245

Merged
mokhld merged 11 commits intofix/DF-529-location-fixesfrom
fix/no-jira-location-error-summaries
Nov 13, 2025
Merged

fix DF-529: errors inline on Location components#245
mokhld merged 11 commits intofix/DF-529-location-fixesfrom
fix/no-jira-location-error-summaries

Conversation

@mokhld
Copy link
Copy Markdown
Contributor

@mokhld mokhld commented Nov 12, 2025

  • Improved error message handling in LocationFieldHelpers by including errorMessage in the view model.
  • Modified HTML template to display error messages and adjust form group classes based on error presence.

Proposed change

Jira ticket:

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

- Improved error message handling in `LocationFieldHelpers` by including `errorMessage` in the view model.
- Modified HTML template to display error messages and adjust form group classes based on error presence.
@mokhld mokhld force-pushed the fix/no-jira-location-error-summaries branch from fa336e7 to 239e231 Compare November 12, 2025 16:43
… error handling and layout

- Updated SCSS for error states in location input fields, ensuring consistent padding and margin.
- Refactored HTML structure to utilize grid layout for better responsiveness and alignment of input items.
@mokhld mokhld force-pushed the fix/no-jira-location-error-summaries branch from 8ab6db0 to ce6e46e Compare November 12, 2025 18:19
@sonarqubecloud
Copy link
Copy Markdown

@mokhld mokhld merged commit 7cb9a33 into fix/DF-529-location-fixes Nov 13, 2025
10 checks passed
@mokhld mokhld deleted the fix/no-jira-location-error-summaries branch November 13, 2025 09:52
davidjamesstone added a commit that referenced this pull request Nov 13, 2025
* Fix location component error messages

* Update OsGridRef precision

* Remove NGFR 10 digit

* Fix typo in latitude and longitude title and hint in unicorn breeder registration form

* fix DF-529: errors inline on Location components (#245)

* feat: errors inline on Location components

- Improved error message handling in `LocationFieldHelpers` by including `errorMessage` in the view model.
- Modified HTML template to display error messages and adjust form group classes based on error presence.

* lint: fixes

* test: update tests

* fix: remove unnecessary whitespace in location field template

* style: Updated flex properties for better layout on desktop and mobile views.

* style: refactor location input styles and HTML structure for improved error handling and layout

- Updated SCSS for error states in location input fields, ensuring consistent padding and margin.
- Refactored HTML structure to utilize grid layout for better responsiveness and alignment of input items.

* style: add margin-top to location input grid row for improved spacing

* style: remove unused location input styles

* Remove two thirds wrapper

* style: remove unused location input imports from references

---------

Co-authored-by: David Stone <davidjamesstone@gmail.com>

* Add short description to location components in the unicorn form

---------

Co-authored-by: Mohammed Khalid <emailmokhld@gmail.com>
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.

2 participants