Commit graph

47 commits

Author SHA1 Message Date
bot
8f88c69b9a chore: remove Render configs, point docs at VPS domains 2026-08-31 22:11:15 +00:00
bot
a05248fbf8 chore: point frontend at new VPS bulk-api.lverma.com 2026-08-31 21:11:05 +00:00
a0625fdd8f
fix(frontend): center delete-all, rework keyboard shortcuts, add preview backdrop
- Center 'Delete All Forms' button and add bottom padding
- Search shortcut: Shift+K -> Ctrl/Cmd+K
- Form navigation: Ctrl/Cmd+J/K -> Shift+J/K (frees Ctrl/Cmd+K for search)
- Keep navbar title centered when preview actions appear
- Add dark backdrop that blocks background clicks when form preview is open
- Center close + form action icons inside their icon buttons
2026-07-01 23:16:56 +05:30
5dd03b6096
ci: revert frontend-only CI verification comment 2026-06-11 02:00:58 +05:30
8be93a6325
ci: trigger frontend-only CI verification run 2026-06-11 02:00:16 +05:30
0c67c16552
ci: split workflow into backend, frontend, and perf workflows with path filters, and configure Vercel ignoreBuildStep 2026-06-11 01:57:30 +05:30
3fd4063730
style: remove redundant form-list and schema-modal CSS rules to resolve Angular style budget warning 2026-06-11 01:53:38 +05:30
dbaba1c315
Refactor backend and frontend services, add unit tests, configure Ruff and Vitest, and delegate frontend state 2026-06-11 01:47:52 +05:30
0d43264684
fix the upload state not updating 2026-06-10 17:04:46 +05:30
13e119c425
docs: remove horizontal rules from READMEs [skip ci] 2026-06-02 14:01:37 +05:30
8b13ec7071
docs: slim down root README, move detail into folder READMEs
Root README now has: one-liner description, live links, screenshot
placeholders, CI-updated perf table, stack summary, short contributing.

backend/README.md: full API reference, file format, DB schema, testing.
frontend/README.md: setup, runtime config, structure, features, testing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 13:58:36 +05:30
252cb503fe
fix: skip loadForms during SSR to prevent localhost fallback error
During server-side rendering main.ts never runs, so loadRuntimeConfig()
is never called and apiUrl falls back to localhost:8000. The failed HTTP
call triggers the error snackbar during client hydration. Guard loadForms
with isPlatformBrowser so it only runs in the browser where the config
is correctly loaded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 13:44:34 +05:30
336b6c2659
fix: move config.json to public/assets so it's included in Angular build
angular.json assets glob covers public/ not src/assets/, so config.json
was never copied to the build output and the runtime fetch was falling
back to localhost:8000.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 13:20:17 +05:30
07d2dc3cb0
fix: add config.json with production backend URL for Vercel deployment
Without this file the frontend fell back to localhost:8000, causing CORS
failures on the deployed Vercel app.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 13:12:20 +05:30
1c0338539e
feat: add Vercel deployment config and runtime API URL loading
- Add vercel.json with Angular build config and SPA rewrites
- Increase Angular bundle budgets to unblock production build
- Fix TS strict null error in runtime-config.ts (return _config ?? {})
- Load API_URL from /assets/config.json at bootstrap via prebuild script
- Wire getRuntimeConfig() into FormService instead of hardcoded localhost

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 12:21:52 +05:30
5d50cf93e1 docs: update README files and enhance and finalize documentation 2025-09-11 21:34:43 +05:30
66e8aecee5 feat: enhance upload component with async processing and improved control
- Added support for concurrent file uploads with a maximum limit.
- Implemented async processing for file uploads, allowing for pause, resume, and cancel functionality.
- Introduced an AbortController to manage ongoing uploads and handle cancellation.
- Updated UI feedback for upload status and error handling.
- Refactored upload logic to improve state management and user experience.
2025-09-11 20:58:47 +05:30
94a35c90d6 feat: enhance form upload component and parsing logic
- Refactored methods to extract form details such as title, language, version, questions count, and options count.
- Updated XLSFormParser to use default form IDs and improved data conversion from tempData.json.
- Adjusted the getFormById method to return a more flexible response type.
2025-09-11 20:45:23 +05:30
00ded49a4c fix: update upload component button dimensions and icon sizes 2025-09-03 17:21:10 +05:30
d9d5b43edc feat: enhance upload component with pause, resume, and cancel functionality
- Added buttons to pause, resume, and cancel file uploads.
- Improved upload progress display to show current file status.
- Implemented session storage to restore upload state after page refresh.
- Refactored file upload logic to handle individual file uploads and track progress.
2025-09-03 17:14:34 +05:30
6951569983 feat: enhance form metadata handling and UI updates
- Added default values for 'version' and 'created_at' fields in the database service.
- Updated XLSFormParser to parse and include 'version' and 'created_at' from the form metadata.
- Changed font from 'Roboto' to 'Inter' across frontend components for consistency.
- Improved upload component to display default values for 'language', 'version', and 'created_at' in the form details.
- Adjusted progress display messages for clarity during file uploads.
2025-08-27 16:00:10 +05:30
69047a1bdd refactor: update README files for backend and frontend with enhanced documentation and structure
- Renamed backend README to reflect "Bulk Questionnaire Upload" focus.
- Expanded backend documentation to include detailed architecture, API references, and error handling strategies.
- Updated frontend README to include new features, installation instructions, and API integration details.
- Improved project structure descriptions and added sections for testing, deployment, and future enhancements.
2025-08-26 00:56:05 +05:30
165b249c3d feat: implement CI workflow, enhance file validation, and add test cases
- Introduced a CI workflow for automated testing of backend and frontend components.
- Added pytest configuration for backend tests and Vitest configuration for frontend tests.
- Enhanced file validation logic in the backend to improve error handling and reporting.
- Created comprehensive test cases for various validation scenarios, including edge cases and incorrect formats.
- Updated requirements to include necessary testing libraries and tools.
2025-08-26 00:22:54 +05:30
edaff71fe3 fix: overflow 2025-08-25 20:22:44 +05:30
bda788d0c2 feat: add disabled button styles in upload component 2025-08-03 17:42:55 +05:30
6d85c253b9 feat: make parsing error checks as compreshensive as validation endpoint error checks 2025-08-02 01:51:25 +05:30
9745be1583 docs: add notes on compression and update old deps 2025-08-01 23:43:12 +05:30
ab96a4bff4 feat: enhance schema viewer modal and update documentation
• Add comprehensive schema viewer modal with dark mode theme
• Implement copy/download functionality and keyboard shortcuts
• Update README files with latest performance metrics and API documentation
• Remove colorful UI elements for consistent monochrome design
• Enhance viewParsedSchema from console.log to interactive modal
2025-07-30 01:35:03 +05:30
30167af8d4 fix: refine validation UI with updated colors and spacing in upload component, and other fixes 2025-07-29 01:07:47 +05:30
6841e1e3a4 feat: update UI with dark theme styles, fix UI bugs and enhance performance metrics in README 2025-07-28 18:00:20 +05:30
0d9a45df73 feat: implement file validation before updating form and snackbar notifications in upload component 2025-07-19 07:26:10 +05:30
543ff5fb69 docs: update README to include new form update feature and API endpoint details 2025-07-18 21:57:30 +05:30
6ac9fdeae4 feat: add update form API endpoint and export JSON endpoint 2025-07-18 20:48:37 +05:30
a531879416 feat: enhance navbar with improved keyboard shortcuts and navigation for questions 2025-07-16 22:25:07 +05:30
3cf8842c51 docs: update README to include backend integration points and service details 2025-07-16 21:33:48 +05:30
0365307497 fix: new metrics, .gitignore, and package-lock 2025-06-30 05:53:39 +05:30
d0ce2ed6f4 feat: add some test capabilities, fix: some tabs and trailing whitespace 2025-06-25 12:52:44 +05:30
0f55831bf9 feat: fix preview, add indicators and shortcuts 2025-06-25 03:59:41 +05:30
de834b6a66 feat: add escape exit and loading spinner 2025-06-25 03:27:42 +05:30
5e226a1bb2 feat: add progress indicators 2025-06-23 17:28:08 +05:30
d55748680e feat: add basic logging and metrics. also add docs 2025-06-23 16:43:21 +05:30
15afd8837f feat: add bulk functionality, tested on 1000 xls files, change other misc. stuff 2025-06-23 15:32:04 +05:30
9cef570f36 feat: add search functionality, delete all forms, and simplify upload area 2025-06-23 14:40:47 +05:30
9c31454c35 feat:
- combine both upload components into one
- add live updates upon upload
- add preview section for forms
- fix the search-bar's weird padding issue
- general cleanup of things, removing some files
- cleaned the run.sh file a bit too
2025-06-23 04:57:07 +05:30
9af03f3f67 feat: got mongodb working 2025-06-23 00:59:28 +05:30
d0179b0b56 feat: fix the frontend + parse the xls fully 2025-06-23 00:39:52 +05:30
614edd1d34 feat: add basic wireframes for frontend and working parser code for backend. 2025-06-05 19:12:42 +05:30