Skip to content

RDKB-64534 [OneStack][XB10] MTA Line details needs to be fixed as per product in UI for residential gateway#119

Open
pavankumar464 wants to merge 3 commits intodevelopfrom
bug/RDKB-64534
Open

RDKB-64534 [OneStack][XB10] MTA Line details needs to be fixed as per product in UI for residential gateway#119
pavankumar464 wants to merge 3 commits intodevelopfrom
bug/RDKB-64534

Conversation

@pavankumar464
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 29, 2026 02:40
@pavankumar464 pavankumar464 requested review from a team as code owners April 29, 2026 02:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the XB3 web UI templates to render MTA/voice line details based on the device-reported number of line entries, instead of being hard-coded for only 1–2 lines (targeting residential gateway product variants like XB10).

Changes:

  • Generate the “Line Number” dropdown options dynamically in voice_quality_metrics.jst.
  • Render CALLP/QoS per-line table rows dynamically in qos.jst.
  • Render MTA Line Status per-line rows dynamically in mta_Line_Status.jst.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
source/Styles/xb3/jst/voice_quality_metrics.jst Dynamically populates the line-number selector based on LineTableNumberOfEntries.
source/Styles/xb3/jst/qos.jst Replaces hard-coded line 1/2 rows with a loop over all line entries.
source/Styles/xb3/jst/mta_Line_Status.jst Replaces hard-coded line 1/2 status blocks with a loop over all line entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/Styles/xb3/jst/qos.jst
<?%
$LineTableNumberOfEntries = getStr("Device.X_CISCO_COM_MTA.LineTableNumberOfEntries");
for ($i = 1; $i <= $LineTableNumberOfEntries; $i++) {
var $status = getStr("Device.X_CISCO_COM_MTA.LineTable." + $i + ".Status");
Comment on lines +52 to +53
echo('<div class="' + $rowClass + '">');
echo('<span class="readonlyLabel">Line ' + $i + ' Status:</span>');
Comment on lines +121 to +124
<?%
$LineNumberCount = getStr("Device.X_CISCO_COM_MTA.LineTableNumberOfEntries");
for ($k=2; $k<=$LineNumberCount; $k++) echo( '<option value="'+$k+'">'+$k+'</option>');
?>
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