iegorov / e-reception Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://e-reception.vercel.app
Home Page: https://e-reception.vercel.app
Story description
Subtasks:
Design mockups:
Link to the mockup
Acceptance criteria:
Linked issues:
Use this guide to import existing repository to a Vercel project:
https://vercel.com/docs/getting-started-with-vercel/import
Here are the details for Next.js deployment on Vercel:
https://vercel.com/docs/frameworks/nextjs
Use npx create-next-app@latest
to create an empty default project and push in into master
branch in a repository.
Implement /visitors
page with basic layout, title & subtitle.
Subtasks:
layout.tsx
to be used for all pages. See https://nextjs.org/docs/app/building-your-application/routing/pages-and-layoutsDesign mockup:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=211%3A5112&mode=design&t=TF2rkxhfKdGBkSQ0-1
Acceptance criteria:
Visitors
page via /visitors
path in browserVisitors
page via Visitors
link in global headerVisitors
pageStory description
Subtasks:
Design mockups:
Link to the mockup
Acceptance criteria:
Linked issues:
Introduce a client-side solution to paginate data in the Visitors table
Subtasks:
Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=211%3A5112&mode=design&t=TF2rkxhfKdGBkSQ0-1
Acceptance criteria:
Linked issues:
What we should have as a README:
npm ci
for example.Story description
Subtasks:
Design mockups:
Link to the mockup
Acceptance criteria:
Linked issues:
Allow User to save data from new Visitor form to a database.
Subtasks:
POST /api/visitors
endpoint to handle the data submission/api/visitors
handlerNew visitor has been added successfully
Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=220-2306&mode=design&t=bmw5VOuY1nKigXrB-0
Acceptance criteria:
Add
button, the data is saved in a databaseNew visitor has been added successfully
is shownLinked issues:
Story description
Subtasks:
Design mockups:
Link to the mockup
Acceptance criteria:
Linked issues:
Introduce a solution to load data from PostgreSQL database into Visitors table
Subtasks:
GET /api/visitors
endpoint to get the data from Postgres. See this guide for reference: https://nextjs.org/docs/app/building-your-application/routing/route-handlersAcceptance criteria:
Linked issues:
Story description
Subtasks:
Design mockups:
Link to the mockup
Acceptance criteria:
Linked issues:
Добавить вкладку настроек с формой для управления уведомлениями доступную по url /settings/notifications/
Subtasks:
Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=220-11198&mode=design&t=lmp3mOYuOwlhBTfS-0
Acceptance criteria:
Linked issues:
Introduce a client-side full-text filtering of visitors data by birth date.
Subtasks:
Birth date
columnBirth date
column based on string representation of a date., i.e. with filter value '09' a date rendered as '01.09.1956' should be found.Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=223-14468&mode=design&t=gu5Fp6eXfZICLEn7-0
Acceptance criteria:
Linked issues:
Introduce a new Visitor page with a form and client-side validation
Subtasks:
/visitors/new
Add
& Cancel
buttons. When User click Cancel
button, navigate to /visitors
page.First name
, Middle name
, Last name
, Email
, Phone
, Address
First name
, Last name
, Email
, Address
Email
+-():#
in the Phone
fieldAdd
buttonDesign mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=220-2306&mode=design&t=bmw5VOuY1nKigXrB-0
Acceptance criteria:
Add new Visitor
page via /visitors/new
path in browserAdd new Visitor
page via Add visitor
button on Visitors pageAdd new Visitor
pageFirst name
, Middle name
, Last name
, Email
, Phone
, Address
First name
, Last name
, Email
, Address
are requiredEmail
allows only valid email addressesPhone
field accepts only numbers and symbols +-():#
Cancel
button /visitors
page is openedAdd
button and form has validation errors the corresponding fields are highlighted in red and error messages are visible to the UserAllow User to delete a single visitor from Visitors table via the actions context menu.
Subtasks:
Delete
item to the context menuDELETE /api/visitors/:visitorId
routeVisitor has been deleted successfully
after visitor is successfully deletedDesign mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=223-12297&mode=design&t=gu5Fp6eXfZICLEn7-0
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=223-13875&mode=design&t=gu5Fp6eXfZICLEn7-0
Acceptance criteria:
Delete
in itDelete
context menu item, it opens a confirmation dialogCancel
in confirmation dialog, it closes and visitor is NOT deletedYes, delete visitor
button, confirmation dialog closes and visitor is deletedVisitor has been deleted successfully
Linked issues:
Introduce visitors table on Visitors page.
Subtasks:
Name
, Birth date
, Email
, Phone
, Address
. See this guide for reference: https://ui.shadcn.com/docs/components/data-table#introductionVisitor
model with zod
. See this file for example: https://github.com/shadcn-ui/ui/blob/main/apps/www/app/examples/tasks/data/schema.tsid
, firstName
, middleName
, lastName
, birthDate
, email
, phone
, address
.No data.
should be present if there is no data available for display.Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=211%3A5112&mode=design&t=TF2rkxhfKdGBkSQ0-1
Empty view: https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=223%3A14135&mode=design&t=TF2rkxhfKdGBkSQ0-1
Acceptance criteria:
Name
, Birth date
, Email
, Phone
, Address
No data.
is present.Linked issues:
Introduce a client-side full-text filtering of visitors data by First name, Last name, Middle name, phone, email or address fields.
Subtasks:
Reset X
button. Button should be visible only when there is a value in the search field.No results.
Design mockups:
https://www.figma.com/file/wiQu66c3xgh3WznbXA9jCU/E-Reception-mockups?type=design&node-id=223-14468&mode=design&t=gu5Fp6eXfZICLEn7-0
Acceptance criteria:
No results.
textLinked issues:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.