diff --git a/README.md b/README.md index 4b9b6d2..a53fad1 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,44 @@ # This project is a toy project for training and quality assurance purposes ## Task -All this task must be done in 1 day + +All this task must be done within 8 hours of working time - go into folder task_1 and setup the project - click route and add a new route + > see screenshot ![route editor screenshot](task_1/screenshots/create_route.png) - click the <> icon and see the editor for the route + > see screenshot ![route editor screenshot](task_1/screenshots/route_flow_editor.png) - click on URL component in the editor, the right side bar will pop up + > see screenshot ![route editor screenshot](task_1/screenshots/route_flow_editor.png) - try typing into Body Field new field input, nothing happens. Fix it. -- try typing into Query Field new field input, nothing happens. Fix it. + > see screenshot ![route editor screenshot](task_1/screenshots/route_flow_editor.png) - once we type into the input, click the plus icon, we will see a gray area below the label Body Field stating the fields : type. +- try typing into Query Field new field input, nothing happens. Fix it. + > see screenshot ![route editor screenshot](task_1/screenshots/route_flow_editor.png) - once we type into the input, click the plus icon, we will see a gray area below the label Query Field stating the fields : type. - Switch the state system from zustand to react Context API +- when you click "Back to Routes" and click on <> again, the state is lost, meaning all edits made are lost, fix it. - open task_2 and setup the project - type anything into the textarea, click generate. -- type typing into the code editor and you will see the cursor not aligned with what your typing, fix it. +- type typing into the code editor and you will see the cursor not aligned with what your typing, fix it., + > the text needs to appear in the same line as your cursor. see screenshots ![typing in editor](task_2/screenshots/typing.png) - when I click the files in the code editor on sidebar, nothing happens. Fix it. + > you need to load the content of the file into the editor. see screenshots ![changing files](task_2/screenshots/changing_files.png) + - open task_3 and setup the project - when I upload a PDF file, I dont see a file attached below the dotted box. Fix it. + > see screenshots ![uploading pdf](task_3/screenshots/upload_pdf.png) - the lines are overlapping the circles in the wizard steps. Fix it. + > see screenshots ![form fields lines overlapping steps](task_3/screenshots/form_fields_lines_overlaping_steps.png) - On editor page, when I drag over any of form fields, I don't see them on the document. Fix it. I should be able to edit text there. + > see screenshots ![drag over form fields](task_3/screenshots/drag_over_form_fields.png) - When I click save, I see table of my document. If I click send icon, I should see document preview with the input fields on same spot as I edited it. Fix it. + > see screenshots ![save and send](task_3/screenshots/save_and_send.png) + - go into task_4 and run docker-compose up --build, the api will now run on localhost:3000 - Make a dashboard page like figma file https://www.figma.com/file/veiESwD61KJBa7BpEHtbdl/react-task-2?node-id=1086%3A15525 - Call paginate api as shown below to get video data. Show 10 per page. Have a next button at bottom when clicked, load next 10 videos @@ -55,6 +70,6 @@ Response: "num_pages": 2 } ``` + - Call paginate api as shown below to get video data. Show 10 per page. Have a prev button at bottom when clicked, load prev 10 videos - Use React Drag and drop library https://react-dnd.github.io/react-dnd/about to be able to rearrange the rows and columns in the table in dashboard. On Refresh, the columns go back to default - diff --git a/task_2/screenshots/changing_files.png b/task_2/screenshots/changing_files.png new file mode 100644 index 0000000..ebcf954 Binary files /dev/null and b/task_2/screenshots/changing_files.png differ diff --git a/task_2/screenshots/typing_in_editor.png b/task_2/screenshots/typing_in_editor.png new file mode 100644 index 0000000..ea4bfb5 Binary files /dev/null and b/task_2/screenshots/typing_in_editor.png differ diff --git a/task_2/vite.config.ts b/task_2/vite.config.ts index 147380a..acf5769 100644 --- a/task_2/vite.config.ts +++ b/task_2/vite.config.ts @@ -1,10 +1,10 @@ -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], optimizeDeps: { - exclude: ['lucide-react'], + exclude: ["lucide-react"], }, }); diff --git a/task_3/screenshots/form_fields_lines_overlaping_steps.png b/task_3/screenshots/form_fields_lines_overlaping_steps.png new file mode 100644 index 0000000..80eac3d Binary files /dev/null and b/task_3/screenshots/form_fields_lines_overlaping_steps.png differ diff --git a/task_3/screenshots/on_click_share.png b/task_3/screenshots/on_click_share.png new file mode 100644 index 0000000..ca180da Binary files /dev/null and b/task_3/screenshots/on_click_share.png differ diff --git a/task_3/screenshots/upload_file.png b/task_3/screenshots/upload_file.png new file mode 100644 index 0000000..4d29ae3 Binary files /dev/null and b/task_3/screenshots/upload_file.png differ diff --git a/task_3/vite.config.ts b/task_3/vite.config.ts index 147380a..acf5769 100644 --- a/task_3/vite.config.ts +++ b/task_3/vite.config.ts @@ -1,10 +1,10 @@ -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], optimizeDeps: { - exclude: ['lucide-react'], + exclude: ["lucide-react"], }, });