Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function NumberInput({
field.value === undefined || field.value === null ? "" : field.value
}
className={`mt-2 block w-full px-3 py-2
bg-[#fff] dark:bg-transparent border border-background-300 rounded-md
bg-white dark:bg-transparent border border-background-300 rounded-md
text-sm shadow-sm placeholder-text-400
focus:outline-none focus:border-sky-500 focus:ring-1 focus:ring-sky-500
disabled:bg-background-50 disabled:text-text-500 disabled:border-background-200 disabled:shadow-none
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/assistants/mine/AssistantCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const AssistantCard: React.FC<{
router.push(`/chat?assistantId=${persona.id}`);
closeModal();
}}
className="hover:bg-neutral-100 dark:hover:bg-neutral-700 dark:bg-[#2E2E2D] hover:text-neutral-900 dark:hover:text-neutral-100 px-2 py-1 gap-x-1 rounded border border-neutral-400 dark:border-neutral-600 flex items-center"
className="hover:bg-neutral-100 dark:hover:bg-neutral-700 dark:bg-neutral-800 hover:text-neutral-900 dark:hover:text-neutral-100 px-2 py-1 gap-x-1 rounded border border-neutral-400 dark:border-neutral-600 flex items-center"
>
<PencilIcon size={12} className="flex-none" />
<span className="text-xs">Start Chat</span>
Expand All @@ -342,7 +342,7 @@ const AssistantCard: React.FC<{
!pinned
);
}}
className="hover:bg-neutral-100 dark:hover:bg-neutral-700 dark:bg-[#2E2E2D] px-2 group cursor-pointer py-1 gap-x-1 relative rounded border border-neutral-400 dark:border-neutral-600 flex items-center w-[65px]"
className="hover:bg-neutral-100 dark:hover:bg-neutral-700 dark:bg-neutral-800 px-2 group cursor-pointer py-1 gap-x-1 relative rounded border border-neutral-400 dark:border-neutral-600 flex items-center w-[65px]"
>
<PinnedIcon size={12} />
{!pinned ? (
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/assistants/mine/AssistantModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function AssistantModal({ hideModal }: AssistantModalProps) {
onFocus={() => setIsSearchFocused(true)}
onBlur={() => setIsSearchFocused(false)}
type="text"
className="w-full h-full bg-transparent outline-none text-black"
className="w-full h-full bg-transparent outline-none text-strong dark:text-white"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3422,7 +3422,7 @@ export function ChatPage({
currentPersona={liveAssistant}
messageId={-1}
content={
<p className="text-red-700 text-sm my-auto">
<p className="text-red-700 dark:text-red-400 text-sm my-auto">
{loadingError}
</p>
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/chat_search/ChatSearchGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ChatSearchGroup({
}: ChatSearchGroupProps) {
return (
<div className="mb-4">
<div className="sticky -top-1 mt-1 z-10 bg-[#fff]/90 dark:bg-neutral-800/90 py-2 px-4 px-4">
<div className="sticky -top-1 mt-1 z-10 bg-white/90 dark:bg-neutral-800/90 py-2 px-4 px-4">
<div className="text-xs font-medium leading-4 text-neutral-600 dark:text-neutral-400">
{title}
</div>
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/folders/FolderDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ export const FolderDropdown = forwardRef<HTMLDivElement, FolderDropdownProps>(
>
<div
ref={ref}
className="flex overflow-visible items-center w-full text-text-darker rounded-md p-1 bg-background-sidebar dark:bg-[#000] relative sticky top-0"
className="flex overflow-visible items-center w-full text-text-darker rounded-md p-1 bg-background-sidebar dark:bg-neutral-950 relative sticky top-0"
style={{ zIndex: 10 - index }}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
<button
className="flex overflow-hidden bg-background-sidebar dark:bg-[#000] items-center flex-grow"
className="flex overflow-hidden bg-background-sidebar dark:bg-neutral-950 items-center flex-grow"
onClick={() => !isEditing && setIsOpen(!isOpen)}
{...(isEditing ? {} : listeners)}
>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/input-prompts/InputPrompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const PromptCard: React.FC<PromptCardProps> = ({
}, []);

return (
<div className="border dark:border-none dark:bg-[#333333] rounded-lg p-4 mb-4 relative">
<div className="border dark:border-none dark:bg-neutral-700 rounded-lg p-4 mb-4 relative">
{isEditing ? (
<>
<div className="absolute top-2 right-2">
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/input-prompts/PromptCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const PromptCard = ({
};

return (
<div className="border dark:border-none dark:bg-[#333333] rounded-lg p-4 mb-4 relative">
<div className="border dark:border-none dark:bg-neutral-700 rounded-lg p-4 mb-4 relative">
{isEditing ? (
<>
<div className="absolute top-2 right-2">
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/input/AgenticToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export function AgenticToggle({
className={`
${
proSearchEnabled
? "border-background-200 group-hover:border-[#000] dark:group-hover:border-neutral-300"
: "border-background-200 group-hover:border-[#000] dark:group-hover:border-neutral-300"
? "border-background-200 group-hover:border-black dark:group-hover:border-neutral-300"
: "border-background-200 group-hover:border-black dark:group-hover:border-neutral-300"
}
relative inline-flex h-[16px] w-8 items-center rounded-full transition-colors focus:outline-none border animate transition-all duration-200 border-background-200 group-hover:border-[1px] `}
>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/input/ChatInputBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ export function ChatInputBar({
resize-none
px-5
py-4
dark:text-[#D4D4D4]
dark:text-neutral-300
`}
autoFocus
style={{ scrollbarWidth: "thin" }}
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/input/LLMPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function LLMPopover({
? () => trigger
: () => (
<button
className="dark:text-[#fff] text-[#000] focus:outline-none"
className="dark:text-white text-black focus:outline-none"
data-testid="llm-popover-trigger"
>
<ChatInputOption
Expand Down Expand Up @@ -154,7 +154,7 @@ export default function LLMPopover({
>
{icon({
size: 16,
className: "flex-none my-auto text-black",
className: "flex-none my-auto text-strong dark:text-white",
})}
<TruncatedText text={getDisplayNameForModel(modelName)} />
{(() => {
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/message/AgenticMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export const AgenticMessage = ({
<>
<div className="w-full py-4 flex flex-col gap-4">
<div className="flex items-center gap-x-2 px-4">
<div className="text-black text-lg font-medium">
<div className="text-strong dark:text-white text-lg font-medium">
Answer
</div>
</div>
Expand All @@ -502,7 +502,7 @@ export const AgenticMessage = ({
</>
) : isComplete ? (
error && (
<p className="mt-2 mx-4 text-red-700 text-sm my-auto">
<p className="mt-2 mx-4 text-red-700 dark:text-red-400 text-sm my-auto">
<ErrorBanner error={error} resubmit={resubmit} />
</p>
)
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/message/Resubmit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ErrorBanner = ({
resubmit?: () => void;
}) => {
return (
<div className="text-red-700 mt-4 text-sm my-auto">
<div className="text-red-700 dark:text-red-400 mt-4 text-sm my-auto">
<Alert variant="broken">
<AlertCircle className="h-4 w-4" />
<AlertTitle>Error</AlertTitle>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/message/SourcesDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const SourcesDisplay: React.FC<SourcesDisplayProps> = ({
}`}
>
<div className="flex items-center px-4">
<div className="text-black text-lg font-medium">Sources</div>
<div className="text-strong dark:text-white text-lg font-medium">Sources</div>
</div>
<div
className={`grid w-full ${
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/message/SubQuestionsDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ const SubQuestionDisplay: React.FC<{
className="flex -mx-2 rounded-md px-2 hover:bg-background-100 dark:hover:bg-neutral-800 items-start py-1.5 my-.5 cursor-pointer"
onClick={() => setToggled(!toggled)}
>
<div className="text-black text-base font-medium leading-normal flex-grow pr-2">
<div className="text-strong dark:text-white text-base font-medium leading-normal flex-grow pr-2">
{subQuestion?.question || temporaryDisplay?.question}
</div>
<ChevronDown
Expand Down Expand Up @@ -407,7 +407,7 @@ const SubQuestionDisplay: React.FC<{
);
})
) : (
<div className="text-black text-sm font-medium">
<div className="text-strong dark:text-white text-sm font-medium">
No sources found
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/my-documents/MyDocumenItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function FolderItem({
onDrop={(e) => onDrop(e, folder.id)}
>
<div className="flex items-center">
<FolderIcon className="h-5 w-5 text-black dark:text-black shrink-0 fill-black dark:fill-black" />
<FolderIcon className="h-5 w-5 text-neutral-700 dark:text-neutral-300 shrink-0 fill-neutral-700 dark:fill-neutral-300" />
{isEditing ? (
<div className="flex items-center">
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export const DocumentList: React.FC<DocumentListProps> = ({
{uploadingFiles.map((uploadingFile, index) => (
<div
key={`uploading-${index}`}
className={`group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-[#f2f0e8]/50 dark:hover:bg-[#1a1a1a]/50 py-4 px-4 transition-all ease-in-out ${
className={`group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 py-4 px-4 transition-all ease-in-out ${
completedFiles.includes(uploadingFile.name)
? "bg-green-50/30 dark:bg-green-900/10"
: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const FileListItem: React.FC<FileListItemProps> = ({

return (
<div
className="group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-[#f2f0e8]/50 dark:hover:bg-[#1a1a1a]/50 py-3 px-4 transition-all ease-in-out"
className="group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 py-3 px-4 transition-all ease-in-out"
onClick={(e) => {
if (!(e.target as HTMLElement).closest(".action-menu")) {
onSelect && onSelect(file);
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/my-documents/components/FilePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const FilePickerFolderItem: React.FC<{
>
<div className="flex items-center flex-1 min-w-0" onClick={onClick}>
<div className="flex text-sm items-center gap-2 w-[65%] min-w-0">
<FolderIcon className="h-5 w-5 text-black dark:text-black shrink-0 fill-black dark:fill-black" />
<FolderIcon className="h-5 w-5 text-neutral-700 dark:text-neutral-300 shrink-0 fill-neutral-700 dark:fill-neutral-300" />

{folder.name.length > 40 ? (
<TooltipProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SearchResultItem: React.FC<SearchResultItemProps> = ({
<a
className={`flex items-center flex-grow ${
view === "list" ? "w-full" : "w-4/5"
} p-3 rounded-lg hover:bg-[#F3F2EA]/60 transition-colors duration-200`}
} p-3 rounded-lg hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 transition-colors duration-200`}
href="#"
onClick={(e) => {
e.preventDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const SelectedItemsList: React.FC<SelectedItemsListProps> = ({
)}
>
<div className="flex items-center min-w-0 flex-1">
<FolderIcon className="h-5 w-5 mr-2 text-black dark:text-black shrink-0 fill-black dark:fill-black" />
<FolderIcon className="h-5 w-5 mr-2 text-neutral-700 dark:text-neutral-300 shrink-0 fill-neutral-700 dark:fill-neutral-300" />

<span className="text-sm font-medium truncate text-neutral-800 dark:text-neutral-100">
{truncateString(folder.name, 34)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const SharedFolderItem: React.FC<SharedFolderItemProps> = ({
return (
<>
<div
className="group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-[#f2f0e8]/50 dark:hover:bg-[#1a1a1a]/50 py-3 px-4 transition-all ease-in-out"
className="group relative flex cursor-pointer items-center border-b border-border dark:border-border-200 hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 py-3 px-4 transition-all ease-in-out"
onClick={(e) => {
if (!(e.target as HTMLElement).closest(".action-menu")) {
e.preventDefault();
Expand All @@ -55,7 +55,7 @@ export const SharedFolderItem: React.FC<SharedFolderItemProps> = ({
>
<div className="flex items-center flex-1 min-w-0">
<div className="flex items-center gap-3 w-[40%]">
<FolderIcon className="h-5 w-5 text-black dark:text-black shrink-0 fill-black dark:fill-black" />
<FolderIcon className="h-5 w-5 text-neutral-700 dark:text-neutral-300 shrink-0 fill-neutral-700 dark:fill-neutral-300" />
{folder.name.length > 50 ? (
<TooltipProvider>
<Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/shared/[chatId]/SharedChatDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export function SharedChatDisplay({
currentPersona={persona}
messageId={message.messageId}
content={
<p className="text-red-700 text-sm my-auto">
<p className="text-red-700 dark:text-red-400 text-sm my-auto">
{message.message}
</p>
}
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/Hoverable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Hoverable: React.FC<{
<div className="flex items-center">
<Icon
size={size}
className="dark:text-[#B4B4B4] text-neutral-600 rounded h-fit cursor-pointer"
className="dark:text-neutral-400 text-neutral-600 rounded h-fit cursor-pointer"
/>
{hoverText && (
<div className="max-w-0 leading-none whitespace-nowrap overflow-hidden transition-all duration-300 ease-in-out group-hover:max-w-xs group-hover:ml-2">
Expand All @@ -35,7 +35,7 @@ export const HoverableIcon: React.FC<{
}> = ({ icon, onClick }) => {
return (
<div
className="hover:bg-background-chat-hover dark:text-[#B4B4B4] text-neutral-600 p-1.5 rounded h-fit cursor-pointer"
className="hover:bg-background-chat-hover dark:text-neutral-400 text-neutral-600 p-1.5 rounded h-fit cursor-pointer"
onClick={onClick}
>
{icon}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "./spinner.css";

export const Spinner = () => {
return (
<div className="fixed top-0 left-0 z-50 w-screen h-screen bg-[#000] bg-opacity-50 flex items-center justify-center">
<div className="fixed top-0 left-0 z-50 w-screen h-screen bg-black bg-opacity-50 flex items-center justify-center">
<div className="loader ease-linear rounded-full border-8 border-t-8 border-background-200 h-8 w-8"></div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/UserDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DropdownOption: React.FC<DropdownOptionProps> = ({
openInNewTab,
}) => {
const content = (
<div className="flex py-1.5 text-sm px-2 gap-x-2 text-black text-sm cursor-pointer rounded hover:bg-background-300">
<div className="flex py-1.5 text-sm px-2 gap-x-2 text-strong dark:text-neutral-200 text-sm cursor-pointer rounded hover:bg-background-300">
{icon}
{label}
</div>
Expand Down Expand Up @@ -176,7 +176,7 @@ export function UserDropdown({
border
border-border
bg-background
dark:bg-[#2F2F2F]
dark:bg-neutral-800
rounded-lg
shadow-lg
flex
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/admin/CardSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function CardSection({
return (
<div
className={cn(
"p-6 border bg-[#fff] dark:bg-neutral-800 rounded border-neutral-200 dark:border-neutral-700",
"p-6 border bg-white dark:bg-neutral-800 rounded border-neutral-200 dark:border-neutral-700",
className
)}
>
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/admin/ClientLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export function ClientLayout({
</div>
)}

<div className="default-scrollbar flex-none text-text-settings-sidebar bg-background-sidebar dark:bg-[#000] w-[250px] overflow-x-hidden z-20 pt-2 pb-8 h-full border-r border-border dark:border-none miniscroll overflow-auto">
<div className="default-scrollbar flex-none text-text-settings-sidebar bg-background-sidebar dark:bg-neutral-950 w-[250px] overflow-x-hidden z-20 pt-2 pb-8 h-full border-r border-border dark:border-none miniscroll overflow-auto">
<AdminSidebar
collections={collections(
isCurator,
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/admin/connectors/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Warning } from "@phosphor-icons/react";
import { NEXT_PUBLIC_INCLUDE_ERROR_POPUP_SUPPORT_LINK } from "@/lib/constants";

const popupVariants = cva(
"fixed bottom-4 left-4 p-4 rounded-lg shadow-xl text-[#fff] z-[10000] flex items-center space-x-3 transition-all duration-300 ease-in-out",
"fixed bottom-4 left-4 p-4 rounded-lg shadow-xl text-white z-[10000] flex items-center space-x-3 transition-all duration-300 ease-in-out",
{
variants: {
type: {
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/assistants/AssistantCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const AssistantCard = ({
<AssistantIcon size="xs" assistant={assistant} />
<div className="overflow-hidden text-ellipsis break-words flex-grow">
<div className="flex items-start justify-start gap-2">
<span className="line-clamp-1 text-sm text-black font-semibold leading-tight">
<span className="line-clamp-1 text-sm text-strong dark:text-neutral-200 font-semibold leading-tight">
{assistant.name}
</span>
{assistant.tools.map((tool, index) => (
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/embedding/EmbeddingSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function EmbeddingSidebar() {
<div className="mx-3 mt-6 gap-y-1 flex-col flex gap-x-1.5 items-center items-center">
<Link
href={"/admin/configuration/search"}
className="w-full p-2 bg-[#fff] dark:bg-neutral-950 border-border border dark:border-neutral-800 dark:hover:bg-neutral-900 rounded items-center hover:bg-background-200 cursor-pointer transition-all duration-150 flex gap-x-2"
className="w-full p-2 bg-white dark:bg-neutral-950 border-border border dark:border-neutral-800 dark:hover:bg-neutral-900 rounded items-center hover:bg-background-200 cursor-pointer transition-all duration-150 flex gap-x-2"
>
<SettingsIcon className="flex-none " />
<p className="my-auto flex items-center text-sm">
Expand Down
Loading
Loading