Skip to content

solution#1800

Open
AndrewT98 wants to merge 1 commit intomate-academy:masterfrom
AndrewT98:develop
Open

solution#1800
AndrewT98 wants to merge 1 commit intomate-academy:masterfrom
AndrewT98:develop

Conversation

@AndrewT98
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Changes are needed because the implementation has critical blockers that prevent the task from working correctly. First, line 367 references person.gender, but the data uses person.sex (e.g., 'm' or 'f'), so gender values will appear as undefined. Second, the age cell creation is incomplete — lines 377–378 start building it but never assign textContent or append it to the row. Third, the century cell is entirely missing, though it's required as the 6th cell in each row. Finally, the code never locates the dashboard table (e.g., via document.querySelector('.dashboard')) or appends the generated rows to it — so no table content appears at all. These issues violate core requirements and must be fixed before the solution functions as intended.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

const td = document.createElement('td');
td.textContent = person.name;
tr.appendChild(td);
const tdGender = document.createElement('td');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The data uses sex property (e.g., 'm'/'f'), but the code references person.gender which will be undefined. Change to person.sex.

const tdDied = document.createElement('td');
tdDied.textContent = person.died;
tr.appendChild(tdDied);
const tdAGE =
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The age cell creation appears incomplete - needs to finish assigning textContent and appending to the row.

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