Skip to content

Comments

ENG-7370: Bring back prompt box#1587

Merged
Kastier1 merged 32 commits intomainfrom
carlos/prompt-box-again
Sep 11, 2025
Merged

ENG-7370: Bring back prompt box#1587
Kastier1 merged 32 commits intomainfrom
carlos/prompt-box-again

Conversation

@carlosabadia
Copy link
Collaborator

No description provided.

@linear
Copy link

linear bot commented Aug 18, 2025

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR introduces a comprehensive interactive prompt box component that replaces the previous simple video demo in the hero section of the landing page. The changes transform a static hero section into a fully functional AI app builder entry point.

The implementation adds a complete SubmitPromptState class that manages:

  • File upload handling with drag-and-drop functionality
  • Form submission to the AI builder backend
  • Image data management and validation
  • Integration with external backend services for AI app generation

The UI components include preset prompt cards for quick-start options, image upload functionality with size validation (10MB limit), image preview with hover cards, and proper error handling with toast notifications. The redirect_to_ai_builder method handles form submission and API calls to the backend, while the handle_upload method processes file uploads with comprehensive validation.

This change aligns with Reflex's AI builder feature, providing users with an interactive interface to submit text prompts and images to generate applications. The extensive file upload functionality supports image-to-app generation capabilities, making the landing page a direct gateway to the AI builder service rather than just a informational page.

Confidence score: 3/5

  • This PR introduces significant functionality but has several code quality issues that should be addressed before merging
  • Score reflects concerns about code organization, unused functions, hardcoded values, and potential security considerations around file uploads
  • Pay close attention to the file upload validation logic and backend integration in pcweb/pages/landing/views/hero.py

1 file reviewed, 4 comments

Edit Code Review Bot Settings | Greptile

@Kastier1
Copy link
Contributor

When the user is not logged in it takes them to gen/loading/ page but it gets stuck there.

masenf and others added 23 commits September 5, 2025 17:36
* Fix the existing broken example due to using JSX syntax in a JS file.
* Add more explanation about using rx.asset
* Add example of including CSS import
* Add important consideration and usecase bullets
* streamlit reflex blog

* small fix

* add new image

---------

Co-authored-by: Tom Gotsman <tomgotsman@Toms-MacBook-Pro-4.local>
Co-authored-by: Alek Petuskey <alekpetuskey@gmail.com>
* ENG-7375: AI builder nav item + bump

* update
* make DOCS badge responsive

* center logo + badge
* move all contact sales links to pricing

* update
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <alek@pynecone.io>
- Update both 'Become a Partner' buttons to use https://app.lemcal.com/@alek/reflex-demo?back=1
- Replace old Cal.com form URLs with new lemcal.com booking URL
- Maintains existing functionality while updating to new booking system

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Alek <alek@pynecone.io>
* update ai docs

* more ai-related docs

* + ai docs

* Update docs/ai_builder/features/code_editor.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/ai_builder/app_lifecycle/copy_app.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/ai_builder/app_lifecycle/general.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update docs/ai_builder/integrations/databricks.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* updates part I

* update part II

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Tom Gotsman <tomgotsman@Toms-MacBook-Pro-4.local>
* new blog + prev. blog image fix

* Update blog/2025-09-02-reflex-build.md

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* use .path for URL

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* add booked page

* second page

* updates

* add url
* refine ai docs

* Reflex Build IDE vid

* refine interaction mode docs

* patches to navbar, sidebar, and others

* add link with url

* make set sidebar index event temporal

---------

Co-authored-by: carlosabadia <cutillascarlos@gmail.com>
@Kastier1 Kastier1 merged commit ba33937 into main Sep 11, 2025
9 checks passed
@Kastier1 Kastier1 deleted the carlos/prompt-box-again branch September 11, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants