Commit graph

180 commits

Author SHA1 Message Date
DeepakasBTG
6500a33f9d Merge pull request #48 from DeepakasBTG/frontend
Result: CTA border added
2026-02-05 21:28:55 +05:30
Deepak Salunke
e387287bc1 Result: CTA border added 2026-02-05 21:28:24 +05:30
michael
9f403378b5 fix: force no-cache docker build in deploy script
Docker's layer cache was reusing old images even after code changes.
Adding --no-cache ensures the Python code is always freshly copied.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:50:36 -06:00
michael
a175b1d884 fix: check submission status before showing success UI
- loadResults() now checks resultData.status before calling showSuccess()
- Only shows success UI when status is "success", shows failure UI for "fail"
- Added null check to renderLyrics() to prevent crash on null lyrics
- Added null check in showSuccess() before calling renderLyrics()

Fixes crash when navigating to result page while submission is still processing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:42:29 -06:00
michael
1c996c5919 fix: add backward compatibility for in-flight tasks during GCS migration
Handle both old (audio_path) and new (audio_blob_path) keys in create_video
task to support tasks that were queued before the GCS migration deployed.
Also properly detect local vs GCS paths for photo_path.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 09:23:08 -06:00
michael
c41e559e81 feat: migrate file storage from local filesystem to Google Cloud Storage
- Add google-cloud-storage dependency to requirements.txt
- Add GCS configuration settings to config.py
- Create storage.py utility module with upload/download/delete operations
  and temp file context managers for video generation
- Update submissions.py to upload photos to GCS and return full GCS URLs
- Update results.py to return full GCS URLs for video and record image
- Update workers.py to use GCS for audio download, video creation, and cleanup
- Update result.js to use audio_url directly from API response
- Update docker-compose.yml with GCS credentials mount

Storage now uses GCS bucket vday2026 in project holiday-project-india.
Database stores blob paths; URLs constructed at API response time.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 08:40:42 -06:00
DeepakasBTG
f411d26f96 Merge pull request #47 from DeepakasBTG/frontend
Minor ui changes
2026-02-05 20:10:26 +05:30
Deepak Salunke
63d9536f44 Minor ui changes 2026-02-05 20:09:36 +05:30
DeepakasBTG
1377b7e879 Merge pull request #46 from DeepakasBTG/frontend
Minor bug sheet resolved
2026-02-05 19:37:32 +05:30
Deepak Salunke
9853bbc14c Minor bug sheet resolved 2026-02-05 19:36:58 +05:30
Harshad
8982a22af8 fix(gifs): preload banner gifs 2026-02-05 19:26:11 +05:30
DeepakasBTG
af226a3c5f Merge pull request #45 from DeepakasBTG/frontend
Bugs fixes
2026-02-05 19:12:08 +05:30
Deepak Salunke
93546687f3 Bugs fixes 2026-02-05 19:11:33 +05:30
DeepakasBTG
072cd3b020 Merge pull request #44 from DeepakasBTG/frontend
Minor ui changes
2026-02-05 18:51:49 +05:30
Deepak Salunke
5786a5c7b6 Minor ui changes 2026-02-05 18:51:12 +05:30
DeepakasBTG
6723359a3e Merge pull request #43 from DeepakasBTG/frontend
UI changes
2026-02-05 18:46:05 +05:30
Deepak Salunke
61497cddd3 UI changes 2026-02-05 18:45:28 +05:30
DeepakasBTG
8a000a8f41 Merge pull request #42 from DeepakasBTG/frontend
Footer: logo updated & few minor UI changes
2026-02-05 18:24:24 +05:30
Deepak Salunke
5e85e70f7a Footer: logo updated & few minor UI changes 2026-02-05 18:23:36 +05:30
DeepakasBTG
ba11aadd7b Merge pull request #41 from DeepakasBTG/frontend
Result: CTA hover color change
2026-02-05 17:40:09 +05:30
Deepak Salunke
cb297c876f Result: CTA hover color change 2026-02-05 17:39:45 +05:30
Harshad
a013319d6e fix(result): share button state 2026-02-05 17:26:25 +05:30
Harshad
083eda42dc fix(result): logic flow for new & old sessions 2026-02-05 17:08:58 +05:30
DeepakasBTG
0d42255ced Merge pull request #40 from DeepakasBTG/frontend
Result changes
2026-02-05 16:14:02 +05:30
Deepak Salunke
ebc41cff5d Result changes 2026-02-05 16:13:18 +05:30
DeepakasBTG
395e18f32b Merge pull request #39 from DeepakasBTG/frontend
Result page logic changes
2026-02-05 13:51:54 +05:30
Deepak Salunke
587521af9b Result page logic changes 2026-02-05 13:51:21 +05:30
Harshad
ba5ad5de7e minor changes 2026-02-05 10:25:34 +05:30
DeepakasBTG
5033122aec Merge pull request #38 from DeepakasBTG/frontend
Landing: UI changes
2026-02-05 03:01:58 +05:30
Deepak Salunke
eb5cf5f6b1 Landing: UI changes 2026-02-05 03:01:30 +05:30
DeepakasBTG
1ab906c442 Merge pull request #37 from DeepakasBTG/frontend
Result: Audio player for mp3 & streaming
2026-02-05 01:49:53 +05:30
Deepak Salunke
2ee9dac230 Result: Audio player for mp3 & streaming 2026-02-05 01:49:15 +05:30
DeepakasBTG
bc6fe8768f Merge pull request #36 from DeepakasBTG/frontend
Result: MP3 song added with play/pause btn and lyrics auto scroll
2026-02-05 00:26:14 +05:30
Deepak Salunke
8a01b032bc Result: MP3 song added with play/pause btn and lyrics auto scroll 2026-02-05 00:25:50 +05:30
DeepakasBTG
b4be24d045 Merge pull request #35 from DeepakasBTG/frontend
Result: Share box ui changes
2026-02-04 22:48:55 +05:30
Deepak Salunke
016f618cfd Result: Share box ui changes 2026-02-04 22:48:25 +05:30
Harshad
cc84dee940 vertical video background image 2026-02-04 22:07:43 +05:30
Harshad
da2a247e97 feat(video): change layout to vertical 2026-02-04 22:07:05 +05:30
DeepakasBTG
2d73f0aa61 Merge pull request #34 from DeepakasBTG/frontend
Result: Javascript removed & created js file
2026-02-04 20:57:28 +05:30
Deepak Salunke
4c2de1f8a7 Result: Javascript removed & created js file 2026-02-04 20:56:31 +05:30
michael
05a8115dd0 feat: add human detection using NudeNet for pet photo validation
Adds server-side image safety check to ensure users upload pet photos instead
of human images. Uses NudeNet with 0.5 confidence threshold and fail-open
behavior. Frontend shows loading state during analysis and error UI when
humans are detected.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:57:23 -06:00
michael
ce95d61796 feat: add server-side profanity filter with real-time validation
Add profanity detection using better-profanity library with:
- Real-time API validation during typing (500ms debounce)
- Defense-in-depth server-side validation on form submission
- Visual feedback with red borders and warning message
- Submit button disabled when profanity detected
- Fail-open behavior on API errors to not block users

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:29:58 -06:00
DeepakasBTG
ce48397e8b Merge pull request #33 from DeepakasBTG/frontend
Frontend
2026-02-04 19:56:00 +05:30
Deepak Salunke
48cb981bb0 Frontend: Minor changes 2026-02-04 19:55:32 +05:30
michael
49e548e3ba docs: remove spec reading instruction from CLAUDE.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:07:46 -06:00
michael
7fa4132cd7 feat(api): add audio_url to status endpoint response
Allows frontend to access the MP3 audio URL as soon as download
completes, even while video generation is still in progress.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 08:04:55 -06:00
Deepak Salunke
7401b7c188 Body color changes 2026-02-04 18:37:05 +05:30
DeepakasBTG
de2b52cc12 Merge pull request #32 from DeepakasBTG/frontend
Result: Issue solved
2026-02-04 18:25:42 +05:30
Deepak Salunke
f459459ed3 Result: Issue solved 2026-02-04 18:23:49 +05:30
Harshad
5db89c82b2 fix(waiting): missing sessionID function 2026-02-04 18:09:40 +05:30