Skip to content

DATA-1460: Design Update of the History (Activity Stream) Page#649

Open
AbiJ17 wants to merge 5 commits into
mainfrom
data-1460-new-history-ui
Open

DATA-1460: Design Update of the History (Activity Stream) Page#649
AbiJ17 wants to merge 5 commits into
mainfrom
data-1460-new-history-ui

Conversation

@AbiJ17

@AbiJ17 AbiJ17 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

What this PR accomplishes

  • Updated dataset activity history UI to match approved mockups
  • Removed activity icons
  • Added spacing/alignment adjustments between dates and activity text
  • Added admin-only visibility for OPS employee names
  • Added clickable profile links for admin users
  • Ensured public users cannot see OPS employee names
  • Added approved French translation for: “dataset was updated”

Issue(s) addressed

  • DATA-1460

What needs to be reviewed

  • Verify activity history formatting matches mockups
  • Confirm dataset links work correctly
  • Confirm OPS employee names are hidden from public users
  • Confirm admin users can see clickable profile links
  • Verify approved French translation displays correctly
Screenshot 2026-06-09 133205 Screenshot 2026-06-09 132951 Screenshot 2026-06-09 132327

@AbiJ17 AbiJ17 requested a review from aimalkhan June 9, 2026 17:52

@aimalkhan aimalkhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

let's fix the translation issue.

{% if activity.activity_type == 'new package' %}
{{ dataset_link }} dataset was created
{% elif activity.activity_type == 'changed package' %}
{% if h.lang() == 'fr' %}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

use .po file for fr translations

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added .po file workflow for fr translations. I also recompiled the .mo file to include the updated translations, and verified that the translations show up on the page as expected.

@AbiJ17 AbiJ17 requested a review from aimalkhan June 10, 2026 17:26

@aimalkhan aimalkhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you please check why the format changed and extra commented lines were added to the .po file? It is pretty hard to review the code like that.

#~ msgid "Queen’s Printer for Ontario"
#~ msgstr "Imprimeur de la Reine pour l’Ontario"

#~ msgid "Contact Us"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

where are these lines that are commented out coming from?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the PR here: https://github.com/ongov/ckanext-ontario_theme/pull/547/changes does a similar addition to what we want but it does not need an entire reformat of the page. Can you try to preserve the original formatting other wise it will be really hard to review what was changes and what wasn't

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reverted back to original version of .po file, added French translation for dataset was updated at the bottom of the file.

msgid "Create Account"
msgstr ""

#~ msgid "Queen’s Printer for Ontario"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the "Queen's printer" is not currently being used but it is a valid translation, and we might need to use it in the future. So let's keep it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Seems like this is already included in the original .po file.

@AbiJ17 AbiJ17 requested a review from aimalkhan June 11, 2026 19:28
msgstr "<a href=\"%(url)s\">Plus %(group_title)s</a>"

#: ckanext/ontario_theme/templates/internal/header.html:89
msgid "Ministries"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do we not need the Ministries translation?

@AbiJ17 AbiJ17 Jun 12, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

When I tried to recompile the .mo file after reverting the .po file to its original version, I got a duplicate definition error and it pointed to lines 101 and 2026. There is already a Ministries translation at Line 101, so I removed the one at 2026 and kept the one at 101, after which it was able to recompile. The translation seems to show up on my end.

Screenshot 2026-06-12 103632 Screenshot 2026-06-12 104224

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