Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(web): restore ordinary hyperlink colors (#9508)

gbirman082941aebe35
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index 209b7720f9..d2b361ae67 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -392,6 +392,7 @@ resolved session ID; keep the existing `AgentSessionProvider` subscription to
`agent_session` rather than enabling legacy block tracking of placeholder IDs.
- Share URL recognition with `packages/lexical-core/utils/auto-link.ts`; preserve explicit unlink markers when saving and rendering messages. See `packages/lexical-core/README.md` at the repository root.
+- Keep ordinary hyperlinks on the theme's link colors (blue by default), including Markdown renderers/editors and calendar descriptions; preserve mention decorators' separate styling.
- CRM creation accepts name-only companies and full contact email addresses.
Company selection is explicit; a matching domain only suggests a company.
Keep the standalone and pipeline forms consistent (see
diff --git a/apps/web/src/features/block-pr/side-panel/github-pull-request.tsx b/apps/web/src/features/block-pr/side-panel/github-pull-request.tsx
index a3f8195579..a3e14576bf 100644
--- a/apps/web/src/features/block-pr/side-panel/github-pull-request.tsx
+++ b/apps/web/src/features/block-pr/side-panel/github-pull-request.tsx
@@ -210,7 +210,7 @@ export function GithubPullRequestDetailsRows(props: {
href={props.enrichment.url}
target="_blank"
rel="noreferrer"
- class="min-w-0 truncate text-ink underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
+ class="min-w-0 truncate text-link hover:text-link-hover visited:text-link-visited underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
>
{props.enrichment.displayName}
</a>
diff --git a/apps/web/src/features/calendar-team/components/team-event-details.tsx b/apps/web/src/features/calendar-team/components/team-event-details.tsx
index 6509449f22..24c6b3fb1c 100644
--- a/apps/web/src/features/calendar-team/components/team-event-details.tsx
+++ b/apps/web/src/features/calendar-team/components/team-event-details.tsx
@@ -80,7 +80,7 @@ export function TeamEventDetails(props: {
<Show when={description()}>
{(html) => (
<div
- class="select-text text-ink-muted [&_a]:underline"
+ class="select-text text-ink-muted [&_a]:text-link [&_a:hover]:text-link-hover [&_a:visited]:text-link-visited [&_a]:underline"
innerHTML={html()}
onClick={(event) => {
const anchor = (event.target as Element | null)?.closest(
diff --git a/apps/web/src/features/calendar/components/EventDetails.tsx b/apps/web/src/features/calendar/components/EventDetails.tsx
index b59b86df20..605176408d 100644
--- a/apps/web/src/features/calendar/components/EventDetails.tsx
+++ b/apps/web/src/features/calendar/components/EventDetails.tsx
@@ -332,7 +332,7 @@ function EventLocationItem(props: { location: string }) {
{(segment) =>
segment.kind === 'phone' ? (
<a
- class="underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
+ class="text-link hover:text-link-hover underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
href={segment.telUrl}
>
{segment.text}
@@ -618,7 +618,7 @@ export function EventDetails(props: {
<div class="contents">
<TextAlignLeftIcon class="mt-0.5 size-5 text-ink-extra-muted sm:size-4" />
<div
- class="select-text leading-relaxed text-ink-muted [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_p+p]:mt-1 [&_ul]:list-disc [&_ul]:pl-4"
+ class="select-text leading-relaxed text-ink-muted [&_a]:text-link [&_a:hover]:text-link-hover [&_a:visited]:text-link-visited [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_p+p]:mt-1 [&_ul]:list-disc [&_ul]:pl-4"
innerHTML={html()}
onClick={openDescriptionLink}
/>
diff --git a/apps/web/src/features/email-message/components/calendar-invite-card.tsx b/apps/web/src/features/email-message/components/calendar-invite-card.tsx
index b233072c5f..4cc4ec73e1 100644
--- a/apps/web/src/features/email-message/components/calendar-invite-card.tsx
+++ b/apps/web/src/features/email-message/components/calendar-invite-card.tsx
@@ -300,7 +300,7 @@ export function CalendarInviteCard(props: {
<Show when={!cancelled() && invite().description}>
<div class="flex flex-col items-start gap-1.5">
<div
- class="break-words text-ink-muted [overflow-wrap:anywhere] [&_a]:underline [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6"
+ class="break-words text-ink-muted [overflow-wrap:anywhere] [&_a]:text-link [&_a:hover]:text-link-hover [&_a:visited]:text-link-visited [&_a]:underline [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6"
classList={{ 'line-clamp-2': !descriptionExpanded() }}
innerHTML={descriptionHtml()}
onClick={openDescriptionLink}
diff --git a/apps/web/src/lib/core/component/AI/component/tool/WebFetch.tsx b/apps/web/src/lib/core/component/AI/component/tool/WebFetch.tsx
index 36adc7667a..c5d93a51e3 100644
--- a/apps/web/src/lib/core/component/AI/component/tool/WebFetch.tsx
+++ b/apps/web/src/lib/core/component/AI/component/tool/WebFetch.tsx
@@ -12,7 +12,7 @@ const handler = createToolRenderer({
href={ctx.tool.data.input}
target="_blank"
rel="noopener noreferrer"
- class="italic text-ink underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
+ class="italic text-link hover:text-link-hover visited:text-link-visited underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-2 hover:decoration-current"
>
{ctx.tool.data.input}
</a>
diff --git a/apps/web/src/lib/core/component/DocumentPreview.tsx b/apps/web/src/lib/core/component/DocumentPreview.tsx
index 9541e6f3ab..be832828cd 100644
--- a/apps/web/src/lib/core/component/DocumentPreview.tsx
+++ b/apps/web/src/lib/core/component/DocumentPreview.tsx
@@ -468,7 +468,7 @@ function CalendarEventPreviewDetails(props: {
<div class="mt-2 flex items-start text-[0.8em] text-ink-muted">
<TextAlignLeftIcon class="relative mx-1 mt-0.5 size-3 shrink-0" />
<div
- class="line-clamp-4 min-w-0 wrap-anywhere [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_p+p]:mt-1 [&_ul]:list-disc [&_ul]:pl-4"
+ class="line-clamp-4 min-w-0 wrap-anywhere [&_a]:text-link [&_a:hover]:text-link-hover [&_a:visited]:text-link-visited [&_a]:underline [&_ol]:list-decimal [&_ol]:pl-4 [&_p+p]:mt-1 [&_ul]:list-disc [&_ul]:pl-4"
innerHTML={html()}
onClick={openDescriptionLink}
/>
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/theme.ts b/apps/web/src/lib/core/component/LexicalMarkdown/theme.ts
index abc71d98ce..c48f98bf90 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/theme.ts
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/theme.ts
@@ -68,9 +68,8 @@ export const theme: EditorThemeClasses = {
checklist: 'md-list md-check',
listitemChecked: 'checked md-strike text-ink-extra-muted',
},
- // Same color as the surrounding text. Accent is blue in the default themes,
- // and painting links with it made them blue in some surfaces only.
- link: 'underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-[0.15em] hover:decoration-current cursor-default',
+ // Ordinary hyperlinks use link colors; mention decorators own their styling.
+ link: 'text-link hover:text-link-hover visited:text-link-visited underline decoration-current/20 decoration-[max(1px,0.1em)] underline-offset-[0.15em] hover:decoration-current cursor-default',
quote:
'md-quote border-l-2 border-edge pl-4 py-2 italic text-ink-muted my-4 first:mt-1.5',
code: 'bg-code-buffer font-mono p-3 rounded block md-code-box before:text-ink-extra-muted/70 whitespace-pre mb-4',