Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INN 2942 icon implementation #1296

Merged
merged 32 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ca904cc
Replace archive icon
anafilipadealmeida Apr 21, 2024
f5eb38b
Replace unarchive icon
anafilipadealmeida Apr 21, 2024
6505434
Replace refresh icon
anafilipadealmeida Apr 21, 2024
f2f03ad
Replace arrow left icon
anafilipadealmeida Apr 21, 2024
ef0f8f1
Replace gh icon
anafilipadealmeida Apr 21, 2024
ef0cac2
Replace Button classname by cn
anafilipadealmeida Apr 21, 2024
a1e1fc3
Replace arrow right icon
anafilipadealmeida Apr 21, 2024
fe5980e
Replace arrow left right icon
anafilipadealmeida Apr 21, 2024
7cf9a41
Replace settings icon
anafilipadealmeida Apr 21, 2024
64f6b66
Replace uturn icon
anafilipadealmeida Apr 21, 2024
af0c2fa
Replace calendar icon
anafilipadealmeida Apr 21, 2024
2ae72a1
Replace barchart icon
anafilipadealmeida Apr 21, 2024
fd30e56
Replace check icon
anafilipadealmeida Apr 21, 2024
6cc3d68
Replace cloud icon
anafilipadealmeida Apr 21, 2024
a90fc21
Replace arrow down icon
anafilipadealmeida Apr 21, 2024
9c0059b
Replace chevron right icon
anafilipadealmeida Apr 21, 2024
37b20af
Replace chevron up down icon
anafilipadealmeida Apr 21, 2024
50dd488
Replace chevron icon
anafilipadealmeida Apr 21, 2024
b44dc53
Replace clock icon
anafilipadealmeida Apr 21, 2024
65e3a2f
Add height to clock icons
anafilipadealmeida Apr 21, 2024
b288919
Replace clipboard icon
anafilipadealmeida Apr 21, 2024
6cac110
Replace bank card icon
anafilipadealmeida Apr 21, 2024
9211b18
Replace cube icon
anafilipadealmeida Apr 21, 2024
1da86e4
Replace ellipsis icon
anafilipadealmeida Apr 21, 2024
4ed1cfc
Replace key icon
anafilipadealmeida Apr 21, 2024
aee1f20
Replace lifebuoy icon
anafilipadealmeida Apr 21, 2024
cad2aed
Replace map pin icon
anafilipadealmeida Apr 21, 2024
9a49671
Replace newspaper icon
anafilipadealmeida Apr 21, 2024
d977053
Replace power icon
anafilipadealmeida Apr 21, 2024
177b454
Replace plus circle
anafilipadealmeida Apr 21, 2024
836d209
Replace team icon
anafilipadealmeida Apr 21, 2024
1476e9a
Add remix icons
anafilipadealmeida Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@radix-ui/react-tabs": "1.0.4",
"@radix-ui/react-toggle-group": "1.0.4",
"@radix-ui/react-tooltip": "1.0.6",
"@remixicon/react": "4.2.0",
"@sentry/nextjs": "7.88.0",
"@sindresorhus/slugify": "2.2.0",
"@stripe/react-stripe-js": "2.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

import Image from 'next/image';
import Link from 'next/link';
import ArchiveBoxArrowDownIcon from '@heroicons/react/20/solid/ArchiveBoxArrowDownIcon';
import ChevronRightIcon from '@heroicons/react/20/solid/ChevronRightIcon';
import { Link as InngestLink } from '@inngest/components/Link';
import { Skeleton } from '@inngest/components/Skeleton';
import { cn } from '@inngest/components/utils/classNames';
import { RiArchive2Line, RiArrowRightSLine } from '@remixicon/react';

import { SyncStatusPill } from '@/components/SyncStatusPill';
import { Time } from '@/components/Time';
Expand Down Expand Up @@ -54,11 +53,11 @@ export function AppCard({ app, className, envSlug, isArchived }: Props) {
className="transition-color flex cursor-pointer items-center gap-1 text-white underline decoration-transparent decoration-2 underline-offset-4 duration-300 hover:text-indigo-400 hover:decoration-indigo-400"
href={pathCreator.app({ envSlug, externalAppID: app.externalID })}
>
{isArchived && <ArchiveBoxArrowDownIcon className="h-4 w-4" />}
{isArchived && <RiArchive2Line className="h-4 w-4" />}
<span className="truncate" title={app.name}>
{app.name}
</span>
<ChevronRightIcon className="h-4 w-4" />
<RiArrowRightSLine className="h-4 w-4" />
</Link>
</h2>
{latestSyncURL && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client';

import Link from 'next/link';
import ChevronRightIcon from '@heroicons/react/20/solid/ChevronRightIcon';
import { Link as InngestLink } from '@inngest/components/Link';
import { classNames } from '@inngest/components/utils/classNames';
import { RiArrowRightSLine } from '@remixicon/react';

import { Time } from '@/components/Time';
import { pathCreator } from '@/utils/urls';
Expand All @@ -30,7 +30,7 @@ export function UnattachedSyncsCard({ className, envSlug, latestSyncTime }: Prop
href={pathCreator.unattachedSyncs({ envSlug })}
>
Unattached Syncs
<ChevronRightIcon className="h-4 w-4" />
<RiArrowRightSLine className="h-4 w-4" />
</Link>
</h2>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useState } from 'react';
import ArrowPathIcon from '@heroicons/react/20/solid/ArrowPathIcon';
import { Alert } from '@inngest/components/Alert';
import { Button } from '@inngest/components/Button';
import { Link } from '@inngest/components/Link';
import { Modal } from '@inngest/components/Modal';
import { Switch, SwitchLabel, SwitchWrapper } from '@inngest/components/Switch';
import { cn } from '@inngest/components/utils/classNames';
import { RiLoopLeftLine } from '@remixicon/react';
import { toast } from 'sonner';
import { useMutation } from 'urql';

Expand Down Expand Up @@ -95,7 +95,7 @@ export default function ResyncModal({ appExternalID, isOpen, onClose, url, platf
onClose={onClose}
title={
<div className="mb-4 flex flex-row items-center gap-3">
<ArrowPathIcon className="h-6 w-6" />
<RiLoopLeftLine className="h-6 w-6" />
<h2 className="text-lg font-medium">Resync App</h2>
</div>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useMemo } from 'react';
import Link from 'next/link';
import ArrowRightIcon from '@heroicons/react/20/solid/ArrowRightIcon';
import ChevronDownIcon from '@heroicons/react/20/solid/ChevronDownIcon';
import { Button } from '@inngest/components/Button';
import { defaultLinkStyles } from '@inngest/components/Link';
import type { Function } from '@inngest/components/types/function';
import { classNames } from '@inngest/components/utils/classNames';
import { cn } from '@inngest/components/utils/classNames';
import { RiArrowDownSLine, RiArrowRightLine } from '@remixicon/react';
import { useLocalStorage } from 'react-use';

import { useEnvironment } from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/environment-context';
Expand Down Expand Up @@ -68,7 +67,7 @@ export function FunctionList({ removedFunctions, syncedFunctions }: Props) {
className="group"
appearance="outlined"
icon={
<ChevronDownIcon className="transform-90 text-slate-500 transition-transform duration-500 group-data-[state=open]:-rotate-180" />
<RiArrowDownSLine className="transform-90 text-slate-500 transition-transform duration-500 group-data-[state=open]:-rotate-180" />
}
/>
</CollapsibleCardTrigger>
Expand All @@ -85,14 +84,14 @@ export function FunctionList({ removedFunctions, syncedFunctions }: Props) {
key={fn.id}
>
<div
className={classNames(
className={cn(
defaultLinkStyles,
'group flex w-full items-center gap-2 border-slate-200 py-3 pl-6 pr-2 text-sm font-medium hover:bg-slate-100',
!isLast && 'border-b'
)}
>
{fn.name}
<ArrowRightIcon className="h-3 w-3 -translate-x-3 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
<RiArrowRightLine className="h-3 w-3 -translate-x-3 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
</div>
</Link>
);
Expand All @@ -118,7 +117,7 @@ export function FunctionList({ removedFunctions, syncedFunctions }: Props) {
className="group"
appearance="outlined"
icon={
<ChevronDownIcon className="transform-90 text-slate-500 transition-transform duration-500 group-data-[state=open]:-rotate-180" />
<RiArrowDownSLine className="transform-90 text-slate-500 transition-transform duration-500 group-data-[state=open]:-rotate-180" />
}
/>
</CollapsibleCardTrigger>
Expand All @@ -134,14 +133,14 @@ export function FunctionList({ removedFunctions, syncedFunctions }: Props) {
key={fn.id}
>
<div
className={classNames(
className={cn(
defaultLinkStyles,
'group flex w-full items-center gap-2 border-slate-200 py-3 pl-6 pr-2 text-sm font-medium hover:bg-slate-100',
!isLast && 'border-b'
)}
>
{fn.name}
<ArrowRightIcon className="h-3 w-3 -translate-x-3 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
<RiArrowRightLine className="h-3 w-3 -translate-x-3 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
</div>
</Link>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import { type Route } from 'next';
import { useRouter } from 'next/navigation';
import ArrowPathIcon from '@heroicons/react/20/solid/ArrowPathIcon';
import Squares2X2Icon from '@heroicons/react/20/solid/Squares2X2Icon';
import { Button } from '@inngest/components/Button';
import { Code } from '@inngest/components/Code';
import { CodeLine } from '@inngest/components/CodeLine';
import { Link } from '@inngest/components/Link';
import * as Tabs from '@radix-ui/react-tabs';
import { RiLoopLeftLine } from '@remixicon/react';

import Header from '@/components/Header/Header';
import { setSkipCacheSearchParam } from '@/utils/urls';
Expand All @@ -31,7 +31,7 @@ export default function Page({ params: { environmentSlug } }: Props) {
<section className="mx-auto mt-16 max-w-screen-md overflow-hidden rounded-lg">
<header className="bg-slate-940 px-8 pb-3 pt-6 text-white">
<div className="flex items-center gap-4 pb-4">
<ArrowPathIcon className="h-6 w-6" />
<RiLoopLeftLine className="h-6 w-6" />
<h2 className="text-xl">Sync App</h2>
</div>
<p>Provide the location of your app.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRef } from 'react';
import { Table } from '@inngest/components/Table';
import { IconArrowRight } from '@inngest/components/icons/ArrowRight';
import { RiArrowRightLine } from '@remixicon/react';
import { createColumnHelper, getCoreRowModel } from '@tanstack/react-table';

import { Time } from '@/components/Time';
Expand Down Expand Up @@ -40,7 +40,7 @@ function useColumns(onSelect: (eventID: string) => void) {
onClick={() => onSelect(id)}
>
{id}
<IconArrowRight className="h-3 w-3 -translate-x-3 text-indigo-400 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
<RiArrowRightLine className="h-3 w-3 -translate-x-3 text-indigo-400 opacity-0 transition-all group-hover:translate-x-0 group-hover:opacity-100" />
</button>
);
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';

import { useState } from 'react';
import { ArchiveBoxIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { RiArchive2Line } from '@remixicon/react';

import ArchiveEventModal from './ArchiveEventModal';

Expand All @@ -15,7 +15,7 @@ export default function ArchiveEventButton({ eventName }: ArchiveButtonProps) {
return (
<>
<Button
icon={<ArchiveBoxIcon />}
icon={<RiArchive2Line />}
appearance="outlined"
btnAction={() => setIsArchiveEventModalVisible(true)}
label="Archive Event"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { type Route } from 'next';
import Link from 'next/link';
import { KeyIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { Pill } from '@inngest/components/Pill';
import { RiKey2Fill } from '@remixicon/react';
import { useQuery } from 'urql';

import { useEnvironment } from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/environment-context';
Expand Down Expand Up @@ -109,7 +109,7 @@ export default function LatestLogsList({ environmentSlug, eventName }: LatestLog
</td>
<td>
<Pill>
<KeyIcon className="h-4 pr-1 text-indigo-500" />
<RiKey2Fill className="h-4 pr-1 text-indigo-500" />
{e.source?.name}
</Pill>
</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Link from 'next/link';
import { ChevronRightIcon, CodeBracketSquareIcon } from '@heroicons/react/20/solid';
import { CodeBracketSquareIcon } from '@heroicons/react/20/solid';
import { IconStatusCanceled } from '@inngest/components/icons/status/Canceled';
import { IconStatusCompleted } from '@inngest/components/icons/status/Completed';
import { IconStatusFailed } from '@inngest/components/icons/status/Failed';
import { IconStatusQueued } from '@inngest/components/icons/status/Queued';
import { IconStatusRunning } from '@inngest/components/icons/status/Running';
import { RiArrowRightSLine } from '@remixicon/react';
import { noCase } from 'change-case';
import { titleCase } from 'title-case';

Expand Down Expand Up @@ -92,7 +93,7 @@ export default async function TriggeredFunctionCard({
</dl>
</div>
<div className="shrink-0">
<ChevronRightIcon className="h-5 w-5 text-slate-400" />
<RiArrowRightSLine className="h-5 w-5 text-slate-400" />
</div>
</Link>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client';

import { useEffect } from 'react';
import { ArrowPathIcon, ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { RiLoopLeftLine } from '@remixicon/react';
import * as Sentry from '@sentry/nextjs';

type EventErrorPops = {
Expand All @@ -24,7 +25,7 @@ export default function EventError({ error, reset }: EventErrorPops) {
<Button
appearance="outlined"
iconSide="right"
icon={<ArrowPathIcon className=" text-slate-700" />}
icon={<RiLoopLeftLine className=" text-slate-700" />}
btnAction={() => reset()}
label="Reload"
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client';

import { useEffect } from 'react';
import { ArrowPathIcon, ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { RiLoopLeftLine } from '@remixicon/react';
import * as Sentry from '@sentry/nextjs';

type EventLogsErrorPops = {
Expand All @@ -24,7 +25,7 @@ export default function EventLogsError({ error, reset }: EventLogsErrorPops) {
<Button
appearance="outlined"
iconSide="right"
icon={<ArrowPathIcon className=" text-slate-700" />}
icon={<RiLoopLeftLine className=" text-slate-700" />}
btnAction={() => reset()}
label="Reload"
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client';

import Link from 'next/link';
import { ChartBarIcon, ChevronRightIcon, CodeBracketSquareIcon } from '@heroicons/react/20/solid';
import { CodeBracketSquareIcon } from '@heroicons/react/20/solid';
import { Alert } from '@inngest/components/Alert';
import { RiArrowRightSLine, RiBarChart2Fill } from '@remixicon/react';
import colors from 'tailwindcss/colors';

import Block from '@/components/Block';
Expand Down Expand Up @@ -44,7 +45,7 @@ export default function EventDashboard({ params }: EventDashboardProps) {
<SimpleBarChart
title={
<>
<ChartBarIcon className="text-indigo-40X h-4" fill="#334155" /> Volume
<RiBarChart2Fill className="h-4 text-slate-700" /> Volume
</>
}
period="24 Hours"
Expand Down Expand Up @@ -87,7 +88,7 @@ export default function EventDashboard({ params }: EventDashboardProps) {
/>
)}
</div>
<ChevronRightIcon className="h-5" />
<RiArrowRightSLine className="h-5" />
</div>
</Link>
))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';

import { useState } from 'react';
import { ChartBarIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { Link } from '@inngest/components/Link';
import { HorizontalPillList, Pill, PillContent } from '@inngest/components/Pill';
import { RiBarChart2Fill } from '@remixicon/react';

import { useEnvironment } from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/environment-context';
import SendEventButton from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/events/[eventName]/SendEventButton';
Expand Down Expand Up @@ -157,7 +157,7 @@ function EventTypesListPaginationPage({
<td className="w-60 py-1 pl-2 pr-6">
<div className="flex w-56 items-center justify-end gap-2">
<div className="flex items-center gap-1 align-middle text-slate-600">
<ChartBarIcon className="-ml-0.5 h-3.5 w-3.5 shrink-0 text-indigo-500" />
<RiBarChart2Fill className="-ml-0.5 h-3.5 w-3.5 shrink-0 text-indigo-500" />
<span className="overflow-hidden whitespace-nowrap text-sm text-slate-600">
{dailyVolume.toLocaleString(undefined, {
notation: 'compact',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

import type { Route } from 'next';
import Image from 'next/image';
import { ClipboardIcon, ExclamationTriangleIcon } from '@heroicons/react/20/solid';
import { ExclamationTriangleIcon } from '@heroicons/react/20/solid';
import { Button } from '@inngest/components/Button';
import { RiClipboardLine } from '@remixicon/react';
import { useCopyToClipboard } from 'react-use';
import { toast } from 'sonner';

Expand All @@ -20,7 +21,7 @@ export default function FunctionListNotFound() {
copy(command);
toast.message(
<>
<ClipboardIcon className="h-3" /> Copied to clipboard!
<RiClipboardLine className="h-3 w-3" /> Copied to clipboard!
</>
);
}
Expand Down Expand Up @@ -59,7 +60,7 @@ export default function FunctionListNotFound() {
ease.
</p>
<div className="mt-4 flex flex-row gap-2 rounded-lg bg-slate-800 px-3 py-2 font-mono text-sm text-white">
<ClipboardIcon onClick={copyCommand} className="w-3 cursor-pointer" />
<RiClipboardLine onClick={copyCommand} className="h-3 w-3 cursor-pointer" />
<span>{command}</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import { useMemo } from 'react';
import { type Route } from 'next';
import { ChartBarIcon, ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { ExclamationCircleIcon } from '@heroicons/react/20/solid';
import { Link } from '@inngest/components/Link';
import { Pill, PillContent } from '@inngest/components/Pill';
import { type Trigger } from '@inngest/components/types/trigger';
import { RiBarChart2Fill } from '@remixicon/react';
import {
createColumnHelper,
flexRender,
Expand Down Expand Up @@ -206,7 +207,7 @@ function createColumns(environmentSlug: string) {
className="overflow-hidden whitespace-nowrap text-xs text-slate-600"
>
<div className="flex items-center gap-1 align-middle text-sm text-slate-600">
<ChartBarIcon className="-ml-0.5 h-3.5 w-3.5 shrink-0 text-indigo-500" />
<RiBarChart2Fill className="-ml-0.5 h-3.5 w-3.5 shrink-0 text-indigo-500" />
{value.total.toLocaleString(undefined, {
notation: 'compact',
compactDisplay: 'short',
Expand Down
Loading
Loading