Skip to content

Conversation

@Crebert08
Copy link
Contributor

What problem is this PR solving? Explain here in one sentence.

Related JIRA tickets : https://bluesquare.atlassian.net/browse/IA-2044

Self proofreading checklist

  • Did I use eslint and ruff formatters?
  • Is my code clear enough and well documented?
  • Are my typescript files well typed?
  • New translations have been added or updated if new strings have been introduced in the frontend
  • My migrations file are included
  • Are there enough tests?
  • Documentation has been included (for new feature)

Changes

The Org unit base info tab didn't display the ID. The user had to navigate to the main org unit lists. I added the ID so that it can be displayed with other org units elements.

How to test

Go to Org unit list, click on the view button in the action cell, the info tab should display the details of the org unit with its ID.

Print screen / video

Upload here print screens or videos showing the changes.

Notes

Things that the reviewers should know:

  • known bugs that are out of the scope of the PR
  • other trade-offs that were made
  • does the PR depends on a PR in bluesquare-components?
  • should the PR be merged into another PR?

Follow the Conventional Commits specification

The merge message of a pull request must follow the Conventional Commits specification.

This convention helps to automatically generate release notes.

Use lowercase for consistency.

Example:

fix: empty instance pop up

Refs: https://bluesquare.atlassian.net/browse/IA-2044

Note that the Jira reference is preceded by a line break.

Both the line break and the Jira reference are entered in the Add an optional extended description… field.

Copy link
Member

@quang-le quang-le left a comment

Choose a reason for hiding this comment

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

Since the field is not editable it should go with in the Paper that contains other non-editable info.

Also please use iaso.label.id to avoid adding an json key

Image

@quang-le quang-le added the release Should be released in production at next deploy label Dec 30, 2025
@Crebert08 Crebert08 requested a review from quang-le January 5, 2026 08:45
@beygorghor beygorghor changed the title Adding id to org unit base info tab IA-2044: Adding id to org unit base info tab Jan 5, 2026
disabled={disabled}
/>
</FormControlComponent>
</FormControlComponent>
Copy link
Member

Choose a reason for hiding this comment

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

You need ton configure your linter to remove these trailing spaces

<TableBody>
<Row
label={formatMessage(MESSAGES.ID)}
value={orgUnit.id ?? '-'}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
value={orgUnit.id ?? '-'}
value={orgUnit.id ?? textPlaceholder}

You need to add the import from bluesquare-components

"iaso.stock.version.dialog.delete": "¿Estás seguro de que quieres eliminar esta versión?",
"iaso.tasks.no_logs_to_show": "No hay registros para mostrar."
"iaso.tasks.no_logs_to_show": "No hay registros para mostrar.",
"iaso.orgUnits.id": "ID"
Copy link
Member

Choose a reason for hiding this comment

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

You need to delete this

"iaso.orgUnits.forms.noData": "Aucun formulaire",
"iaso.orgUnits.formsHelperText": "Soumissions du formulaire",
"iaso.orgUnits.GPSWarning": "Les coordonnées GPS ne seront PAS mises à jour pour les unités d'org qui ont déjà des données géographiques",
"iaso.orgUnits.id": "ID",
Copy link
Member

Choose a reason for hiding this comment

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

same

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

Labels

release Should be released in production at next deploy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants