Skip to content

feat: update home prompt input and dynamic tagline#182

Merged
urjitc merged 1 commit into
mainfrom
feature/home-prompt-and-tagline-clean
Feb 8, 2026
Merged

feat: update home prompt input and dynamic tagline#182
urjitc merged 1 commit into
mainfrom
feature/home-prompt-and-tagline-clean

Conversation

@urjitc

@urjitc urjitc commented Feb 8, 2026

Copy link
Copy Markdown
Member

Contributors: @ibraheemshaikh5


Important

Updates DynamicTagline text and styling, and enhances HomePromptInput with new placeholders, PDF handling, and dynamic typing.

  • DynamicTagline:
    • Updates tagline text to "Docs, notes, and videos in one workspace".
    • Changes font weight to font-light and adds tracking-tight.
  • HomePromptInput:
    • Updates placeholder options to focus on study and organization tasks.
    • Adds dynamic typing effect for "Ask ThinkEx to" prefix.
    • Handles PDF uploads with auto-populated input based on file count.
    • Constructs initial state with PDF cards and placeholder cards if files are uploaded.
    • Removes unused image upload code.
    • Adjusts input styling and behavior for better user experience.

This description was created by Ellipsis for 8f95c44. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added intro typing sequence animation for prompt input
    • Introduced URL input dialog for adding links
    • Added dedicated Upload PDF and Add URL action buttons
  • Updates

    • Updated home workspace heading text
    • Redesigned prompt input interface for improved usability
    • Enhanced PDF upload handling with auto-population

@vercel

vercel Bot commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
thinkex Building Building Preview, Comment Feb 8, 2026 3:50am

@urjitc
urjitc merged commit d316f94 into main Feb 8, 2026
4 of 6 checks passed

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to 8f95c44 in 7 seconds. Click for details.
  • Reviewed 716 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.

Workflow ID: wflow_DyS0GQeg1awJs4Fl

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@urjitc
urjitc deleted the feature/home-prompt-and-tagline-clean branch February 8, 2026 03:50
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Dev Board Feb 8, 2026
@coderabbitai

coderabbitai Bot commented Feb 8, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The PR updates the home page's main tagline text and styling, and substantially restructures the prompt input component to include an intro typing sequence, improved PDF/URL upload handling with drag-drop support, and simplified placeholder logic with conditional prefix typing.

Changes

Cohort / File(s) Summary
Home page tagline
src/components/home/DynamicTagline.tsx
Updated heading text and changed font styling from font-medium to font-light with tracking-tight for visual refinement.
Prompt input component restructuring
src/components/home/HomePromptInput.tsx
Introduced intro typing sequence with new state management (introComplete, prefixTyped, typedPrefix); restructured placeholder handling to conditionally show typed prefix; added explicit PDF upload with drag-drop support and file validation; introduced Upload PDF and Add URL action buttons; refactored initial state logic to account for uploads; simplified UI layout with removed dropdown menu and reintroduced submit button.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~50 minutes

Possibly related PRs

  • Prompt workspace pdf #161: Modifies PDF upload, drag-drop handling, and workspace creation logic in HomePromptInput.tsx with overlapping state and upload management patterns.
  • Autogen workspace UI enhancements #144: Updates placeholder typing behavior and placeholder options in HomePromptInput.tsx, directly intersecting with the new intro typing sequence and prefix typing logic.

Poem

🐰 A tagline shifts, so fresh and light,
While inputs dance with typing's might!
PDFs flow through drag-and-drop,
New sequences rise, no need to stop—
The workspace glows, a cozy sight! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/home-prompt-and-tagline-clean

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

sonarqubecloud Bot commented Feb 8, 2026

Copy link
Copy Markdown

@greptile-apps

greptile-apps Bot commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

Updates the home hero experience by:

  • Changing the static tagline copy/typography.
  • Refactoring HomePromptInput to use an animated placeholder (intro text → typed prefix → rotating suggestions), a simplified attachment UI (PDF upload + URL dialog), and updated initial workspace state construction when PDFs are present.

The main integration remains the same: PDFs are uploaded via usePdfUpload, workspace creation goes through useCreateWorkspaceFromPrompt, and navigation is handled by Next.js router.push with query params (including action=generate_study_materials when uploads exist).

Confidence Score: 4/5

  • Mostly safe to merge once unused imports/vars are cleaned up to satisfy lint/typecheck.
  • Changes are localized to UI components and preserve core workspace creation flow. The only concrete merge-blocker found is unused imports/variables in HomePromptInput.tsx, which commonly fail CI under standard TS/ESLint settings.
  • src/components/home/HomePromptInput.tsx

Important Files Changed

Filename Overview
src/components/home/DynamicTagline.tsx Updates home hero tagline copy and typography classes; no functional changes.
src/components/home/HomePromptInput.tsx Refactors prompt input UI with new typing placeholder and attachment actions; introduces unused imports/vars that can break lint/tsc if noUnused* is enforced.

Sequence Diagram

sequenceDiagram
  participant U as User
  participant H as HomePromptInput
  participant DZ as react-dropzone
  participant UP as usePdfUpload
  participant API as useCreateWorkspaceFromPrompt
  participant R as Next Router

  U->>H: Type prompt / press Enter
  H->>API: mutate(prompt, {template, initialState})
  API-->>H: onSuccess(workspace)
  H->>UP: clearFiles()
  H->>R: push(/workspace/:slug?params)

  U->>DZ: Drag & drop PDFs
  DZ-->>H: onDrop(acceptedFiles)
  H->>UP: uploadFiles(acceptedFiles)
  UP-->>H: uploadedFiles updated
  H-->>U: toast success / error
Loading

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

import { usePdfUpload } from "@/hooks/workspace/use-pdf-upload";
import { ArrowUp, FileText, Loader2, Plus, Upload, X, Link as LinkIcon } from "lucide-react";
// import { useImageUpload } from "@/hooks/workspace/use-image-upload";
import { ArrowUp, FileText, Loader2, Upload, X, Link as LinkIcon } from "lucide-react";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused imports cause lint fail

resolvedTheme (line 59) and baseText (line 51) are unused, and Button is imported but never used as a JSX component (only <button> is used). If this repo runs eslint/tsc with noUnusedLocals/noUnusedVars, this will fail CI.

Suggested change
import { ArrowUp, FileText, Loader2, Upload, X, Link as LinkIcon } from "lucide-react";
import { useState, useRef, useMemo, useEffect } from "react";
import { useRouter } from "next/navigation";
import { toast } from "sonner";
import { useCreateWorkspaceFromPrompt } from "@/hooks/workspace/use-create-workspace";
import { usePdfUpload } from "@/hooks/workspace/use-pdf-upload";
// import { useImageUpload } from "@/hooks/workspace/use-image-upload";
import { ArrowUp, FileText, Loader2, Upload, X, Link as LinkIcon } from "lucide-react";
// import { ImageIcon } from "lucide-react";
import { cn } from "@/lib/utils";
import { Input } from "@/components/ui/input";
import TypingText from "@/components/ui/typing-text";
import { useDropzone } from "react-dropzone";

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant