-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detailed Web Scrape UI & Supported File Types overhaul (#38)
* initial draft of input form layout * Improved UI settings form format * added tooltips to web scrape parameters inputs * moved all web scrape ui code into WebScrape.tsx * add conditonal display of boxes, must have URL entered * added web scrape parameters to function call * changed web scrape parameters to be more readable * standardize naming of stayOnBaseURL * adding 'read more' toggle to supported filetypes. TODO add better content and examples * fixed drop down coloring * corrected input checking; Added Github scrape msg * Added Max URLs and Max Depth ranges into label * center aligned Read More for web scrape info * fixed guthub message * maxUrls and maxDepth -1 bc 0 indexed * Update Terms, Privacy to UIUC standard ones * fixed type error for vercel check * removed unused functions/imports * fixed input check to ensure only numbers present * fixed vercel error from ' instead of &apos * fixed &apos in github msg * tooltips: Adding more text, set widths and dark backgrounds * add nice coloring and examples to READ MORE accordian * Major refactor of Supported File Types, no more 'Under development...' were done! * tiny typo fix * FORMAT FIX ONLY --------- Co-authored-by: Kastan Day <[email protected]>
- Loading branch information
1 parent
0d9e05b
commit 1ebb6a7
Showing
12 changed files
with
530 additions
and
206 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
// LargeDropzone.tsx | ||
import React, { useRef, useState } from 'react' | ||
import { createStyles, Group, rem, Text, Title, useMantineTheme } from '@mantine/core' | ||
import { IconAlertCircle, IconCloudUpload, IconDownload, IconX } from '@tabler/icons-react' | ||
import { | ||
createStyles, | ||
Group, | ||
rem, | ||
Text, | ||
Title, | ||
useMantineTheme, | ||
} from '@mantine/core' | ||
import { | ||
IconAlertCircle, | ||
IconCloudUpload, | ||
IconDownload, | ||
IconX, | ||
} from '@tabler/icons-react' | ||
import { Dropzone } from '@mantine/dropzone' | ||
import { useRouter } from 'next/router' | ||
import { type CourseMetadata } from '~/types/courseMetadata' | ||
|
@@ -264,7 +276,6 @@ export function LargeDropzone({ | |
setUploadInProgress(false) | ||
refreshOrRedirect(redirect_to_gpt_4) | ||
// TODO: here we should raise toast for failed ingest files. AND successful ingest files. | ||
|
||
} else { | ||
console.error('Upsert metadata failed') | ||
setUploadInProgress(false) | ||
|
@@ -274,7 +285,7 @@ export function LargeDropzone({ | |
radius="md" | ||
bg="#0E1116" | ||
disabled={isDisabled} | ||
// #0E1116 -- nice dark | ||
// #0E1116 -- nice dark | ||
> | ||
<div | ||
style={{ pointerEvents: 'none', opacity: isDisabled ? 0.6 : 1 }} | ||
|
@@ -394,7 +405,9 @@ const showToast = (error_files: string[]) => { | |
autoClose: 15000, | ||
// position="top-center", | ||
title: 'Failed to ingest files', | ||
message: `Failed to ingest the following files: ${error_files.join(", ")}. Please shoot me an email: [email protected].`, | ||
message: `Failed to ingest the following files: ${error_files.join( | ||
', ', | ||
)}. Please shoot me an email: [email protected].`, | ||
color: 'red', | ||
radius: 'lg', | ||
icon: <IconAlertCircle />, | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
1ebb6a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
uiuc-chat – ./
uiuc-chat-kastanday.vercel.app
*.uiuc.chat
www.illinois.guru
learning-t3.vercel.app
uiuc-chat-git-main-kastanday.vercel.app
illinois.guru
www.uiuc.chat