Skip to content

Conversation

@idoshamun
Copy link
Member

@idoshamun idoshamun commented Jan 5, 2026

  • Remove 404 getServerSideProps from log page to allow access
  • Add LogDataOverrideContext to store uploaded JSON data in memory
  • Modify useLog hook to prioritize override data over API data
  • Add file upload UI to CardWelcome with validation
  • Implement comprehensive JSON validation for LogData structure
  • File data is stored only in memory, not persisted

Users can now upload custom log data via JSON file on the welcome screen.
The uploaded data is validated against the LogData schema and replaces
API data for the session.

Preview domain

https://claude-add-json-upload-feature-v.preview.app.daily.dev

- Remove 404 getServerSideProps from log page to allow access
- Add LogDataOverrideContext to store uploaded JSON data in memory
- Modify useLog hook to prioritize override data over API data
- Add file upload UI to CardWelcome with validation
- Implement comprehensive JSON validation for LogData structure
- File data is stored only in memory, not persisted

Users can now upload custom log data via JSON file on the welcome screen.
The uploaded data is validated against the LogData schema and replaces
API data for the session.
@vercel
Copy link

vercel bot commented Jan 5, 2026

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

Project Deployment Review Updated (UTC)
daily-webapp Ready Ready Preview Jan 8, 2026 1:19pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
storybook Ignored Ignored Jan 8, 2026 1:19pm

@CLAassistant
Copy link

CLAassistant commented Jan 5, 2026

CLA assistant check
All committers have signed the CLA.

claude added 2 commits January 5, 2026 07:13
- Import UploadIcon from direct path since it's not exported in icons index
- Remove console.error statements to pass linting with max-warnings 0
- Apply prettier formatting to all modified files
- Return default values when context is not available during SSR
- File upload only happens on client, so null override data is safe
- Fixes prerendering error for /log page
- Add overrideData tracking to force card remount when uploaded data replaces API data
- Use compound key (currentCard + data source) for AnimatePresence
- Ensures all cards refresh with new data immediately after upload
@idoshamun
Copy link
Member Author

No need to review. This is for internal testing

- Stop click event propagation on upload button
- Prevents tap navigation when clicking upload button
- User can now click upload button without navigating to next card
@idoshamun idoshamun closed this Jan 8, 2026
@idoshamun idoshamun deleted the claude/add-json-upload-feature-VAA8z branch January 8, 2026 15:26
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.

4 participants