Skip to content

Feature/dashboard improvements#7720

Merged
DawoudIO merged 3 commits intomasterfrom
feature/dashboard-improvements
Dec 3, 2025
Merged

Feature/dashboard improvements#7720
DawoudIO merged 3 commits intomasterfrom
feature/dashboard-improvements

Conversation

@DawoudIO
Copy link
Contributor

@DawoudIO DawoudIO commented Dec 3, 2025

What Changed

Fixes #

Type

  • ✨ Feature
  • 🐛 Bug fix
  • ♻️ Refactor
  • 🏗️ Build/Infrastructure
  • 🔒 Security

Testing

Screenshots

Security Check

  • Introduces new input validation
  • Modifies authentication/authorization
  • Affects data privacy/GDPR

Code Quality

  • Database: Propel ORM only, no raw SQL
  • No deprecated attributes (align, valign, nowrap, border, cellpadding, cellspacing, bgcolor)
  • Bootstrap CSS classes used
  • All CSS bundled via webpack

Pre-Merge

  • Tested locally
  • No new warnings
  • Build passes
  • Backward compatible (or migration documented)

- Remove extra closing </div> tag in dashboard.php (invalid HTML)
- Fix i18n pluralization for anniversary badges (singular/plural day/days)
Copilot AI review requested due to automatic review settings December 3, 2025 02:58
@DawoudIO DawoudIO requested a review from a team as a code owner December 3, 2025 02:58
@DawoudIO DawoudIO requested review from DAcodedBEAT, MrClever, bigtigerku, grayeul and respencer and removed request for a team December 3, 2025 02:58
@DawoudIO DawoudIO merged commit 0689ef9 into master Dec 3, 2025
6 checks passed
@DawoudIO DawoudIO deleted the feature/dashboard-improvements branch December 3, 2025 02:59
@github-actions github-actions bot mentioned this pull request Dec 3, 2025
16 tasks
Copy link
Contributor

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 contains quality-of-life improvements to the dashboard, including an HTML structure fix, better internationalization support for singular/plural day handling, and improved code documentation for security.

  • Fixed duplicate closing div tag in dashboard template
  • Improved i18n handling to correctly display "1 day" vs "2 days" for anniversary badges
  • Added security documentation comment explaining SQL injection protection

Reviewed changes

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

File Description
src/v2/templates/root/dashboard.php Removed duplicate closing </div> tag that was causing invalid HTML structure
src/skin/js/MainDashboard.js Improved singular/plural i18n handling for anniversary day counts, splitting "days ago" into separate "day/days" + "ago" translation keys for better language support
src/api/routes/people/people-families.php Added security comment documenting that date values are safe from SQL injection due to integer casting, plus minor whitespace cleanup
Comments suppressed due to low confidence (1)

src/skin/js/MainDashboard.js:422

  • Unused function buildRenderEmail.
    function buildRenderEmail(email) {

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