Skip to content

feat(devices): flag stale discovered pane data and show AMT DNS suffix - #3701

Open
ShradhaGupta31 wants to merge 1 commit into
mainfrom
feat/pane-load-error-dns-suffix
Open

ShradhaGupta31 wants to merge 1 commit into
mainfrom
feat/pane-load-error-dns-suffix

Conversation

@ShradhaGupta31

@ShradhaGupta31 ShradhaGupta31 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Follow up to #3612

  • The pane shows the AMT DNS suffix when the API returns one. Strings are added for all supported locales.
  • If fetching the latest copy of a discovered device fails, the pane now shows an error saying the details may be out of date.
image

Resolves: device-management-toolkit/console#1377

PR Checklist

  • Unit Tests have been added for new changes
  • API tests have been updated if applicable
  • All commented code has been removed
  • If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

Copilot AI 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.

🟡 Changes recommended

The pane hides DNS suffixes when deviceInfo is absent and fails to show a load warning after HTTP 504 responses, with regression coverage needed for both cases.

2 open issues
What changed in this PR

This PR updates the discovered-device details pane to address Console issue #1377, adding a stale-data warning and displaying the AMT DNS suffix when available.

Changes:

  • Tracks detail-fetch failures and displays an alert while retaining cached details.
  • Adds the AMT DNS suffix row and translations for all 12 supported locales.
  • Adds unit tests for error-state handling and suffix display.
File Description
src/​assets/​i18n/​sv.json Adds Swedish warning and suffix label.
src/​assets/​i18n/​ru.json Adds Russian warning and suffix label.
src/​assets/​i18n/​nl.json Adds Dutch warning and suffix label.
src/​assets/​i18n/​ja.json Adds Japanese warning and suffix label.
src/​assets/​i18n/​it.json Adds Italian warning and suffix label.
src/​assets/​i18n/​he.json Adds Hebrew warning and suffix label.
src/​assets/​i18n/​fr.json Adds French warning and suffix label.
src/​assets/​i18n/​fi.json Adds Finnish warning and suffix label.
src/​assets/​i18n/​es.json Adds Spanish warning and suffix label.
src/​assets/​i18n/​en.json Adds English warning and suffix label.
src/​assets/​i18n/​de.json Adds German warning and suffix label.
src/​assets/​i18n/​ar.json Adds Arabic warning and suffix label.
src/​app/​devices/​discovered-device-pane/​discovered-device-pane.component.ts Adds error input and AMT DNS suffix row.
src/​app/​devices/​discovered-device-pane/​discovered-device-pane.component.spec.ts Tests warning visibility, cached details, and suffix display.
src/​app/​devices/​discovered-device-pane/​discovered-device-pane.component.scss Styles the error alert.
src/​app/​devices/​discovered-device-pane/​discovered-device-pane.component.html Renders the alert and suppresses the empty message on failure.
src/​app/​devices/​devices.component.ts Tracks and resets pane fetch-error state.
src/​app/​devices/​devices.component.spec.ts Tests fetch-error state and reset behavior.
src/​app/​devices/​devices.component.html Passes error state to the pane.

Review effort: Balanced

Comment thread src/app/devices/devices.component.ts Resolved
@ShradhaGupta31
ShradhaGupta31 force-pushed the feat/pane-load-error-dns-suffix branch from 6131f66 to ffca64a Compare November 10, 2026 06:15
- If fetching the latest copy of a discovered device fails, the pane
now shows an error saying the details may be out of date.

- The pane also shows the AMT DNS suffix when the API returns one.
Strings are added for all supported locales.

Resolves: device-management-toolkit/console#1377

Signed-off-by: ShradhaGupta31 <shradha.gupta@intel.com>
@ShradhaGupta31
ShradhaGupta31 marked this pull request as ready for review November 10, 2026 06:33
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.

Show errors and AMT DNS suffix in discovered device details

2 participants