Skip to content

Commit a07fc56

Browse files
committed
prettier fix again
1 parent b571db4 commit a07fc56

10 files changed

Lines changed: 66 additions & 27 deletions

File tree

apps/extension/src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ const DASHBOARD_URL =
2323
(import.meta.env.VITE_DASHBOARD_URL as string | undefined) ??
2424
"https://cornellloop.com";
2525

26-
export default function App({ onClose, pageContext = "gmail", onPreviewSlot }: AppProps) {
26+
export default function App({
27+
onClose,
28+
pageContext = "gmail",
29+
onPreviewSlot,
30+
}: AppProps) {
2731
const [view, setView] = useState<View>("feed");
2832
const [activeTab, setActiveTab] = useState<"feed" | "bookmarks">("feed");
2933
const [searchQuery, setSearchQuery] = useState("");

apps/extension/src/components/BookmarkCard.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ export function BookmarkCard({
179179
<div className="flex min-w-0 flex-1 flex-col gap-[3px]">
180180
<p
181181
className={
182-
BODY2_SEMIBOLD +
183-
" w-full text-[var(--color-neutral-900)]"
182+
BODY2_SEMIBOLD + " w-full text-[var(--color-neutral-900)]"
184183
}
185184
style={{ fontVariationSettings: "'opsz' 14" }}
186185
>
@@ -191,9 +190,7 @@ export function BookmarkCard({
191190
<div
192191
className={[
193192
"flex flex-col gap-[1px]",
194-
subtitleClickable
195-
? "cursor-pointer hover:underline"
196-
: "",
193+
subtitleClickable ? "cursor-pointer hover:underline" : "",
197194
].join(" ")}
198195
onClick={subtitleClickable ? onSubtitleClick : undefined}
199196
role={subtitleClickable ? "button" : undefined}

apps/extension/src/components/BookmarkView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import { useState } from "react";
1616
import type { EventItem } from "../data/types";
1717
import type { PageContext } from "../App";
1818
import { useAllEvents } from "../data/useEvents";
19-
import { getPrimaryLink, getLinkLabel, openExternalUrl } from "../utils/linkUtils";
19+
import {
20+
getPrimaryLink,
21+
getLinkLabel,
22+
openExternalUrl,
23+
} from "../utils/linkUtils";
2024
import { buildGCalUrl } from "../utils/calendarUtils";
2125
import { removeSlotPreview } from "../gcalHighlight";
2226
import { BookmarkCard } from "./BookmarkCard";

apps/extension/src/components/FeedView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ export default function FeedView({
106106
? () => toggleExpand(orgName)
107107
: undefined
108108
}
109-
onViewLess={
110-
isExpanded ? () => toggleExpand(orgName) : undefined
111-
}
109+
onViewLess={isExpanded ? () => toggleExpand(orgName) : undefined}
112110
/>
113111
);
114112
})}

apps/extension/src/components/FloatingPanel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import App from "../App";
33
import type { AppProps } from "../App";
44
import FloatingIcon from "../../public/floating_icon.svg?react";
55

6-
export interface FloatingPanelProps
7-
extends Pick<AppProps, "pageContext" | "onPreviewSlot"> {}
6+
export interface FloatingPanelProps extends Pick<
7+
AppProps,
8+
"pageContext" | "onPreviewSlot"
9+
> {}
810

911
export default function FloatingPanel({
1012
pageContext,

apps/extension/src/components/SearchView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
import { useState } from "react";
1616
import type { EventItem } from "../data/types";
1717
import { useSearchResults } from "../data/useEvents";
18-
import { getPrimaryLink, getLinkLabel, openExternalUrl } from "../utils/linkUtils";
18+
import {
19+
getPrimaryLink,
20+
getLinkLabel,
21+
openExternalUrl,
22+
} from "../utils/linkUtils";
1923
import { buildGCalUrl } from "../utils/calendarUtils";
2024
import { BookmarkCard } from "./BookmarkCard";
2125
import { SortByTags } from "./SortByTags";

apps/extension/src/data/mockData.ts

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ function monthStr(d: Date): string {
4848
}
4949

5050
// Upcoming dates (so they appear in current/next GCal week view)
51-
const d2 = addDays(2); // 2 days from now
52-
const d4 = addDays(4); // 4 days from now
53-
const d6 = addDays(6); // 6 days from now
54-
const d9 = addDays(9); // 9 days from now
51+
const d2 = addDays(2); // 2 days from now
52+
const d4 = addDays(4); // 4 days from now
53+
const d6 = addDays(6); // 6 days from now
54+
const d9 = addDays(9); // 9 days from now
5555

5656
export const MOCK_EVENTS: EventItem[] = [
5757
// ── Cornell DTI (4 events → tests 3/org collapse) ────────────────────────
@@ -65,7 +65,9 @@ export const MOCK_EVENTS: EventItem[] = [
6565
title: "Datadog x DTI Recruitment Info Session",
6666
subtitle: ["4:00 pm – 5:30 pm", "Hollister Hall 312"],
6767
tags: ["Tech", "Internships", "Early career"],
68-
links: [{ url: "https://forms.gle/datadog-rsvp", type: "rsvp", label: "RSVP" }],
68+
links: [
69+
{ url: "https://forms.gle/datadog-rsvp", type: "rsvp", label: "RSVP" },
70+
],
6971
calendarEvent: {
7072
title: "Datadog x DTI Recruitment Info Session",
7173
startISO: toISO(d2, 16),
@@ -84,7 +86,13 @@ export const MOCK_EVENTS: EventItem[] = [
8486
title: "DTI Spring Charity Auction",
8587
subtitle: ["6:00 pm – 8:00 pm", "Statler Hotel, Carrion Ballroom"],
8688
tags: ["Just for fun", "Early career"],
87-
links: [{ url: "https://cornellloop.com/dti-auction", type: "info", label: "Learn More" }],
89+
links: [
90+
{
91+
url: "https://cornellloop.com/dti-auction",
92+
type: "info",
93+
label: "Learn More",
94+
},
95+
],
8896
calendarEvent: {
8997
title: "DTI Spring Charity Auction",
9098
startISO: toISO(d4, 18),
@@ -101,7 +109,9 @@ export const MOCK_EVENTS: EventItem[] = [
101109
title: "DTI Product Sprint Demo Night",
102110
subtitle: "See what our teams shipped this semester — all are welcome",
103111
tags: ["Tech", "Just for fun"],
104-
links: [{ url: "https://cornelldti.org/demo", type: "info", label: "Learn More" }],
112+
links: [
113+
{ url: "https://cornelldti.org/demo", type: "info", label: "Learn More" },
114+
],
105115
sentAt: daysAgo(9),
106116
},
107117

@@ -137,7 +147,11 @@ export const MOCK_EVENTS: EventItem[] = [
137147
"For women and non-binary engineers interested in trading and technology",
138148
tags: ["Internships"],
139149
links: [
140-
{ url: "https://www.janestreet.com/internships", type: "application", label: "Apply" },
150+
{
151+
url: "https://www.janestreet.com/internships",
152+
type: "application",
153+
label: "Apply",
154+
},
141155
{ url: "https://instagram.com/cornellwicc", type: "social" },
142156
],
143157
sentAt: daysAgo(3),
@@ -153,7 +167,9 @@ export const MOCK_EVENTS: EventItem[] = [
153167
title: "WICC x Meta Fireside Chat",
154168
subtitle: ["5:00 pm – 6:30 pm", "Bloomberg Center 161"],
155169
tags: ["Tech", "Early career", "Mentorship"],
156-
links: [{ url: "https://forms.gle/wicc-meta", type: "rsvp", label: "RSVP" }],
170+
links: [
171+
{ url: "https://forms.gle/wicc-meta", type: "rsvp", label: "RSVP" },
172+
],
157173
calendarEvent: {
158174
title: "WICC x Meta Fireside Chat",
159175
startISO: toISO(d6, 17),
@@ -178,7 +194,11 @@ export const MOCK_EVENTS: EventItem[] = [
178194
],
179195
tags: ["Tech", "Just for fun"],
180196
links: [
181-
{ url: "https://bigredhacks.com/register", type: "registration", label: "Register" },
197+
{
198+
url: "https://bigredhacks.com/register",
199+
type: "registration",
200+
label: "Register",
201+
},
182202
{ url: "https://bigredhacks.com", type: "info" },
183203
],
184204
calendarEvent: {

apps/extension/src/gcalHighlight.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ function findGridInfo(): GridInfo | null {
147147
let scrollEl: HTMLElement | null = null;
148148
for (const sel of knownSelectors) {
149149
const el = document.querySelector(sel) as HTMLElement | null;
150-
if (el && el.scrollHeight > el.clientHeight * 1.3 && el.clientHeight > 200) {
150+
if (
151+
el &&
152+
el.scrollHeight > el.clientHeight * 1.3 &&
153+
el.clientHeight > 200
154+
) {
151155
scrollEl = el;
152156
break;
153157
}
@@ -157,7 +161,10 @@ function findGridInfo(): GridInfo | null {
157161
if (!scrollEl) {
158162
for (const el of main.querySelectorAll("*")) {
159163
const htmlEl = el as HTMLElement;
160-
if (htmlEl.scrollHeight > htmlEl.clientHeight * 1.5 && htmlEl.clientHeight > 200) {
164+
if (
165+
htmlEl.scrollHeight > htmlEl.clientHeight * 1.5 &&
166+
htmlEl.clientHeight > 200
167+
) {
161168
const style = window.getComputedStyle(htmlEl);
162169
if (style.overflowY === "auto" || style.overflowY === "scroll") {
163170
scrollEl = htmlEl;

apps/extension/src/utils/calendarUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import type { CalendarEvent } from "../data/types";
99
export function buildGCalUrl(event: CalendarEvent): string {
1010
const fmt = (iso: string) =>
1111
// Strip dashes, colons, milliseconds, and trailing Z for local time
12-
iso.replace(/[-:]/g, "").replace(/\.\d{3}/, "").replace("Z", "");
12+
iso
13+
.replace(/[-:]/g, "")
14+
.replace(/\.\d{3}/, "")
15+
.replace("Z", "");
1316

1417
const start = fmt(event.startISO);
1518
const end = event.endISO ? fmt(event.endISO) : start;

shared/ui/src/components/Cards/ExtensionEventCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export function ExtensionEventCard({
266266
"cursor-pointer",
267267
BODY3,
268268
"text-[color:var(--color-neutral-700)]",
269-
"hover:text-[color:var(--color-neutral-900)] transition-colors duration-150",
269+
"transition-colors duration-150 hover:text-[color:var(--color-neutral-900)]",
270270
].join(" ")}
271271
>
272272
{onViewLess ? (

0 commit comments

Comments
 (0)