Skip to content

Conversation

@neennera
Copy link
Member

Description

Prepare frontend for Phase3.1 in Gendoc

New mock pages for form and document status:

  • Added DocumentStatusMockPage and GenDocMockPage pages, which serve as mock implementations for document status and document generation forms, utilizing the new component system. (apps/web/src/app/documentstatusmock/page.tsx, apps/web/src/app/gendocformmock/page.tsx) [1] [2]

Form field rendering architecture:

  • Implemented a dynamic FormQuestion component that routes rendering to specialized field components based on field type, supporting types like string, date, tel, timerange, estimate-people, object, and fallback for unsupported types. (apps/web/src/components/gendocformcomponents/FormQuestion.tsx)
  • Added specialized field components: FormQuestionString, FormQuestionDate, FormQuestionEstimatePeople, and FormQuestionObject, each handling their respective input types and constraints, with design notes for further improvements. (apps/web/src/components/gendocformcomponents/FormQuestionString.tsx, FormQuestionDate.tsx, FormQuestionEstimatePeople.tsx, FormQuestionObject.tsx) [1] [2] [3] [4]
  • Added a FallBackComponent to gracefully handle unsupported or unimplemented field types, improving robustness. (apps/web/src/components/gendocformcomponents/FallBackComponent.tsx)

Document status visualization:

  • Created a DocumentStatus component that visually represents the document approval workflow, including stage coloring and sub-status indicators (e.g., rejected, processing, approved) for stage 3. (apps/web/src/components/gendocformcomponents/DocumentStatus.tsx)

These changes lay the groundwork for a scalable, maintainable form system and provide clear UI feedback for document status and form input handling.

@neennera
Copy link
Member Author

@FaiiFaiipuipui FaiiFaiipuipui self-assigned this Oct 13, 2025
<Sidebar />

<main className="flex-1 h-full flex flex-col">
<div className="rounded-2xl bg-white shadow-sm ring-1 ring-black/5 h-full flex flex-col">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we put space-y-4 here?

neennera and others added 3 commits October 13, 2025 18:49
…ment

Enable local development without external Intania Auth dependency by implementing DEV_MODE environment variable that mocks authentication with configurable user roles
(admin/esc/student).
@FaiiFaiipuipui FaiiFaiipuipui force-pushed the chore/frontend/mock-form-page branch from c6e75d2 to 653fdab Compare October 26, 2025 11:15
@neennera neennera merged commit e6c3782 into main Oct 26, 2025
4 checks passed
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.

2 participants