Skip to content

Show Created By & Updated By in Appointment Print (ENG-611)#16477

Draft
Copilot wants to merge 2 commits into
developfrom
copilot/eng-611-show-created-by-updated-by
Draft

Show Created By & Updated By in Appointment Print (ENG-611)#16477
Copilot wants to merge 2 commits into
developfrom
copilot/eng-611-show-created-by-updated-by

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The Appointment Print footer only showed "Last Updated By". This adds "Created By" alongside it so both attribution fields are visible on the printed appointment.

Proposed Changes

  • In AppointmentPrint.tsx, updated the PrintFooter leftContent to display both created_by and updated_by (pipe-separated) instead of only updated_by
// Before
<span className="font-semibold">{t("last_updated_by")}:</span>{" "}
{formatName(appointment.updated_by)}

// After
<span className="font-semibold">{t("created_by")}:</span>{" "}
{formatName(appointment.created_by)}
<span className="mx-1.5 text-gray-400">|</span>
<span className="font-semibold">{t("last_updated_by")}:</span>{" "}
{formatName(appointment.updated_by)}

Both fields already exist on AppointmentRead (created_by: UserReadMinimal, updated_by: UserReadMinimal | null). formatName handles null gracefully with "-".

Tagging: @ohcnetwork/care-fe-code-reviewers

Merge Checklist

  • Add specs that demonstrate the bug or test the new feature.
  • Update product documentation.
  • Ensure that UI text is placed in I18n files.
  • Prepare a screenshot or demo video for the changelog entry and attach it to the issue.
  • Request peer reviews.
  • Complete QA on mobile devices.
  • Complete QA on desktop devices.
  • Add or update Playwright tests for related changes
Original prompt

Issue: ENG-611
Summary: Show Created By & Updated By in Appointment Print
Description: Currently we are only showing the last updated details, we should also show the created data.

Custom Fields:
Development: {}
Rank: 0|i00c01:
Sprint: ENG Sprint 6 (active)

You have been assigned to a work item "Show Created By & Updated By in Appointment Print". Analyze the details of the work item and get started.
Summary: Show Created By & Updated By in Appointment Print
Description: Currently we are only showing the last updated details, we should also show the created data.

User: You have been assigned to a work item "Show Created By & Updated By in Appointment Print". Analyze the details of the work item and get started.

Agent: I received your request and will let you know when the PR is ready.

Agent: checking if I have everything I need to get started.

User: ohcnetwork/care_fe

Agent: 📋 I wasn't able to determine which GitHub repository to work in.

Please tell me which repository this work should be done in using the format owner/repository-name (e.g., github/copilot), then I'll automatically start working on it!

Agent: I received your request and will let you know when the PR is ready.

Agent: checking if I have everything I need to get started.

User: agentic-workflows create

Branch naming

This task relates to issue ENG-611 — preserve that identifier somewhere in the branch name and pull request title for traceability. Do not treat the identifier as a verbatim slug or prepend it with a hyphen by default; instead, adapt the full branch name to comply with the repository's branch-naming pattern, adding any required prefix or restructuring the shape as needed.

Include a link to the original issue in the pull request description: https://openhealthcarenetwork.atlassian.net/browse/ENG-611

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing

Copilot AI requested review from Copilot and removed request for Copilot June 24, 2026 10:14
@netlify

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit b658fcf
🔍 Latest deploy log https://app.netlify.com/projects/care-ohc/deploys/6a3baf3b067aec0008bd07c2
😎 Deploy Preview https://deploy-preview-16477.preview.ohc.network
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Previously only "Last Updated By" was shown in the Appointment Print footer.
Now both "Created By" and "Last Updated By" are displayed, separated by a pipe.

Fixes: https://openhealthcarenetwork.atlassian.net/browse/ENG-611

Co-authored-by: bodhish <14979190+bodhish@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot June 24, 2026 10:19
Copilot AI changed the title [WIP] Show Created By and Updated By in Appointment Print Show Created By & Updated By in Appointment Print (ENG-611) Jun 24, 2026
Copilot AI requested a review from bodhish June 24, 2026 10:20
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying care-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: b658fcf
Status: ✅  Deploy successful!
Preview URL: https://10459937.care-preview-a7w.pages.dev
Branch Preview URL: https://copilot-eng-611-show-created.care-preview-a7w.pages.dev

View logs

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