Add agency name display to A4A portal sidebar header#109857
Draft
Add agency name display to A4A portal sidebar header#109857
Conversation
Contributor
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
Agent-Logs-Url: https://github.com/Automattic/wp-calypso/sessions/cbe7c9eb-9fff-4536-9943-84eb50f8e5c2 Co-authored-by: jkguidaven <56598660+jkguidaven@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Automattic/wp-calypso/sessions/cbe7c9eb-9fff-4536-9943-84eb50f8e5c2 Co-authored-by: jkguidaven <56598660+jkguidaven@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add display of agency name to portal
Add agency name display to A4A portal sidebar header
Apr 7, 2026
Contributor
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agencies had no way to confirm which account they were logged into — the sidebar showed only the A4A logo and a Gravatar with no agency context.
Changes
sidebar/header/index.tsx: Read active agency viauseSelector(getActiveAgency)and render the agency name between the logo and profile dropdown. Conditionally rendered — nothing shown while agency is loading or when name is absent.sidebar/header/style.scss: Style.a4a-sidebar__agency-namewith sidebar text color, 500 weight, and CSS truncation (max-width: 140px,text-overflow: ellipsis). Full name exposed viatitleattribute on hover.No new API calls — uses the existing Redux state already populated by the agency fetch.
Original prompt
Issue Title: Add display of agency name to portal
Issue Description: Describe the bug or enhancement
Add a clear and concise description of what the bug or enhancement is.
Chatting with an agency today, they mentioned they were unsure if they were logged in with the correct account. They expected to see their agency name somewhere in the portal. This could be a small tweak that helps personalize the portal and situate agencies.
Steps to reproduce, if applicable
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add links to screenshots to help explain your problem. Or add them using the "Upload files" picker below.
Additional context
Add any other context about the problem here. The more detail you can provide, the better.
Upload files
Fixes https://linear.app/a8c/issue/A4A-1996/add-display-of-agency-name-to-portal
Branch Name should include the identifier "A4A-1996"
Agent Guidance:
Execution rules
Quality and handoff
Issue Comments:
Comment by User e4297379-61ae-462f-9580-75ffd723529f (2026-04-07T10:53:42.995Z):
None
Comment by User 8276f4bf-d673-4481-9272-192279f2986b (2026-04-07T10:12:44.963Z):
Agency name display
I've completed the implementation for displaying the agency name in the A4A portal sidebar.
Summary
I added the agency name display to the A4A sidebar header to help agencies identify which account they are logged into. The changes include:
client/a8c-for-agencies/components/sidebar/header/index.tsx: Added thegetActiveAgencyselector to fetch the active agency from Redux state, and wrapped the logo and agency name in anHStackcomponent for proper horizontal layout.client/a8c-for-agencies/components/sidebar/header/style.scss: Added styling for the agency name with appropriate color, font size, weight, and text truncation for long names (max-width of 140px with ellipsis).The agency name now appears next to the A4A logo in the sidebar header, providing users with clear context about which agency account they are viewing. The implementation uses existing Redux state (
getActiveAgencyselector) so no new API calls are required.Repository:
Automattic/wp-calypsoBranch:
cursor/A4A-1996-agency-name-display-5240View PR · Open in Desktop · Open in Web
Comment by User (2026-04-07T09:53:31.462Z):
This thread is for an agent session with Cursor. View on Cursor →
Comment by User (2026-04-07T09:53:08.920Z):
This thread is for an agent session with githubcopilot.
Comment by User 1dc4fda1-de7f-43c8-817f-7605532e8a35 (2026-04-07T09:52:29.658Z):
ai-coder.sh — Error
Error: The AI agent produced no code changes for this task.
Build: https://teamcity.a8c.com/build/17292541
Comment by User e4297379-61ae-462f-9580-75ffd723529f (2026-04-07T09:50:04.383Z):
@AgentSandbox stop
Comment by User 1dc4fda1-de7f-43c8-817f-7605532e8a35 (2026-04-07T09:42:59.313Z):
Got it! Waiting for TeamCity worker.
Comment by User e4297379-61ae-462f-9580-75ffd723529f (2026-04-07T09:40:40.137Z):
Enriched Specification Template
Issue Reference