Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
859175e
fix create chat page styles
cholson Aug 8, 2025
e73d82c
move changes to this branch
cholson Aug 11, 2025
6aa5e39
more changes to new chatbot wizard
cholson Aug 13, 2025
d4871a2
Merge branch 'illinois-chat' into new-chatbot-wizard
cholson Aug 13, 2025
382c4a9
fix text icon color for upload list
cholson Aug 13, 2025
c631469
adjusted labels
cholson Aug 14, 2025
2985875
Merge branch 'illinois-chat' into new-chatbot-wizard
cholson Aug 14, 2025
03317ad
more new chatbot wizard changes
cholson Aug 29, 2025
cd12f49
Merge branch 'illinois-chat' into new-chatbot-wizard
cholson Sep 25, 2025
b26ea06
add step for prompts and LLM
ckouder Jan 13, 2026
cb938a2
add loading state for import and upload step
ckouder Jan 14, 2026
cbd857f
combine upload with import step
ckouder Jan 14, 2026
07655c5
fix loading status
ckouder Jan 15, 2026
fa598e6
use footer for navigation button
ckouder Jan 15, 2026
8bd46ca
remove global footer
ckouder Jan 15, 2026
a4d56e1
update appearance on last step
ckouder Jan 15, 2026
9901d01
remove unused file
ckouder Jan 15, 2026
e42e738
fix building error
ckouder Jan 15, 2026
e1815cb
prevent notification from hindering next button
ckouder Jan 15, 2026
a43a59c
update prompt
ckouder Jan 15, 2026
257abfc
address github comment from copilot
ckouder Jan 15, 2026
f89b10c
Update src/components/UIUC-Components/navbars/Navbar.tsx
ckouder Jan 15, 2026
ed93fbf
Update src/components/UIUC-Components/BrandingForm.tsx
ckouder Jan 15, 2026
08f1882
Merge branch 'illinois-chat' into new-chatbot-wizard
ckouder Jan 16, 2026
fdc56a3
solve merge conflicts
ckouder Jan 16, 2026
f347975
fix course name availability issue; remove unused code
ckouder Jan 16, 2026
2b9f2fd
trunk fmt
ckouder Jan 16, 2026
8a03d3f
fix building issue
ckouder Jan 16, 2026
03d9918
fix prompt button
ckouder Jan 16, 2026
d3f0630
Merge branch 'illinois-chat' into new-chatbot-wizard
ckouder Jan 29, 2026
537eb01
Merge branch 'illinois-chat' into new-chatbot-wizard
ckouder Jan 29, 2026
af11a12
design audit: update step sequence
ckouder Jan 29, 2026
1a8ed0e
design audit: update llm input layout
ckouder Jan 29, 2026
7efb424
add start chatting button
ckouder Jan 29, 2026
2926d01
update corner radius
ckouder Jan 29, 2026
a073525
design audit: update dropdown style
ckouder Jan 29, 2026
fd8b8c8
design audit: update button color
ckouder Jan 29, 2026
27bf9f7
WIP: design audit: update spacing
ckouder Jan 29, 2026
9387bb1
specify node version
ckouder Jan 29, 2026
4a5db10
design audit: update provider input card style
ckouder Jan 29, 2026
126844e
update title font
ckouder Feb 4, 2026
b230a5f
update spacing
ckouder Feb 4, 2026
4cda5b9
update color
ckouder Feb 4, 2026
9fd86a2
WIP: refactor provider card
ckouder Feb 4, 2026
852b021
fix spacing in card
ckouder Feb 4, 2026
c3fec71
fix spacing in card
ckouder Feb 4, 2026
7636882
update provider card style
ckouder Feb 4, 2026
7f562b2
adjust spacing on provider card
ckouder Feb 4, 2026
d92b3e0
WIP: update switch style
ckouder Feb 4, 2026
c2454ed
refactor switch
ckouder Feb 4, 2026
553d1cf
update switch style
ckouder Feb 5, 2026
890ed9d
update heading and skeleton
ckouder Feb 5, 2026
24480e7
WIP: add EmbedPromptEditor
ckouder Feb 5, 2026
05e805e
WIP: add new input field
ckouder Feb 5, 2026
cc0e31f
Merge branch 'update-input-field' into new-chatbot-wizard
ckouder Feb 5, 2026
eed6fc8
update wizard name input; show error when name is taken
ckouder Feb 5, 2026
9383484
update example question interaction
ckouder Feb 5, 2026
cacea48
update button style on branding form
ckouder Feb 5, 2026
3c962ec
keep at least one input field for example question
ckouder Feb 5, 2026
4c24114
update button style
ckouder Feb 5, 2026
266743a
show skeleton when loading
ckouder Feb 5, 2026
6d0e122
update font in prompt editor
ckouder Feb 5, 2026
48fb1e9
deprecate custom switch
ckouder Feb 5, 2026
028379f
adjust styles slightly
ckouder Feb 5, 2026
d2a3b39
update node version
ckouder Feb 5, 2026
16434e6
Merge branch 'illinois-chat' into new-chatbot-wizard
ckouder Feb 5, 2026
2d51760
fix tests
ckouder Feb 5, 2026
9cd8ec0
add a draft dir for work
ckouder Feb 5, 2026
49e3b86
update default
ckouder Feb 6, 2026
3a9d1bb
address feedback from rohan
ckouder Feb 10, 2026
7494e30
update switch button style
ckouder Feb 10, 2026
4306885
update tests for SetExampleQuestions
ckouder Feb 11, 2026
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ tests_output/

# IDE
.idea

# create a drafts directory to store draft code/docs for later use
drafts/
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.12.0
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.12.0
60 changes: 25 additions & 35 deletions src/components/Modals/LinkGeneratorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ import {
Modal,
Text,
Flex,
Divider,
TextInput,
Group,
Button,
CopyButton,
Paper,
} from '@mantine/core'
import { montserrat_heading, montserrat_paragraph } from 'fonts'
import { IconCheck, IconCopy } from '@tabler/icons-react'
import CustomSwitch from '~/components/Switches/CustomSwitch'
import { Switch } from '@/components/shadcn/ui/switch'

interface LinkGeneratorModalProps {
opened: boolean
Expand Down Expand Up @@ -78,11 +75,7 @@ export const LinkGeneratorModal = ({
opened={opened}
onClose={onClose}
title={
<Text
className={`${montserrat_heading.variable} font-montserratHeading`}
size="lg"
weight={700}
>
<Text size="lg" weight={700}>
Generate Shareable Link
</Text>
}
Expand Down Expand Up @@ -115,11 +108,7 @@ export const LinkGeneratorModal = ({
}}
>
<Flex direction="column" gap="xl">
<Text
className={`${montserrat_paragraph.variable} font-montserratParagraph`}
size="sm"
style={{ lineHeight: 1.5 }}
>
<Text size="sm" style={{ lineHeight: 1.5 }}>
Configure AI behavior settings for your shareable link. These settings
will enable specific behaviors when users access the chat through this
link. Note: If a setting is enabled course-wide, enabling it here will
Expand All @@ -128,52 +117,54 @@ export const LinkGeneratorModal = ({
</Text>

<Flex direction="column" gap="md">
<CustomSwitch
<Switch
variant="labeled"
size="lg"
showLabels
showThumbIcon
label="Guided Learning"
tooltip={
currentSettings.guidedLearning
? 'This setting is currently enabled course-wide. Enabling it here will ensure it stays active even if course settings change.'
: 'Enable guided learning mode for this link. The AI will encourage independent problem-solving by providing hints and questions instead of direct answers.'
}
checked={linkSettings.guidedLearning}
onChange={(checked) =>
handleSettingChange('guidedLearning')(checked)
}
onCheckedChange={handleSettingChange('guidedLearning')}
/>

<CustomSwitch
<Switch
variant="labeled"
size="lg"
showLabels
showThumbIcon
label="Document-Based References Only"
tooltip={
currentSettings.documentsOnly
? 'This setting is currently enabled course-wide. Enabling it here will ensure it stays active even if course settings change.'
: "Restrict AI to only use information from provided documents. The AI will not use external knowledge or make assumptions beyond the documents' content."
}
checked={linkSettings.documentsOnly}
onChange={(checked) =>
handleSettingChange('documentsOnly')(checked)
}
onCheckedChange={handleSettingChange('documentsOnly')}
/>

<CustomSwitch
label="Bypass UIUC.chat's internal prompting"
<Switch
variant="labeled"
size="lg"
showLabels
showThumbIcon
label="Bypass Illinois Chat's internal prompting"
tooltip={
currentSettings.systemPromptOnly
? 'This setting is currently enabled course-wide. Enabling it here will ensure it stays active even if course settings change.'
: "Use raw system prompt without additional internal prompting. This bypasses UIUC.chat's built-in prompts for citations and helpfulness."
: "Use raw system prompt without additional internal prompting. This bypasses Illinois Chat's built-in prompts for citations and helpfulness."
}
checked={linkSettings.systemPromptOnly}
onChange={(checked) =>
handleSettingChange('systemPromptOnly')(checked)
}
onCheckedChange={handleSettingChange('systemPromptOnly')}
/>
</Flex>

<Flex direction="column" gap="md">
<Text
size="sm"
weight={600}
className={`${montserrat_paragraph.variable} font-montserratParagraph`}
>
<Text size="sm" weight={600}>
Generated Link
</Text>

Expand All @@ -188,7 +179,7 @@ export const LinkGeneratorModal = ({
>
<Text
size="sm"
className={`${montserrat_paragraph.variable} font-montserratParagraph text-[--modal-text]`}
className={`text-[--modal-text]`}
style={{
lineHeight: 1.5,
}}
Expand All @@ -204,7 +195,6 @@ export const LinkGeneratorModal = ({
variant="filled"
radius="md"
onClick={copy}
className={`${montserrat_paragraph.variable} font-montserratParagraph`}
leftIcon={
copied ? <IconCheck size={16} /> : <IconCopy size={16} />
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* -------------------------------------------------------------------------- */
/* WARNING: DEPRECATED!!! */
/* -------------------------------------------------------------------------- */
// Use components/shadcn/ui/switch instead

import React, { useState } from 'react'
import { Switch, Tooltip, Text } from '@mantine/core'
import { IconCheck, IconInfoCircle, IconX } from '@tabler/icons-react'
Expand Down Expand Up @@ -133,11 +138,6 @@ const CustomSwitch: React.FC<CustomSwitchProps> = ({
>
<span
className="ml-2 cursor-pointer transition-transform duration-200 ease-in-out"
style={
{
/* transform: !disabled && isContainerHovered ? 'scale(1.1)' : 'scale(1)', */
}
}
onClick={(e) => e.stopPropagation()}
>
<IconInfoCircle
Expand Down
Loading