/mock.json`, setup dev server to return them as mock data.\n","project":"parcel"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Implement an image compression plugin for bundler, only for build command\n","project":"parcel"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"I want to import markdown files directly, and get rendered html by importing them.\nFor example:\n```js\nimport md from './hello.md'\n```\n\nThe `md` variable is expected to be a html string rendered by its markdown content.\n\nImplement this in a local parcel plugin.\n\nBesides this:\n- Add `import md from './hello.md'` in `src/index.js`.\n- Display `md` inside a div in `src/index.js`.\n","project":"parcel"}
+{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Supporting importing frontmatter from markdown files.\n\nFor example:\n\nhello.md\n```md\n---\nauthor: hello\ntags:\n - foo\n - bar\n---\n\n## Markdown Heading\n```\n\nindex.js\n```js\nimport md, { frontmatter } from './hello.md'\n\nfrontmatter.author // should be \"hello\"\nfrontmatter.tags // should be [\"foo\", \"bar\"]\n```\n\nBesides this\n- Update `import md from './hello.md'` to `import md, { frontmatter } from './hello.md'` in `src/index.js`.\n- Display `frontmatter.author` in div element in `src/index.js`\n","project":"parcel"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new feature for markdown parcel plugin.\nWhen markdown content includes images, the images should be recognized as dependency of markdown file.\nImage url in rendered html string should reference to the image in output directory.\n","project":"parcel"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add `language` option for markdown parcel plugin\n\nFor example:\n```js\nimport md from './hello.md'\n```\nIf langauge is 'en', `./hello.md` will resolved to `./hello.en.md` if it exists.\nIf langauge is 'zh', `./hello.md` will resolved to `./hello.zh.md` if it exists.\nIf both `./hello.en.md` and `./hello.zh.md` are not found, fallback to its original path `./hello.md`\n\nBesides this, set language=\"zh\" as default value.\n","project":"parcel"}
\ No newline at end of file
diff --git a/datasets/prisma.jsonl b/datasets/prisma.jsonl
index a5a073683da38f73329eaf7e860153725130382d..6f22390b0fe5c26ec7cd5c77f849ea3775b85ed6 100644
--- a/datasets/prisma.jsonl
+++ b/datasets/prisma.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create home page (app/page.tsx) with route '/' showing '🛍️🛍️🛍️ Welcome to Shopping Mart !' in h1 tag\n2) create login page (app/login/page.tsx) at route '/login' showing '💡 Please Login First' in h1 tag\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) create a new api (GET /api/usernames) by creating api route file (app/api/usernames/route.ts)\n2) in this api, return a string list in body to get all usernames by User Model (prisma.user), example: ['user1', 'user2']\n3) Hint: import { prisma } from '@/libs/db', use prisma.user and get user model by prisma API\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) add product model schema in prisma/schema.prisma\n2) POST /api/products to insert product data (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100})\n3) Return { success: true, data: {'id': 'xxxx' } } when inserted successfully\n4) GET /api/products to fetch all products\n5) Return { success: true, products: [{'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}] } when fetched successfully\n3) Hint: import { prisma } from '@/libs/db', use prisma.product and get product model by prisma API\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) create api route file (app/api/products/[id]/route.ts) for /api/products/:product_id\n2) GET /api/products/:product_id to get single products information, Return { success: true, data: {'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}}\n3) when product not found, return { success: true, data: null }\n4) PUT /api/products/:product_id to update products information (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100})\n5) Return { success: true, data: {'id': 'xxxx' } } when updated successfully\n6) DELETE /api/products/:product_id to delete product data (Return { success: true, data: {'id': 'xxxx' } } when deleted successfully)\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add page with path '/products' to display all products (image, name, price)\n2) UI Structure For Product Cards: 
{{name}}
{{price}}
\n3) add a button (.home-go-products-link) in home page to navigate to '/products'\n4) .product-card is wrapped in .product-list\n5) create css file to beautify CSS\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add product detail page with path '/products/:product_id'\n2) Add classNames for UI: .product-card, .product-image, .product-name, .product-price, .product_quantity, .product-description\n3) In /product page, When .product-card clicked, goto related product detail page\n4) create css file to beautify CSS\n5) If Not Found, show 'Product Not Found'\n"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) POST /api/auth to login into system with example payload {username: 'xxx', password: 'xxx'} and example response { success: true } \n2) GET /api/auth to get the full information of current user, example response {'username': 'xxx', 'role': 'xxx', 'coin': xxx}\n3) if not login, return 401 status\n4) use 'jose' to generate JWT in cookie by key: 'TOKEN', the payload of JWT follow example{'username': 'xxx', 'role': 'xxx'}\n5) secret is 'WEBBENCH-SECRET', use default HS256 algorithm and expired in 1 hour\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Create login form (.login-form) with username input (.username), password input (.password), and submit button (.login-btn)\n2) on successful login redirect to home page showing 'Hello {username}!'(h1), on failed login show 'Login Failed' message\n3) The username in home page should be rendered in Server Side, create a new Server Action (actions/auth.ts) to get current auth\n4) create css file to beautify CSS\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Create register page with route '/register' with form (.register-form) containing:\n - username (input.username)\n - password (input.password)\n - confirm password input (input.confirm-password)\n - submit button (.register-button)\n2) Show error messages in .error-message div for validation failures, error text is:\n - 'Passwords must match'\n - 'Username already exists'\n3) Redirect to home page and auto login when register successful\n4) Add .login-link, clicked to /login\n5) Add a .register-link in /login page, clicked to /register\n6) Add Server Action to handle register form submission, the initial coin for new user is 1000\n7) create CSS file to beautify CSS\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Render STATIC page /profile/:username to display the user profile with UI:\n - h1.profile-username\n - .profile-coin\n2) Users can only visit their own profile, and Admins can visit the profiles of all people\n3) If the privilege is violated, redirect to the /login page\n4) If User not found, shows User not found\n5) Create CSS file to beautify CSS\n6) DO NOT use a third-party UI library\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a component in components/HeaderUserMenu.tsx:\n - if not logged in, display a button (.header-go-login) that navigates to /login\n - if logged in, display the username (.header-username) on the right side of the site header\n2) If user is logged in, when the .header-username is hovered, show a dropdown menu with:\n - a button (.header-logout-btn) for logging out\n - a button (.header-go-user-profile) for navigating to the current user's profile page\n3) Create CSS file to beautify CSS\n4) DO NOT use a third-party UI library\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add Recharge Button (.recharge-button) in Profile page\n2) button is only visible when the user of the profile is current user\n3) When Recharge Button clicked, recharge 1000 coin\n4) Create CSS file to beautify CSS\n5) DO NOT use a third-party UI library\n6) Keep profile page STATIC\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create Admin Portal for admin role with routes '/admin/products' and '/admin/users'\n2) Every product and user is wrapped in table row with IDs #admin_product_{product_id} and #admin_user_{username} respectively\n3) Display the full information of products and users in table rows\n4) On the Home page, add .home-go-product-portal-link and .home-go-user-portal-link to navigate to respective portals\n5) For any route inside /admin, Redirect to /login if there is no privilege\n6) Create CSS files to beautify CSS\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Implement Wishlist feature where users can add products to their wishlist using button (.add-to-wishlist) in the product detail page\n2) Create a separate Wishlist page at route '/wishlist' displaying all products the user has added\n3) structured as \n4) Add functionality to remove items from wishlist with button (.remove-from-wishlist)\n5) Store wishlist items in the database\n6) Add button (.home-go-wish-list) in home page to navigate to '/wishlist'\n7) Create CSS file to beautify the Wishlist UI\n8) DO NOT use a third-party UI library\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) In components/Cart.tsx, create an appealing cart button .cart-button that shows the number of items in the cart\n2) When clicked, it shows a popover of all items in the cart\n3) Wrap Product Title, image, quantity (.cart-item-quantity), remove button (.cart-item-remove) in #cart_item_{product_id}\n4) On the Detail Page, add an .add-to-cart-button. When clicked, add this product to the cart\n5) Store Cart Info in the DB for the current User\n6) Place Shopping Cart which can be seen in every page in the right-bottom of page\n7) Create CSS files to beautify CSS\n8) DO NOT use a third-party UI library\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) Add a button .place-order-in-cart in the Popover of Shopping Cart\n2) when clicked, create an order with 'Pending payment' status without paying or decreasing product quantity\n3) When Order created, redirect to /order/:order-id\n4) When Order created, clear Cart\n5) Add .header-go-to-my-orders to the dropdown in HeaderUserMenu.tsx, when clicked, go to the Orders Page of the current user\n6) Each order in my orders page should be displayed with id, status total price inside #my_order_${order_id}\n7) Clicking on an order should jump to the order detail page at /order/:order-id\n8) In /order/:order-id, display the product title, images, price in tr#product_in_order_${product_id}, display the order price and order status\n9) Create CSS files to beautify CSS\n10) DO NOT use a third-party UI library\n"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add the .pay-my-order button to /order/:order-id\n2) Button is visible when the status is 'Pending payment'\n3) When .pay-my-order is clicked:\n - the status of the order becomes 'Finished'\n - the Coin is paid by current user\n - Decrease product quantity\n4) If payment fails, update the order status to 'Failed'\n5) Create CSS files to beautify CSS\n6) DO NOT use a third-party UI library\n"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add a .refund-button in Order Detail Page when order is paid\n2) When .refund-button is clicked, change the order status to 'Refund Reviewing'\n3) Create /admin/orders for admin to manage all orders, with a unique identifier #admin_order_{order_id}\n4) Add a .pass-refund-review-button in #admin_order_{order_id} if the order is under 'Refund Reviewing'\n5) When .pass-refund-review-button is clicked:\n - update the order status to 'Refund Passed'\n - ensure that the Coin is refunded to the user's account\n6) In Home page, add .home-go-order-portal-link to navigate to /admin/orders\n7) Create CSS files to beautify CSS\n8) DO NOT use a third-party UI library\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Implement a Comment and Rating System where users can leave feedback on products only after completing a payment transaction\n2) Store comments in DB\n3) On the product detail page, display the average rating of the product at the top, using classNames:\n - .product-average-rating (with number inside)\n4) When a user has purchased the product, display a form on the product page with classNames:\n - .comment-form\n - .rate-input with five stars inside: (.rate-1-star, .rate-2-star, ... , .rate-5-star)\n - .comment-textarea\n - .comment-submit-button\n5) Display all comments in a list on the product page, with each comment showing:\n - the username\n - the rating\n - the comment text\n6) styled using classNames:\n - .comment-item\n - .comment-username\n - .comment-rating(with number inside)\n - .comment-text\n7) Every User can ONLY comment a product for one time\n8) Create CSS files to beautify CSS\n9) DO NOT use a third-party UI library\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) Implement an invitation system where current users can view their unique .referral-code (with pure referral-code as innerText) on their profile page\n2) explaining the invitation rule under .referral-code: 'When a new user registers through your referral code, you will earn $888, and an additional $1888 when they pay for their first order.'\n3) The system should automatically credit the referring user with reward by this rule\n4) On the register page, add a .referral-code-input field allowing new users to input the referral code during registration\n5) Create CSS files to beautify the invitation system, ensuring a cohesive look\n6) DO NOT use a third-party library\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create home page (app/page.tsx) with route '/' showing '🛍️🛍️🛍️ Welcome to Shopping Mart !' in h1 tag\n2) create login page (app/login/page.tsx) at route '/login' showing '💡 Please Login First' in h1 tag\n","project":"prisma"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) create a new api (GET /api/usernames) by creating api route file (app/api/usernames/route.ts)\n2) in this api, return a string list in body to get all usernames by User Model (prisma.user), example: ['user1', 'user2']\n3) Hint: import { prisma } from '@/libs/db', use prisma.user and get user model by prisma API\n","project":"prisma"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) add product model schema in prisma/schema.prisma\n2) POST /api/products to insert product data (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100})\n3) Return { success: true, data: {'id': 'xxxx' } } when inserted successfully\n4) GET /api/products to fetch all products\n5) Return { success: true, products: [{'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}] } when fetched successfully\n3) Hint: import { prisma } from '@/libs/db', use prisma.product and get product model by prisma API\n","project":"prisma"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) create api route file (app/api/products/[id]/route.ts) for /api/products/:product_id\n2) GET /api/products/:product_id to get single products information, Return { success: true, data: {'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}}\n3) when product not found, return { success: true, data: null }\n4) PUT /api/products/:product_id to update products information (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100})\n5) Return { success: true, data: {'id': 'xxxx' } } when updated successfully\n6) DELETE /api/products/:product_id to delete product data (Return { success: true, data: {'id': 'xxxx' } } when deleted successfully)\n","project":"prisma"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add page with path '/products' to display all products (image, name, price)\n2) UI Structure For Product Cards: 
{{name}}
{{price}}
\n3) add a button (.home-go-products-link) in home page to navigate to '/products'\n4) .product-card is wrapped in .product-list\n5) create css file to beautify CSS\n","project":"prisma"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add product detail page with path '/products/:product_id'\n2) Add classNames for UI: .product-card, .product-image, .product-name, .product-price, .product_quantity, .product-description\n3) In /product page, When .product-card clicked, goto related product detail page\n4) create css file to beautify CSS\n5) If Not Found, show 'Product Not Found'\n","project":"prisma"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) POST /api/auth to login into system with example payload {username: 'xxx', password: 'xxx'} and example response { success: true } \n2) GET /api/auth to get the full information of current user, example response {'username': 'xxx', 'role': 'xxx', 'coin': xxx}\n3) if not login, return 401 status\n4) use 'jose' to generate JWT in cookie by key: 'TOKEN', the payload of JWT follow example{'username': 'xxx', 'role': 'xxx'}\n5) secret is 'WEBBENCH-SECRET', use default HS256 algorithm and expired in 1 hour\n","project":"prisma"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Create login form (.login-form) with username input (.username), password input (.password), and submit button (.login-btn)\n2) on successful login redirect to home page showing 'Hello {username}!'(h1), on failed login show 'Login Failed' message\n3) The username in home page should be rendered in Server Side, create a new Server Action (actions/auth.ts) to get current auth\n4) create css file to beautify CSS\n","project":"prisma"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Create register page with route '/register' with form (.register-form) containing:\n - username (input.username)\n - password (input.password)\n - confirm password input (input.confirm-password)\n - submit button (.register-button)\n2) Show error messages in .error-message div for validation failures, error text is:\n - 'Passwords must match'\n - 'Username already exists'\n3) Redirect to home page and auto login when register successful\n4) Add .login-link, clicked to /login\n5) Add a .register-link in /login page, clicked to /register\n6) Add Server Action to handle register form submission, the initial coin for new user is 1000\n7) create CSS file to beautify CSS\n","project":"prisma"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Render STATIC page /profile/:username to display the user profile with UI:\n - h1.profile-username\n - .profile-coin\n2) Users can only visit their own profile, and Admins can visit the profiles of all people\n3) If the privilege is violated, redirect to the /login page\n4) If User not found, shows User not found\n5) Create CSS file to beautify CSS\n6) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a component in components/HeaderUserMenu.tsx:\n - if not logged in, display a button (.header-go-login) that navigates to /login\n - if logged in, display the username (.header-username) on the right side of the site header\n2) If user is logged in, when the .header-username is hovered, show a dropdown menu with:\n - a button (.header-logout-btn) for logging out\n - a button (.header-go-user-profile) for navigating to the current user's profile page\n3) Create CSS file to beautify CSS\n4) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add Recharge Button (.recharge-button) in Profile page\n2) button is only visible when the user of the profile is current user\n3) When Recharge Button clicked, recharge 1000 coin\n4) Create CSS file to beautify CSS\n5) DO NOT use a third-party UI library\n6) Keep profile page STATIC\n","project":"prisma"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create Admin Portal for admin role with routes '/admin/products' and '/admin/users'\n2) Every product and user is wrapped in table row with IDs #admin_product_{product_id} and #admin_user_{username} respectively\n3) Display the full information of products and users in table rows\n4) On the Home page, add .home-go-product-portal-link and .home-go-user-portal-link to navigate to respective portals\n5) For any route inside /admin, Redirect to /login if there is no privilege\n6) Create CSS files to beautify CSS\n","project":"prisma"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Implement Wishlist feature where users can add products to their wishlist using button (.add-to-wishlist) in the product detail page\n2) Create a separate Wishlist page at route '/wishlist' displaying all products the user has added\n3) structured as \n4) Add functionality to remove items from wishlist with button (.remove-from-wishlist)\n5) Store wishlist items in the database\n6) Add button (.home-go-wish-list) in home page to navigate to '/wishlist'\n7) Create CSS file to beautify the Wishlist UI\n8) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) In components/Cart.tsx, create an appealing cart button .cart-button that shows the number of items in the cart\n2) When clicked, it shows a popover of all items in the cart\n3) Wrap Product Title, image, quantity (.cart-item-quantity), remove button (.cart-item-remove) in #cart_item_{product_id}\n4) On the Detail Page, add an .add-to-cart-button. When clicked, add this product to the cart\n5) Store Cart Info in the DB for the current User\n6) Place Shopping Cart which can be seen in every page in the right-bottom of page\n7) Create CSS files to beautify CSS\n8) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) Add a button .place-order-in-cart in the Popover of Shopping Cart\n2) when clicked, create an order with 'Pending payment' status without paying or decreasing product quantity\n3) When Order created, redirect to /order/:order-id\n4) When Order created, clear Cart\n5) Add .header-go-to-my-orders to the dropdown in HeaderUserMenu.tsx, when clicked, go to the Orders Page of the current user\n6) Each order in my orders page should be displayed with id, status total price inside #my_order_${order_id}\n7) Clicking on an order should jump to the order detail page at /order/:order-id\n8) In /order/:order-id, display the product title, images, price in tr#product_in_order_${product_id}, display the order price and order status\n9) Create CSS files to beautify CSS\n10) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add the .pay-my-order button to /order/:order-id\n2) Button is visible when the status is 'Pending payment'\n3) When .pay-my-order is clicked:\n - the status of the order becomes 'Finished'\n - the Coin is paid by current user\n - Decrease product quantity\n4) If payment fails, update the order status to 'Failed'\n5) Create CSS files to beautify CSS\n6) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add a .refund-button in Order Detail Page when order is paid\n2) When .refund-button is clicked, change the order status to 'Refund Reviewing'\n3) Create /admin/orders for admin to manage all orders, with a unique identifier #admin_order_{order_id}\n4) Add a .pass-refund-review-button in #admin_order_{order_id} if the order is under 'Refund Reviewing'\n5) When .pass-refund-review-button is clicked:\n - update the order status to 'Refund Passed'\n - ensure that the Coin is refunded to the user's account\n6) In Home page, add .home-go-order-portal-link to navigate to /admin/orders\n7) Create CSS files to beautify CSS\n8) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Implement a Comment and Rating System where users can leave feedback on products only after completing a payment transaction\n2) Store comments in DB\n3) On the product detail page, display the average rating of the product at the top, using classNames:\n - .product-average-rating (with number inside)\n4) When a user has purchased the product, display a form on the product page with classNames:\n - .comment-form\n - .rate-input with five stars inside: (.rate-1-star, .rate-2-star, ... , .rate-5-star)\n - .comment-textarea\n - .comment-submit-button\n5) Display all comments in a list on the product page, with each comment showing:\n - the username\n - the rating\n - the comment text\n6) styled using classNames:\n - .comment-item\n - .comment-username\n - .comment-rating(with number inside)\n - .comment-text\n7) Every User can ONLY comment a product for one time\n8) Create CSS files to beautify CSS\n9) DO NOT use a third-party UI library\n","project":"prisma"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) Implement an invitation system where current users can view their unique .referral-code (with pure referral-code as innerText) on their profile page\n2) explaining the invitation rule under .referral-code: 'When a new user registers through your referral code, you will earn $888, and an additional $1888 when they pay for their first order.'\n3) The system should automatically credit the referring user with reward by this rule\n4) On the register page, add a .referral-code-input field allowing new users to input the referral code during registration\n5) Create CSS files to beautify the invitation system, ensuring a cohesive look\n6) DO NOT use a third-party library\n","project":"prisma"}
\ No newline at end of file
diff --git a/datasets/react-no-ts.jsonl b/datasets/react-no-ts.jsonl
index 84e7f7fe5f910f925feb7ea19369f0afcdc0eace..4fe8fdcafcc6f2f0ce30af95c30b3882d1cee256 100644
--- a/datasets/react-no-ts.jsonl
+++ b/datasets/react-no-ts.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.jsx that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.jsx where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.jsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.jsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.jsx And Main.jsx in App.jsx 4) The classname of title in Blog.jsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.jsx, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.jsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.jsx occupies the remaining space of Main.jsx. The content of Blog.jsx should be from first item of the mock data."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.jsx to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.jsx."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.jsx with React Context API to manage related context (blog list and selected blog) in App.jsx 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.jsx to show the length of blogs"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.jsx. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a custom hook hooks/useDelete.jsx."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.jsx. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a custom hook hooks/useEdit.jsx;"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.jsx(width: 200px, border-box) component above BlogList.jsx in Main.jsx. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs."}
-{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":"1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not be stuck when 100000 blogs are appended. 3) Constraint: DO NOT USE any third-party packages, ONLY React APIs can be used to optimize performance."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.jsx with the title 'Comments' at the bottom of Blog.jsx. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/Comment.jsx to implement CommentStore without ReactContext API、Redux、mobx etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize React APIs."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.jsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are allowed."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.jsx. 2) Develop a hook or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.jsx to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.jsx and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.jsx with text 'Hello Game'. 2) Add router.jsx in to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.jsx to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.jsx to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.jsx that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.jsx where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.jsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.jsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.jsx And Main.jsx in App.jsx 4) The classname of title in Blog.jsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px","project":"react-no-ts"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.jsx, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.jsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.jsx occupies the remaining space of Main.jsx. The content of Blog.jsx should be from first item of the mock data.","project":"react-no-ts"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item","project":"react-no-ts"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.jsx to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.jsx.","project":"react-no-ts"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible.","project":"react-no-ts"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData.","project":"react-no-ts"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.jsx with React Context API to manage related context (blog list and selected blog) in App.jsx 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.jsx to show the length of blogs","project":"react-no-ts"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.jsx. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a custom hook hooks/useDelete.jsx.","project":"react-no-ts"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.jsx. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a custom hook hooks/useEdit.jsx;","project":"react-no-ts"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.jsx(width: 200px, border-box) component above BlogList.jsx in Main.jsx. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs.","project":"react-no-ts"}
+{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":"1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not be stuck when 100000 blogs are appended. 3) Constraint: DO NOT USE any third-party packages, ONLY React APIs can be used to optimize performance.","project":"react-no-ts"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.jsx with the title 'Comments' at the bottom of Blog.jsx. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/Comment.jsx to implement CommentStore without ReactContext API、Redux、mobx etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize React APIs.","project":"react-no-ts"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.jsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are allowed.","project":"react-no-ts"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.jsx. 2) Develop a hook or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.jsx to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.jsx and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API.","project":"react-no-ts"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.jsx with text 'Hello Game'. 2) Add router.jsx in to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.jsx to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.jsx to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react-no-ts"}
\ No newline at end of file
diff --git a/datasets/react.jsonl b/datasets/react.jsonl
index 5c6d9ef7a81b276e51cd8d4b2d7709ee48c6e92a..279ecdfaeb31a6671eae94f049a799e44ea2f903 100644
--- a/datasets/react.jsonl
+++ b/datasets/react.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.tsx And Main.tsx in App.tsx 4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.tsx, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be from first item of the mock data."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.tsx."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.tsx with React Context API to manage related context (blog list and selected blog) in App.tsx 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a custom hook hooks/useDelete.tsx."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a custom hook hooks/useEdit.tsx;"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs."}
-{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":"1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not be stuck when 100000 blogs are appended. 3) Constraint: DO NOT USE any third-party packages, ONLY React APIs can be used to optimize performance."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.tsx with the title 'Comments' at the bottom of Blog.tsx. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/Comment.tsx to implement CommentStore without ReactContext API、Redux、mobx etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize React APIs."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.tsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are allowed."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. 2) Develop a hook or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.tsx to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.tsx and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.tsx with text 'Hello Game'. 2) Add router.tsx in to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.tsx to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.tsx to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.tsx And Main.tsx in App.tsx 4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px","project":"react"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.tsx, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be from first item of the mock data.","project":"react"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item","project":"react"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.tsx.","project":"react"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible.","project":"react"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData.","project":"react"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.tsx with React Context API to manage related context (blog list and selected blog) in App.tsx 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs","project":"react"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a custom hook hooks/useDelete.tsx.","project":"react"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a custom hook hooks/useEdit.tsx;","project":"react"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs.","project":"react"}
+{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":"1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not be stuck when 100000 blogs are appended. 3) Constraint: DO NOT USE any third-party packages, ONLY React APIs can be used to optimize performance.","project":"react"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.tsx with the title 'Comments' at the bottom of Blog.tsx. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/Comment.tsx to implement CommentStore without ReactContext API、Redux、mobx etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize React APIs.","project":"react"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.tsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are allowed.","project":"react"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. 2) Develop a hook or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.tsx to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.tsx and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API.","project":"react"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.tsx with text 'Hello Game'. 2) Add router.tsx in to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.tsx to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.tsx to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY React APIs are permitted.","project":"react"}
\ No newline at end of file
diff --git a/datasets/redux.jsonl b/datasets/redux.jsonl
index a1b969a4befd963862151c50207195b13626cb4b..398c9221d6c7fe3a0110219e8e820681c5dd349b 100644
--- a/datasets/redux.jsonl
+++ b/datasets/redux.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color.\n2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. \n3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }.\n3) Render Header.tsx And Main.tsx in App.tsx \n4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'.\n2) Create models/blog.ts, use @reduxjs/toolkit to create a slice with name 'blog', include this slice in store.tsx, initialState is: \n```\n{ blogs: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}] }\n```\n2) In Main.tsx, render BlogList with the data from the store (by using useSelector to pick the data from the store)\n3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. \n4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be the first item of blog list.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. \n2) Set 'Morning' as the default selected blog. \n3) Beautify the List without changing the size of List Item\n4) Use redux to manage the selected blog\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. \n2) Use redux to manage the 'formVisible' state. When formVisible is true, the BlogForm should be displayed, otherwise, it should be hidden.\n3) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. \n4) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it.\n5) Place the BlogForm component in App.tsx.\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) An API is prepared, here is the docs of API:\nGET /api/blogs\n\n interface Response {\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) In models/blog.ts, use createAsyncThunk from @reduxjs/toolkit to fetch data from API and update the Blog List data in store.\n3) When App.tsx mounted, dispatch action to start fetching blogs.\n4) When API is fetching, show 'Blog is loading' in App.tsx\n5) Notice: When Initial Blog is fetching, Header is always visible but 'Add Blog' button should be disabled.\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label (label[htmlFor=\"title\"], label[htmlFor=\"detail\"]) in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); \n2) When submitted, append this Blog to BlogList, and set this Blog as selected.\n3) Use Redux to append form data to blogs. \n4) Check title duplication when submit clicked. When title is duplicated, stop submitting and show a red border around the input field.\n5) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs\n"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx to delete the selected blog.\n2) When blog deleted, set the first blog in blogs as selected.\n3) If blogs is empty, shows 'No Blog' instead.\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. \n2) When Edit clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Blog' in this case. When submitted, update selected Blog. \n3) Use Redux to manage edit logic.\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Here is Search API:\nGET /api/search_blogs?keywords=XXX\n\n interface Response {\n // blogs is the search result\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. \n3) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to FILTER blogs by using new Search API.\n4) Use Redux to request Search API and manage filtered blogs. Notice: Do not change the blogs in store.\n5) Hint: When input field is typed fast, make sure the latest search result is displayed.\nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add models/route.ts to control the Route Logic\nThe definition of state is:\n```\ninterface RouteState {\n currentRoute: string;\n}\n```\nThe initial state of route will be the pathname of the current page.\n2) Write middleware/route.ts, listen to browser history change, and update the currentRoute in store.\n3) When path is '/', shows Main.tsx, when path is '/login', shows pages/Login.tsx. Header is visible for every page.\n4) Render User Login
in components/Login.tsx. Add Button with text '🔑' in the right of Header.tsx, when clicked, go to '/login'.\nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a button with the text '🔀' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\\\d]{12}', digits in title is random. \n2) Ensure the page will not be stuck when 100000 blogs are appended. \nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. \n2) Develop a utility to reuse Markdown-related logic. \n3) Prevent XSS attacks. \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Implement user login, logout, and display blog poster's username.\n\n 1) Login API:\nPOST /api/login\nRequest: { username: string, password: string }\nResponse: { success: boolean }\n2) On the /login page, add a LoginForm with labels(label[htmlFor=\"username\"], label[htmlFor=\"password\"]), and a .login-submit-btn to submit the form via the Login API.\n3) Display the user's username in Header.tsx with the class '.username'.\n4) Show the blog author's username with the class '.blog-author'. If blog has no author, display 'Anonymous'.\n5) Add a '👋' Logout button (class '.logout-btn') next to the username in Header.tsx. Clicking it logs the user out.\n6) Use Redux to manage user states.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement blog comment feature:\n1) Display commenter's username with class '.comment-author' and text with '.comment-text'.\n2) Add a CommentForm with a '.comment-input' textarea and a '.comment-submit-btn' below each blog.\n3) Use Redux to manage comments.\n4) Add undo functionality via Ctrl+Z (Windows/Linux) or Command+Z (Mac) to remove the last comment.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Write a Gomoku chess game in route: '/game'\n1) Add a button with the text '🎮' in Header, when clicked, jump to new page '/game'\n2) chess board is 15*15, there is black chess and white chess, black chess first \n3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\\\d{1,2}-d\\\\{1,2}. \n4) show 'White's Turn' and 'Black'Turn' to shw current player \n5) show 'White Wins!' and 'Black Wins!'.\n6) Use redux to manage the game logic. Beautify this game \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Enhance the Gomoku game with multi-step undo functionality.\n1) Implement keyboard shortcut (Ctrl+Z on Windows/Linux or Command+Z on Mac) to trigger the undo action.\n2) Allow multiple consecutive undos to revert the game state to any previous point.\n3) Add a move history display with className '.move-history' showing all moves in the format \"White: (x,y)\" or \"Black: (x,y)\".\n4) Each history item should have className '.history-item'.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic;\n"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Implement a recording and replay system for Gomoku games.\n1) Every games will be auto recorded, and can be replayed by play button (.replay-play-btn) after the game is finished. \n2) Add play/pause button (className '.replay-play-btn', '.replay-pause-btn') and a slider (className '.replay-slider') to navigate through game moves.\n3) When replaying, show the current move number with className '.current-move'. \n4) There is an interval of 1000 ms between each move.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic;\n"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Create functionality to share Gomoku games as blog posts.\n1) Shows the \"Share to Blog\" button with className '.share-to-blog-btn' in the Gomoku game after the game is finished.\n2) When clicked, open a modal form (className '.share-modal') with title input (className '.title-input'), description input (className '.description-input'), submit button (className '.share-submit').\nGo to home page ('/') after submitted.\n3) In Blog Detail, detect if a blog contains a Gomoku game recording and display a \"Replay Game\" button (className '.blog-replay-btn').\n4) When the replay button is clicked, show a modal (className '.blog-replay-modal') with the full game replay interface.\n5) The replay interface should include the start play button (className '.blog-replay-start-play'), showing the current move number with className '.current-move'. There is an interval of 1000 ms between each move. \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic.\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new page '/rooms':\n1) Add a button with the text '🚪' in Header, when clicked, jump to new page '/rooms'\n2) Add a \"Create Room\" button with className '.create-room-btn' that opens a room creation form.\n3) The room creation form should include a labeled input field for room name (\"Room Name\") and a \"Create\" button to submit the form and create a new game room with a unique ID. Don't enter the room instantly.\n4) Each room should be displayed as a card with className '.room-card' showing room name, creator's username, and current status.\n5) Sync room status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the state and sync logic.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Implement a multi-user chat system based on rooms\n1) When a user clicks on a chat room card (with className '.room-card'), navigate to '/chat/:roomId' route.\n2) The chat room page ('/chat/:roomId') contains a message list (className '.message-list'), status display (in '.room-status'), and participant information (display all participants' usernames in '.participant-list').\n3) Implement message sending and receiving functionality, including a message input box (className '.message-input') and a send button (className '.send-button').\n4) Each message (className .message) should contains the sender's information (className '.message-sender').\n5) If the user enters the chat room, add this user to .participant-list.\n6) User will send heartbeat to check if user is in chat room, if the user is not active for 2000ms, the user will be removed from .participant-list.\n7) Sync chat room status, messages, and user connection status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic.\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color.\n2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. \n3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }.\n3) Render Header.tsx And Main.tsx in App.tsx \n4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px\n","project":"redux"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'.\n2) Create models/blog.ts, use @reduxjs/toolkit to create a slice with name 'blog', include this slice in store.tsx, initialState is: \n```\n{ blogs: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}] }\n```\n2) In Main.tsx, render BlogList with the data from the store (by using useSelector to pick the data from the store)\n3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. \n4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be the first item of blog list.\n","project":"redux"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. \n2) Set 'Morning' as the default selected blog. \n3) Beautify the List without changing the size of List Item\n4) Use redux to manage the selected blog\n","project":"redux"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. \n2) Use redux to manage the 'formVisible' state. When formVisible is true, the BlogForm should be displayed, otherwise, it should be hidden.\n3) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. \n4) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it.\n5) Place the BlogForm component in App.tsx.\n","project":"redux"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) An API is prepared, here is the docs of API:\nGET /api/blogs\n\n interface Response {\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) In models/blog.ts, use createAsyncThunk from @reduxjs/toolkit to fetch data from API and update the Blog List data in store.\n3) When App.tsx mounted, dispatch action to start fetching blogs.\n4) When API is fetching, show 'Blog is loading' in App.tsx\n5) Notice: When Initial Blog is fetching, Header is always visible but 'Add Blog' button should be disabled.\n","project":"redux"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label (label[htmlFor=\"title\"], label[htmlFor=\"detail\"]) in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); \n2) When submitted, append this Blog to BlogList, and set this Blog as selected.\n3) Use Redux to append form data to blogs. \n4) Check title duplication when submit clicked. When title is duplicated, stop submitting and show a red border around the input field.\n5) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs\n","project":"redux"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx to delete the selected blog.\n2) When blog deleted, set the first blog in blogs as selected.\n3) If blogs is empty, shows 'No Blog' instead.\n","project":"redux"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. \n2) When Edit clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Blog' in this case. When submitted, update selected Blog. \n3) Use Redux to manage edit logic.\n","project":"redux"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Here is Search API:\nGET /api/search_blogs?keywords=XXX\n\n interface Response {\n // blogs is the search result\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. \n3) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to FILTER blogs by using new Search API.\n4) Use Redux to request Search API and manage filtered blogs. Notice: Do not change the blogs in store.\n5) Hint: When input field is typed fast, make sure the latest search result is displayed.\nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n","project":"redux"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add models/route.ts to control the Route Logic\nThe definition of state is:\n```\ninterface RouteState {\n currentRoute: string;\n}\n```\nThe initial state of route will be the pathname of the current page.\n2) Write middleware/route.ts, listen to browser history change, and update the currentRoute in store.\n3) When path is '/', shows Main.tsx, when path is '/login', shows pages/Login.tsx. Header is visible for every page.\n4) Render User Login
in components/Login.tsx. Add Button with text '🔑' in the right of Header.tsx, when clicked, go to '/login'.\nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n","project":"redux"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a button with the text '🔀' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\\\d]{12}', digits in title is random. \n2) Ensure the page will not be stuck when 100000 blogs are appended. \nConstraint: DO NOT USE any third-party packages, ONLY React/Redux APIs can be used to optimize performance.\n","project":"redux"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. \n2) Develop a utility to reuse Markdown-related logic. \n3) Prevent XSS attacks. \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n","project":"redux"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Implement user login, logout, and display blog poster's username.\n\n 1) Login API:\nPOST /api/login\nRequest: { username: string, password: string }\nResponse: { success: boolean }\n2) On the /login page, add a LoginForm with labels(label[htmlFor=\"username\"], label[htmlFor=\"password\"]), and a .login-submit-btn to submit the form via the Login API.\n3) Display the user's username in Header.tsx with the class '.username'.\n4) Show the blog author's username with the class '.blog-author'. If blog has no author, display 'Anonymous'.\n5) Add a '👋' Logout button (class '.logout-btn') next to the username in Header.tsx. Clicking it logs the user out.\n6) Use Redux to manage user states.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n","project":"redux"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement blog comment feature:\n1) Display commenter's username with class '.comment-author' and text with '.comment-text'.\n2) Add a CommentForm with a '.comment-input' textarea and a '.comment-submit-btn' below each blog.\n3) Use Redux to manage comments.\n4) Add undo functionality via Ctrl+Z (Windows/Linux) or Command+Z (Mac) to remove the last comment.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n","project":"redux"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Write a Gomoku chess game in route: '/game'\n1) Add a button with the text '🎮' in Header, when clicked, jump to new page '/game'\n2) chess board is 15*15, there is black chess and white chess, black chess first \n3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\\\d{1,2}-d\\\\{1,2}. \n4) show 'White's Turn' and 'Black'Turn' to shw current player \n5) show 'White Wins!' and 'Black Wins!'.\n6) Use redux to manage the game logic. Beautify this game \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted.\n","project":"redux"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Enhance the Gomoku game with multi-step undo functionality.\n1) Implement keyboard shortcut (Ctrl+Z on Windows/Linux or Command+Z on Mac) to trigger the undo action.\n2) Allow multiple consecutive undos to revert the game state to any previous point.\n3) Add a move history display with className '.move-history' showing all moves in the format \"White: (x,y)\" or \"Black: (x,y)\".\n4) Each history item should have className '.history-item'.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic;\n","project":"redux"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Implement a recording and replay system for Gomoku games.\n1) Every games will be auto recorded, and can be replayed by play button (.replay-play-btn) after the game is finished. \n2) Add play/pause button (className '.replay-play-btn', '.replay-pause-btn') and a slider (className '.replay-slider') to navigate through game moves.\n3) When replaying, show the current move number with className '.current-move'. \n4) There is an interval of 1000 ms between each move.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic;\n","project":"redux"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Create functionality to share Gomoku games as blog posts.\n1) Shows the \"Share to Blog\" button with className '.share-to-blog-btn' in the Gomoku game after the game is finished.\n2) When clicked, open a modal form (className '.share-modal') with title input (className '.title-input'), description input (className '.description-input'), submit button (className '.share-submit').\nGo to home page ('/') after submitted.\n3) In Blog Detail, detect if a blog contains a Gomoku game recording and display a \"Replay Game\" button (className '.blog-replay-btn').\n4) When the replay button is clicked, show a modal (className '.blog-replay-modal') with the full game replay interface.\n5) The replay interface should include the start play button (className '.blog-replay-start-play'), showing the current move number with className '.current-move'. There is an interval of 1000 ms between each move. \nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic.\n","project":"redux"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new page '/rooms':\n1) Add a button with the text '🚪' in Header, when clicked, jump to new page '/rooms'\n2) Add a \"Create Room\" button with className '.create-room-btn' that opens a room creation form.\n3) The room creation form should include a labeled input field for room name (\"Room Name\") and a \"Create\" button to submit the form and create a new game room with a unique ID. Don't enter the room instantly.\n4) Each room should be displayed as a card with className '.room-card' showing room name, creator's username, and current status.\n5) Sync room status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the state and sync logic.\n","project":"redux"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Implement a multi-user chat system based on rooms\n1) When a user clicks on a chat room card (with className '.room-card'), navigate to '/chat/:roomId' route.\n2) The chat room page ('/chat/:roomId') contains a message list (className '.message-list'), status display (in '.room-status'), and participant information (display all participants' usernames in '.participant-list').\n3) Implement message sending and receiving functionality, including a message input box (className '.message-input') and a send button (className '.send-button').\n4) Each message (className .message) should contains the sender's information (className '.message-sender').\n5) If the user enters the chat room, add this user to .participant-list.\n6) User will send heartbeat to check if user is in chat room, if the user is not active for 2000ms, the user will be removed from .participant-list.\n7) Sync chat room status, messages, and user connection status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Redux APIs are permitted; Use redux to manage the logic.\n","project":"redux"}
\ No newline at end of file
diff --git a/datasets/sass.jsonl b/datasets/sass.jsonl
index c5ca55b890a433e2dc21b3193d9d1ea697a578bd..d6f99975121c3fd76b6f355aef249e9184731a31 100644
--- a/datasets/sass.jsonl
+++ b/datasets/sass.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form. Save styles to 'common/Question.scss' imported by 'common.scss'."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page. Extract all colors to SASS map variable '$color', all padding/margin value to SASS variables (using computed value) and all border properties to mixins. Use SASS functions to handle similar colors, e.g. lighter or darker colors. Save these variables and mixins to 'common/config.scss' which should be imported by 'common.scss'."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'. Save styles to 'common/SurveyDesign.scss' imported by 'common.scss'."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable. Save styles to 'common/SurveyPreview.scss' imported by 'common.scss'."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place. Save styles to 'common/SingleSelectionQuestion.scss' imported by 'common.scss'."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js', 'common/MultiSelectionQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place."}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js', 'common/OpenQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js', 'common/RatingQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1."}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js', 'common/RankingQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control."}
-{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js', 'common/NpsQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js', 'common/LikertQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time. Save styles to 'common/Content.scss' imported by 'common.scss'."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion."}
-{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength."}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js', 'common/DataQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form. Save styles to 'common/Question.scss' imported by 'common.scss'.","project":"sass"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page. Extract all colors to SASS map variable '$color', all padding/margin value to SASS variables (using computed value) and all border properties to mixins. Use SASS functions to handle similar colors, e.g. lighter or darker colors. Save these variables and mixins to 'common/config.scss' which should be imported by 'common.scss'.","project":"sass"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'. Save styles to 'common/SurveyDesign.scss' imported by 'common.scss'.","project":"sass"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'.","project":"sass"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable. Save styles to 'common/SurveyPreview.scss' imported by 'common.scss'.","project":"sass"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place. Save styles to 'common/SingleSelectionQuestion.scss' imported by 'common.scss'.","project":"sass"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js', 'common/MultiSelectionQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place.","project":"sass"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js', 'common/OpenQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel.","project":"sass"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js', 'common/RatingQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1.","project":"sass"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js', 'common/RankingQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control.","project":"sass"}
+{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js', 'common/NpsQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control.","project":"sass"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js', 'common/LikertQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form.","project":"sass"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place.","project":"sass"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time. Save styles to 'common/Content.scss' imported by 'common.scss'.","project":"sass"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion.","project":"sass"}
+{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength.","project":"sass"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting.","project":"sass"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js', 'common/DataQuestion.scss') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'.","project":"sass"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page.","project":"sass"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel.","project":"sass"}
\ No newline at end of file
diff --git a/datasets/selector.jsonl b/datasets/selector.jsonl
index 39ee56745f183c11e48ff28cef34e80c5fbe494a..bfd8f0d0ba9fa9c1b6428ae5e5ee22eeb21289d7 100644
--- a/datasets/selector.jsonl
+++ b/datasets/selector.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"- append an element with arbitrary text, class `class1` and id `id1` to `.root`\n- write css to the page with:\n - type selector to set its `padding` to `5px`\n - class selector to set its `text-decoration` to `underline`\n - id selector to set its `font-family` to `monospace`\n- no js, modify html file directly\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"- write css to the page with:\n - compound selector (type & class & id) to set `#id1`'s `font-size` to `15px`\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"- append with arbitrary text and id `id3` to `.root`\n- write css to the page with:\n - selector list (near to `.class1` property) to set its `text-decoration` to `underline` \n - universal selector to set all elements' `color` to `red`\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"- append with id `id4` to `.root`\n - append 5
to `#id4` with arbitrary text and id `id4-{index}` (index is 0-based)\n- write css with:\n - child combinator selector to set its children `color` to `green`\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"- write css with:\n - subsequent-sibling combinator selector to set the `color` of all siblings next to `#id4-1` to `blue` \n - next-sibling combinator selector to set the `color` of `#id4-3`'s next-sibling to `yellow`\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"- write css for elements in `#form`:\n - descendant combinator selector to set `#form` children `color` to `green` \n - set the `color` of all children next to the third child to `blue` \n - set the `color` of the last forth child's next-sibling to `yellow`\n"}
-{"id":"task-7","date":"2025-05-12","level":"challenging","description":"write css for elements in `#form`:\n- set `background-color` to `yellow` for those without attribute `name`\n- set `background-color` to `red` for those whose attribute `name` starts with `form`\n- set `background-color` to `green` for those whose attribute `name` ends with `end`\n- set `background-color` to `blue` for those whose attribute `class` contains `c2`\n- set `background-color` to `white` for those whose attribute `name` equals to `form-1`\n- set `background-color` to `white` for those whose attribute `name` contains `unique`\n- set `background-color` to `white` for those whose attribute `lang` starts with `en` immediately followed by a hyphen\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"use nesting selector to modify css for elements in `#form`:\n- set input's `outline` to `2px solid red` when hovering it\n- set input's `background-color` to `black` when focusing it\n"}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#form`:\n- set `font-size` of all inputs to `20px` when focusing any input\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"- append
with id `id10`(no content) to `.root`\n- modify css to add separate line (height 1px) before and after the `#form`\n- modify css to prepend `><` for any element with no children other than white-space characters \n- do not modify html or js\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- set `background-color` of the third cell in the forth row to `yellow` \n- set `background-color` of all cells in even rows to `lightgray`\n- do not use `!important` anytime\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"modify html and css for `#table`:\n- `cell(x,y)` means the yth cell in the xth row\n- append `
` in 4 cell(1,2), cell(2,3), cell(3,4), cell(4,2)\n- set `background-color` of cells with `
` to `yellow`\n- do not use `!important` anytime\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#form`:\n- set `background-color` to `pink` for all direct children\n- keep setting input's `background-color` to `black` when focusing it\n- do not use `!important` anytime\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- append in cell(1,3) with: \n `
` \n - set enabled control `background-color` to `green`\n - set disabled control `background-color` to `yellow`\n - suffix the required control with a red `*`\n - set invalid control `background-color` to `red`\n- do not use `!important` anytime\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- append in cell(1,4) with: \n `
table\n
form\n
test` \n - set default links `text-decoration` to `underline`\n - set visited links `text-decoration` to `none`\n - set active links `outline` to `1px solid blue`\n- set page's targeted element `background-color` to `lightgreen`\n- do not use `!important` anytime\n"}
-{"id":"task-16","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
`\n- modify css for
in `#id16`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third level `font-size` is `20px`\n - the forth and deeper level `font-size` is `15px`\n"}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
\n
H1
\n \n H1
\n \n H1
\n \n H1
\n \n \n \n `\n- `x` is one of section, article, aside, nav\n- modify css for in `#id17`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third and more level `font-size` is `20px`\n"}
-{"id":"task-18","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
\n
H1
\n \n H1
\n \n H1
\n \n H1
\n \n H1
\n \n \n \n \n `\n- `x` is one of section, article, aside, nav\n- modify css for in `#id18`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third level `font-size` is `20px`\n - the forth and deeper level `font-size` is `15px`\n"}
-{"id":"task-19","date":"2025-05-12","level":"moderate","description":"- modify css for in `#id18`:\n - the first level (direct child) `text-indent` is `0`\n - the second level `text-indent` is `10px`\n - the third level `text-indent` is `20px`\n - the forth and deeper level `text-indent` is `30px`\n"}
-{"id":"task-20","date":"2025-05-12","level":"moderate","description":"- add new css for in `#id18`:\n - do not modify existed css rules\n - the second level `font-style` is `italic`\n - the forth and deeper level `font-weight` is `normal`\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"- append an element
with arbitrary text, class `class1` and id `id1` to `.root`\n- write css to the page with:\n - type selector to set its `padding` to `5px`\n - class selector to set its `text-decoration` to `underline`\n - id selector to set its `font-family` to `monospace`\n- no js, modify html file directly\n","project":"selector"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"- write css to the page with:\n - compound selector (type & class & id) to set `#id1`'s `font-size` to `15px`\n","project":"selector"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"- append with arbitrary text and id `id3` to `.root`\n- write css to the page with:\n - selector list (near to `.class1` property) to set its `text-decoration` to `underline` \n - universal selector to set all elements' `color` to `red`\n","project":"selector"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"- append with id `id4` to `.root`\n - append 5
to `#id4` with arbitrary text and id `id4-{index}` (index is 0-based)\n- write css with:\n - child combinator selector to set its children `color` to `green`\n","project":"selector"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"- write css with:\n - subsequent-sibling combinator selector to set the `color` of all siblings next to `#id4-1` to `blue` \n - next-sibling combinator selector to set the `color` of `#id4-3`'s next-sibling to `yellow`\n","project":"selector"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"- write css for elements in `#form`:\n - descendant combinator selector to set `#form` children `color` to `green` \n - set the `color` of all children next to the third child to `blue` \n - set the `color` of the last forth child's next-sibling to `yellow`\n","project":"selector"}
+{"id":"task-7","date":"2025-05-12","level":"challenging","description":"write css for elements in `#form`:\n- set `background-color` to `yellow` for those without attribute `name`\n- set `background-color` to `red` for those whose attribute `name` starts with `form`\n- set `background-color` to `green` for those whose attribute `name` ends with `end`\n- set `background-color` to `blue` for those whose attribute `class` contains `c2`\n- set `background-color` to `white` for those whose attribute `name` equals to `form-1`\n- set `background-color` to `white` for those whose attribute `name` contains `unique`\n- set `background-color` to `white` for those whose attribute `lang` starts with `en` immediately followed by a hyphen\n","project":"selector"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"use nesting selector to modify css for elements in `#form`:\n- set input's `outline` to `2px solid red` when hovering it\n- set input's `background-color` to `black` when focusing it\n","project":"selector"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#form`:\n- set `font-size` of all inputs to `20px` when focusing any input\n","project":"selector"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"- append
with id `id10`(no content) to `.root`\n- modify css to add separate line (height 1px) before and after the `#form`\n- modify css to prepend `><` for any element with no children other than white-space characters \n- do not modify html or js\n","project":"selector"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- set `background-color` of the third cell in the forth row to `yellow` \n- set `background-color` of all cells in even rows to `lightgray`\n- do not use `!important` anytime\n","project":"selector"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"modify html and css for `#table`:\n- `cell(x,y)` means the yth cell in the xth row\n- append `
` in 4 cell(1,2), cell(2,3), cell(3,4), cell(4,2)\n- set `background-color` of cells with `
` to `yellow`\n- do not use `!important` anytime\n","project":"selector"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#form`:\n- set `background-color` to `pink` for all direct children\n- keep setting input's `background-color` to `black` when focusing it\n- do not use `!important` anytime\n","project":"selector"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- append in cell(1,3) with: \n `
` \n - set enabled control `background-color` to `green`\n - set disabled control `background-color` to `yellow`\n - suffix the required control with a red `*`\n - set invalid control `background-color` to `red`\n- do not use `!important` anytime\n","project":"selector"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"modify css for elements in `#table`:\n- append in cell(1,4) with: \n `
table\n
form\n
test` \n - set default links `text-decoration` to `underline`\n - set visited links `text-decoration` to `none`\n - set active links `outline` to `1px solid blue`\n- set page's targeted element `background-color` to `lightgreen`\n- do not use `!important` anytime\n","project":"selector"}
+{"id":"task-16","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
`\n- modify css for
in `#id16`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third level `font-size` is `20px`\n - the forth and deeper level `font-size` is `15px`\n","project":"selector"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
\n
H1
\n \n H1
\n \n H1
\n \n H1
\n \n \n \n `\n- `x` is one of section, article, aside, nav\n- modify css for in `#id17`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third and more level `font-size` is `20px`\n","project":"selector"}
+{"id":"task-18","date":"2025-05-12","level":"moderate","description":"- append to `.root` with:\n `
\n
H1
\n \n H1
\n \n H1
\n \n H1
\n \n H1
\n \n \n \n \n `\n- `x` is one of section, article, aside, nav\n- modify css for in `#id18`:\n - the first level (direct child) `font-size` is `30px`\n - the second level `font-size` is `25px`\n - the third level `font-size` is `20px`\n - the forth and deeper level `font-size` is `15px`\n","project":"selector"}
+{"id":"task-19","date":"2025-05-12","level":"moderate","description":"- modify css for in `#id18`:\n - the first level (direct child) `text-indent` is `0`\n - the second level `text-indent` is `10px`\n - the third level `text-indent` is `20px`\n - the forth and deeper level `text-indent` is `30px`\n","project":"selector"}
+{"id":"task-20","date":"2025-05-12","level":"moderate","description":"- add new css for in `#id18`:\n - do not modify existed css rules\n - the second level `font-style` is `italic`\n - the forth and deeper level `font-weight` is `normal`\n","project":"selector"}
\ No newline at end of file
diff --git a/datasets/sequelize.jsonl b/datasets/sequelize.jsonl
index 296dcade39ee1ec79f1d5a5cb35f77132254d483..a5f5da4962da53c17fcf50b143acd37eb9b8d4b8 100644
--- a/datasets/sequelize.jsonl
+++ b/datasets/sequelize.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create home page (app/page.tsx) with route '/' showing '🛍️🛍️🛍️ Welcome to Shopping Mart !' in h1 tag 2) create login page (app/login/page.tsx) at route '/login' showing '💡 Please Login First' in h1 tag"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) create a new api (GET /api/usernames) by creating api route file (app/api/usernames/route.ts) 2) in this api, return a string list in body to get all usernames in User Model (model/user.ts), example: ['user1', 'user2'] 3) Hint: import { User } from '@/model' to get Model of User and get usernames by sequelize API"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) add model/product.ts and export it in model/index.ts to create sequelize Model for products (id, name, price, image, description, quantity). 2) POST /api/products to insert product data (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}). Return { success: true, data: {'id': 'xxxx' } } when inserted successfully 3) GET /api/products to fetch all products. Return { success: true, products: [{'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}] } when fetched successfully."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) create api route file (app/api/products/[id]/route.ts) for /api/products/:product_id 2) GET /api/products/:product_id to get single products information, Return { success: true, data: {'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}}, when product not found, return { success: true, data: null } 3) PUT /api/products/:product_id to update products information (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}). Return { success: true, data: {'id': 'xxxx' } } when updated successfully 4) DELETE /api/products/:product_id to delete product data (Return { success: true, data: {'id': 'xxxx' } } when deleted successfully)"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add page with path '/products' to display all products (image, name, price). 2) UI Structure For Product Cards: 
{{name}}
{{price}}
. 3) add a button (.home-go-products-link) in home page to navigate to '/products' 4) .product-card is wrapped in .product-list. 5) create css file to beautify CSS."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add product detail page with path '/products/:product_id' . 2) Add classNames for UI: .product-card, .product-image, .product-name, .product-price, .product_quantity, .product-description. 3) In /product page, When .product-card clicked, goto related product detail page 4) create css file to beautify CSS. 5) If Not Found, show 'Product Not Found'."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) POST /api/auth to login into system with example payload {username: 'xxx', password: 'xxx'} and example response { success: true } 2) GET /api/auth to get the full information of current user, example response {'username': 'xxx', 'role': 'xxx', 'coin': xxx}, if not login, return 401 status 3) use 'jose' to generate JWT in cookie by key: 'TOKEN', the payload of JWT follow example{'username': 'xxx', 'role': 'xxx'}, secret is 'WEBBENCH-SECRET', use default HS256 algorithm and expired in 1 hour."}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Create login form (.login-form) with username input (.username), password input (.password), and submit button (.login-btn) 2) on successful login redirect to home page showing 'Hello {username}!'(h1), on failed login show 'Login Failed' message 3) The username in home page should be rendered in Server Side, create a new Server Action (actions/auth.ts) to get current auth 4) create css file to beautify CSS."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Create register page with route '/register' with form (.register-form) containing: username (input.username), password (input.password), confirm password input (input.confirm-password), and submit button (.register-button) 2) Show error messages in .error-message div for validation failures, error text is: 'Passwords must match', 'Username already exists' 3) Redirect to home page and auto login when register successful 4) Add .login-link, clicked to /login 5) Add a .register-link in /login page, clicked to /register 6) Add Server Action to handle register form submission, the initial coin for new user is 1000 7) create CSS file to beautify CSS."}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Render STATIC page /profile/:username to display the user profile with UI: h1.profile-username, .profile-coin. 2) Users can only visit their own profile, and Admins can visit the profiles of all people. If the privilege is violated, redirect to the /login page. 3) If User not found, shows User not found 4) Create CSS file to beautify CSS. DO NOT use a third-party UI library."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a component in components/HeaderUserMenu.tsx: if not logged in, display a button (.header-go-login) that navigates to /login; if logged in, display the username (.header-username) on the right side of the site header. 2) If user is logged in, when the .header-username is hovered, show a dropdown menu with: a button (.header-logout-btn) for logging out, and a button (.header-go-user-profile) for navigating to the current user's profile page. 3) Create CSS file to beautify CSS. DO NOT use a third-party UI library."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add Recharge Button (.recharge-button) in Profile page, button is only visible when the user of the profile is current user. 2) When Recharge Button clicked, recharge 1000 coin 3) Create CSS file to beautify CSS. Constraint: DO NOT use a third-party UI library. Keep profile page STATIC."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create Admin Portal for admin role with routes '/admin/products' and '/admin/users'. 2) Every products and users are wrapped in table row with IDs #admin_product_{product_id} and #admin_user_{username} respectively. Display the full information of products and users in table rows 2) In Home page, add .home-go-product-portal-link and .home-go-user-portal-link to navigate to respective portals. 3) For any route inside /admin, Redirect to /login if no privilege. 4) Create CSS file to beautify CSS."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Implement Wishlist feature where users can add products to their wishlist using button (.add-to-wishlist) in the product detail page. 2) Create a separate Wishlist page at route '/wishlist' displaying all products the user has added, structured as . 3) Add functionality to remove items from wishlist with button (.remove-from-wishlist). 4) Store wishlist items in the database 5) Add button (.home-go-wish-list) in home page to navigate to '/wishlist' 6) Create CSS file to beautify the Wishlist UI. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) In components/Cart.tsx, create an appealing cart button .cart-button that shows the number of items in the cart. When clicked, it shows a popover of all items in the cart. Wrap Product Title, image, quantity (.cart-item-quantity), remove button (.cart-item-remove) in #cart_item_{product_id} 2) In the Detail Page, add an .add-to-cart-button. When clicked, add this product to the cart. 3) Store Cart Info in the DB for the current User. 4) Place Shopping Cart which can be seen in every page in the right-bottom of page 5) Create CSS file to beautify CSS. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) Add a button .place-order-in-cart in the Popover of Shopping Cart; when clicked, create an order with 'Pending payment' status without paying or decreasing product quantity, and redirect to /order/:order-id; 2) When Order created, clear Cart 3) Add .header-go-to-my-orders to the dropdown in HeaderUserMenu.tsx; when clicked, go to the Orders Page of the current user; Each order in my orders page should be displayed with id, status total price inside #my_order_${order_id}; and clicking on an order should jump to the order detail page at /order/:order-id; 4) In /order/:order-id, display the product title, images, price in tr#product_in_order_${product_id}; display the order price and order status. 5) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add the .pay-my-order button to /order/:order-id; Button is visible when the status is 'Pending payment' 2) When .pay-my-order is clicked, the status of the order becomes 'Finished', and the Coin is paid by current user; 3) Decrease product quantity; 4) If payment fails, update the order status to 'Failed'. 5) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add a .refund-button in Order Detail Page when order is paid; 2) When .refund-button is clicked, change the order status to 'Refund Reviewing'; 3) Create /admin/orders for admin to manage all orders, with a unique identifier #admin_order_{order_id}; 4) Add a .pass-refund-review-button in #admin_order_{order_id} if the order is under 'Refund Reviewing'; 5) When .pass-refund-review-button is clicked, update the order status to 'Refund Passed' and ensure that the Coin is refunded to the user's account. 6) In Home page, add .home-go-order-portal-link to navigate to /admin/orders. 7) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Implement a Comment and Rating System where users can leave feedback on products only after completing a payment transaction. Store comments in DB. 2) On the product detail page, display the average rating of the product at the top, using classNames: .product-average-rating (with number inside). 3) When a user has purchased the product, display a form on the product page with classNames: .comment-form, .rate-input with five stars inside: (.rate-1-star, .rate-2-star, ... , .rate-5-star), , .comment-textarea, .comment-submit-button allowing users to submit their ratings and comments. 4) Display all comments in a list on the product page, with each comment showing the username, the rating, and the comment text, styled using classNames: .comment-item, .comment-username, .comment-rating(with number inside), .comment-text. 5) Every User can ONLY comment a product for one time 6) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) Implement an invitation system where current users can view their unique .referral-code (with pure referral-code as innerText) on their profile page, explaining the invitation rule under .referral-code: 'When a new user registers through your referral code, you will earn $888, and an additional $1888 when they pay for their first order.' And the system should automatically credit the referring user with reward by this rule. 2) On the register page, add a .referral-code-input field allowing new users to input the referral code during registration. 3) Create CSS files to beautify the invitation system, ensuring a cohesive look. Constraint: DO NOT use a third-party UI library."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create home page (app/page.tsx) with route '/' showing '🛍️🛍️🛍️ Welcome to Shopping Mart !' in h1 tag 2) create login page (app/login/page.tsx) at route '/login' showing '💡 Please Login First' in h1 tag","project":"sequelize"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) create a new api (GET /api/usernames) by creating api route file (app/api/usernames/route.ts) 2) in this api, return a string list in body to get all usernames in User Model (model/user.ts), example: ['user1', 'user2'] 3) Hint: import { User } from '@/model' to get Model of User and get usernames by sequelize API","project":"sequelize"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) add model/product.ts and export it in model/index.ts to create sequelize Model for products (id, name, price, image, description, quantity). 2) POST /api/products to insert product data (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}). Return { success: true, data: {'id': 'xxxx' } } when inserted successfully 3) GET /api/products to fetch all products. Return { success: true, products: [{'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}] } when fetched successfully.","project":"sequelize"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) create api route file (app/api/products/[id]/route.ts) for /api/products/:product_id 2) GET /api/products/:product_id to get single products information, Return { success: true, data: {'id':'xxx', 'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}}, when product not found, return { success: true, data: null } 3) PUT /api/products/:product_id to update products information (Request Body follow {'name': 'SKU', 'price': 1234, image: 'xxx', description: 'xxx', quantity: 100}). Return { success: true, data: {'id': 'xxxx' } } when updated successfully 4) DELETE /api/products/:product_id to delete product data (Return { success: true, data: {'id': 'xxxx' } } when deleted successfully)","project":"sequelize"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add page with path '/products' to display all products (image, name, price). 2) UI Structure For Product Cards: 
{{name}}
{{price}}
. 3) add a button (.home-go-products-link) in home page to navigate to '/products' 4) .product-card is wrapped in .product-list. 5) create css file to beautify CSS.","project":"sequelize"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add product detail page with path '/products/:product_id' . 2) Add classNames for UI: .product-card, .product-image, .product-name, .product-price, .product_quantity, .product-description. 3) In /product page, When .product-card clicked, goto related product detail page 4) create css file to beautify CSS. 5) If Not Found, show 'Product Not Found'.","project":"sequelize"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) POST /api/auth to login into system with example payload {username: 'xxx', password: 'xxx'} and example response { success: true } 2) GET /api/auth to get the full information of current user, example response {'username': 'xxx', 'role': 'xxx', 'coin': xxx}, if not login, return 401 status 3) use 'jose' to generate JWT in cookie by key: 'TOKEN', the payload of JWT follow example{'username': 'xxx', 'role': 'xxx'}, secret is 'WEBBENCH-SECRET', use default HS256 algorithm and expired in 1 hour.","project":"sequelize"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Create login form (.login-form) with username input (.username), password input (.password), and submit button (.login-btn) 2) on successful login redirect to home page showing 'Hello {username}!'(h1), on failed login show 'Login Failed' message 3) The username in home page should be rendered in Server Side, create a new Server Action (actions/auth.ts) to get current auth 4) create css file to beautify CSS.","project":"sequelize"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Create register page with route '/register' with form (.register-form) containing: username (input.username), password (input.password), confirm password input (input.confirm-password), and submit button (.register-button) 2) Show error messages in .error-message div for validation failures, error text is: 'Passwords must match', 'Username already exists' 3) Redirect to home page and auto login when register successful 4) Add .login-link, clicked to /login 5) Add a .register-link in /login page, clicked to /register 6) Add Server Action to handle register form submission, the initial coin for new user is 1000 7) create CSS file to beautify CSS.","project":"sequelize"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Render STATIC page /profile/:username to display the user profile with UI: h1.profile-username, .profile-coin. 2) Users can only visit their own profile, and Admins can visit the profiles of all people. If the privilege is violated, redirect to the /login page. 3) If User not found, shows User not found 4) Create CSS file to beautify CSS. DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a component in components/HeaderUserMenu.tsx: if not logged in, display a button (.header-go-login) that navigates to /login; if logged in, display the username (.header-username) on the right side of the site header. 2) If user is logged in, when the .header-username is hovered, show a dropdown menu with: a button (.header-logout-btn) for logging out, and a button (.header-go-user-profile) for navigating to the current user's profile page. 3) Create CSS file to beautify CSS. DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add Recharge Button (.recharge-button) in Profile page, button is only visible when the user of the profile is current user. 2) When Recharge Button clicked, recharge 1000 coin 3) Create CSS file to beautify CSS. Constraint: DO NOT use a third-party UI library. Keep profile page STATIC.","project":"sequelize"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create Admin Portal for admin role with routes '/admin/products' and '/admin/users'. 2) Every products and users are wrapped in table row with IDs #admin_product_{product_id} and #admin_user_{username} respectively. Display the full information of products and users in table rows 2) In Home page, add .home-go-product-portal-link and .home-go-user-portal-link to navigate to respective portals. 3) For any route inside /admin, Redirect to /login if no privilege. 4) Create CSS file to beautify CSS.","project":"sequelize"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Implement Wishlist feature where users can add products to their wishlist using button (.add-to-wishlist) in the product detail page. 2) Create a separate Wishlist page at route '/wishlist' displaying all products the user has added, structured as 
. 3) Add functionality to remove items from wishlist with button (.remove-from-wishlist). 4) Store wishlist items in the database 5) Add button (.home-go-wish-list) in home page to navigate to '/wishlist' 6) Create CSS file to beautify the Wishlist UI. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) In components/Cart.tsx, create an appealing cart button .cart-button that shows the number of items in the cart. When clicked, it shows a popover of all items in the cart. Wrap Product Title, image, quantity (.cart-item-quantity), remove button (.cart-item-remove) in #cart_item_{product_id} 2) In the Detail Page, add an .add-to-cart-button. When clicked, add this product to the cart. 3) Store Cart Info in the DB for the current User. 4) Place Shopping Cart which can be seen in every page in the right-bottom of page 5) Create CSS file to beautify CSS. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) Add a button .place-order-in-cart in the Popover of Shopping Cart; when clicked, create an order with 'Pending payment' status without paying or decreasing product quantity, and redirect to /order/:order-id; 2) When Order created, clear Cart 3) Add .header-go-to-my-orders to the dropdown in HeaderUserMenu.tsx; when clicked, go to the Orders Page of the current user; Each order in my orders page should be displayed with id, status total price inside #my_order_${order_id}; and clicking on an order should jump to the order detail page at /order/:order-id; 4) In /order/:order-id, display the product title, images, price in tr#product_in_order_${product_id}; display the order price and order status. 5) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add the .pay-my-order button to /order/:order-id; Button is visible when the status is 'Pending payment' 2) When .pay-my-order is clicked, the status of the order becomes 'Finished', and the Coin is paid by current user; 3) Decrease product quantity; 4) If payment fails, update the order status to 'Failed'. 5) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add a .refund-button in Order Detail Page when order is paid; 2) When .refund-button is clicked, change the order status to 'Refund Reviewing'; 3) Create /admin/orders for admin to manage all orders, with a unique identifier #admin_order_{order_id}; 4) Add a .pass-refund-review-button in #admin_order_{order_id} if the order is under 'Refund Reviewing'; 5) When .pass-refund-review-button is clicked, update the order status to 'Refund Passed' and ensure that the Coin is refunded to the user's account. 6) In Home page, add .home-go-order-portal-link to navigate to /admin/orders. 7) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Implement a Comment and Rating System where users can leave feedback on products only after completing a payment transaction. Store comments in DB. 2) On the product detail page, display the average rating of the product at the top, using classNames: .product-average-rating (with number inside). 3) When a user has purchased the product, display a form on the product page with classNames: .comment-form, .rate-input with five stars inside: (.rate-1-star, .rate-2-star, ... , .rate-5-star), , .comment-textarea, .comment-submit-button allowing users to submit their ratings and comments. 4) Display all comments in a list on the product page, with each comment showing the username, the rating, and the comment text, styled using classNames: .comment-item, .comment-username, .comment-rating(with number inside), .comment-text. 5) Every User can ONLY comment a product for one time 6) Create CSS files to beautify CSS. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) Implement an invitation system where current users can view their unique .referral-code (with pure referral-code as innerText) on their profile page, explaining the invitation rule under .referral-code: 'When a new user registers through your referral code, you will earn $888, and an additional $1888 when they pay for their first order.' And the system should automatically credit the referring user with reward by this rule. 2) On the register page, add a .referral-code-input field allowing new users to input the referral code during registration. 3) Create CSS files to beautify the invitation system, ensuring a cohesive look. Constraint: DO NOT use a third-party UI library.","project":"sequelize"}
\ No newline at end of file
diff --git a/datasets/styled-components.jsonl b/datasets/styled-components.jsonl
index b21c13c06b01600707953a7d59389ba24f6eb0f5..4270fb6e4bf48c313accfb714408a951456674fa 100644
--- a/datasets/styled-components.jsonl
+++ b/datasets/styled-components.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create 'global.style.tsx' file, export GlobalStyle (created by styled-components) to set the global style for this App; 2) the global style should set the body's padding and margin to 0; 3) import GlobalStyle into App.tsx"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx fixed on the top of the page, with 'Hello Blog' as its text. 2) Create components/Footer.tsx fixed on the bottom of the page 3) Create components/Main.tsx which occupies the remaining space, with 'Welcome to Blog System' as its text 4) Add className 'site-header' to Header, 'site-footer' to Footer, 'site-main' to Main. 5) Import and render Header, Main, Footer in App.tsx 6) Constraint: use styled-components to set appealing style for Header、Footer"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Create components/Button.tsx, export default ONLY a styled.button component with props '$type' 2) when $type of Button is 'primary', background becomes #0064fa, 'secondary' becomes #0095ee, 'danger' becomes #d52515 3) Render Three Buttons in the RIGHT of Header: 'primary' Button with text 'Add Blog', 'secondary' Button with text 'Read Blogs', 'danger' Button with text 'Theme' 4) Constraint: use styled-components to set the appealing style"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) When Button Hovered, opacity of Button switched to 0.7; 2) When Button Focused, the size enlarged by 120% 3) Constraint: use styled-components to set the appealing style"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Render A secondary Button with text 'My Friends' in Footer 2) Only if when Button displayed in Footer, the backgroundColor of text becomes transparent, and the color the text in Button is #0095ee 4) Constraint: use styled-components to set the appealing style"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Create three pages: components/AddBlog.tsx (with h1 'Add Blog'), components/ReadBlogs.tsx (with h1 'Read Blogs'), components/ThemePage.tsx (with h1 'Theme') 2) Render pages in Main.tsx, only one page is visible to User at one time 3) When click 'Add Blog', switch to show AddBlog.tsx, when click 'Read Blogs', switch to show ReadBlogs.tsx, when click 'Theme', switch to show ThemePage.tsx 4) When No Button in Header Clicked, shows 'Welcome to Blog System' by default 5) Constraint: use styled-components to set the appealing style"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) When page in Main.tsx switched, switch pages by animations in 1s: new page moved from the right side of viewport to show it 2) Create keyframes (import from 'styled-components') and PageContainer (styled.div with classname .page-container) in Main.tsx to implement this feature 3) Constraint: use styled-components to set the appealing style&animation"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":" 3) create context/BlogContext.tsx to manage blog list data 2) The initial Blog List Data is [{title: 'Morning', content: 'Morning My Friends'}, {title: 'Travel', content: 'I love traveling!'}] 3) In ReadBlogs.tsx, render titles of blogs in div elements (.list-item) 4) Constraint: use styled-components to set the appealing style"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Make .list-item clickable, when clicked, switch to show the content of the blog in a div element (.blog-content) 2) .blog-content is placed in the right of Blog List. 3) When Blog Content Changed, shows animation for .blog-content: switch content opacity from 0 to 1 in 1s 4) Constraint: use styled-components to set the appealing style&animation"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) create components/BlogForm.tsx, which consists of input(with placeholder 'Title'), textarea(with placeholder 'Content') a submit button (.submit-btn) 2) Add a BlogForm.tsx to AddBlog.tsx 3) when Form in AddBlog submitted, submit the Blog and switch to ReadBlogs Page, select the Blog just submitted 4) Constraint: use styled-components to set the appealing style&animation"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) When Submit Blog clicked, add new animation to .blog-content in ReadBlogs.tsx: fade in from the bottom side of viewport 2) The animation of .blog-content will not change when .list-item in ReadBlogs.tsx clicked 3) Constraint: use styled-components to set the appealing style&animation"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Create components/Markdown.tsx, support Markdown Parse and render for blog content in ReadBlogs.tsx 2) Use styled-components to set the text color of elements in Markdown: h1 #000000, h2 #333333, h3 #666666, h4 #999999 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.tsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) The Tooltip should be appended to document.body. 3) Shows Tooltip with text '🪄' when hovered on 'Add Blog' Button; Shows Tooltip with text '🍉' when hovered on 'Read Blogs' Button; Shows Tooltip with text '🎨' when hovered on 'Theme' Button; 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Create components/Modal.tsx that display a modal (.modal) appended to document.body. 2) Modal accepts title(JSX.Element) and content(JSX.Element) as its props 3) The overlay of Modal (.modal-overlay) has opacity 0.3 and backgroundColor #999999 4) The Modal should have a close button (.close-btn) 5) Add a Preview Button(.preview-btn) in BlogForm.tsx, when clicked, toggle a Modal with title ('Preview Blog Markdown') to shows the Markdown-Parsed Blog Content, Markdown style are same as the style of Blog Content in ReadBlogs.tsx 6) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.tsx to display a one-line message (fontSize: 12px) in a appealing green box (.toast) at the top of the page for 2000ms. 2) Display 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When hovered in 'My Friends' Button in Footer, shows Tooltip with text '🐶🐱🐭🐹🐰🦊🐻🐼' in the TOP of 'My Friends' 2) Custom style of Tooltip by using 'styled(Tooltip)' in Footer.tsx, the fontSize of text in this Tooltip is 50px 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) When clicked in 'My Friends' Button in Footer, shows Modal with title ('My Friends') 2) Shows Animals 🐶🐱🐭🐹🐰🦊🐻🐼 in the content of Modal, every animal is wrapped in .animal, and every animal has a infinite animation: rotate from -45deg to 45deg in 1s, and rotate back from 45deg to -45deg in 1s 3) Custom style of this Modal by using 'styled(Modal)' in Footer.tsx, the overlay Background Color of Modal is customized to #FF69B4 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) create context/ThemeContent.tsx by using styled's ThemeProvider to manage the theme configuration. 2) In Theme Page, add input(.header-background) with label 'Header Background' which will represent the background color of Header, and add input(.footer-background) with label 'Footer Background' which will represent the background color of Footer 4) When the input value in Theme Page changed, the theme configuration updated instantly 5) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation "}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) In Theme Page, add input(.markdown-h1) with label 'Markdown H1' which will represent the text color of Markdown H1, add input(.markdown-h2) with label 'Markdown H2' which will represent the text color of Markdown H2, add input(.markdown-h3) with label 'Markdown H3' which will represent the text color of Markdown H3, add input(.markdown-h4) with label 'Markdown H4' which will represent the text color of Markdown H4 2) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) In Theme Page, add input(.button-primary) with label 'Button Primary' which will represent the background color of Button Primary, add input(.button-secondary) with label 'Button Secondary' which will represent the background color of Button Secondary, add input(.button-danger) with label 'Button Danger' which will represent the background color of Button Danger 2) In Theme Page, add input(.toast-background) with label 'Toast Background' which will represent the background color of Toast 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) create 'global.style.tsx' file, export GlobalStyle (created by styled-components) to set the global style for this App; 2) the global style should set the body's padding and margin to 0; 3) import GlobalStyle into App.tsx","project":"styled-components"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx fixed on the top of the page, with 'Hello Blog' as its text. 2) Create components/Footer.tsx fixed on the bottom of the page 3) Create components/Main.tsx which occupies the remaining space, with 'Welcome to Blog System' as its text 4) Add className 'site-header' to Header, 'site-footer' to Footer, 'site-main' to Main. 5) Import and render Header, Main, Footer in App.tsx 6) Constraint: use styled-components to set appealing style for Header、Footer","project":"styled-components"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Create components/Button.tsx, export default ONLY a styled.button component with props '$type' 2) when $type of Button is 'primary', background becomes #0064fa, 'secondary' becomes #0095ee, 'danger' becomes #d52515 3) Render Three Buttons in the RIGHT of Header: 'primary' Button with text 'Add Blog', 'secondary' Button with text 'Read Blogs', 'danger' Button with text 'Theme' 4) Constraint: use styled-components to set the appealing style","project":"styled-components"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) When Button Hovered, opacity of Button switched to 0.7; 2) When Button Focused, the size enlarged by 120% 3) Constraint: use styled-components to set the appealing style","project":"styled-components"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Render A secondary Button with text 'My Friends' in Footer 2) Only if when Button displayed in Footer, the backgroundColor of text becomes transparent, and the color the text in Button is #0095ee 4) Constraint: use styled-components to set the appealing style","project":"styled-components"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Create three pages: components/AddBlog.tsx (with h1 'Add Blog'), components/ReadBlogs.tsx (with h1 'Read Blogs'), components/ThemePage.tsx (with h1 'Theme') 2) Render pages in Main.tsx, only one page is visible to User at one time 3) When click 'Add Blog', switch to show AddBlog.tsx, when click 'Read Blogs', switch to show ReadBlogs.tsx, when click 'Theme', switch to show ThemePage.tsx 4) When No Button in Header Clicked, shows 'Welcome to Blog System' by default 5) Constraint: use styled-components to set the appealing style","project":"styled-components"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) When page in Main.tsx switched, switch pages by animations in 1s: new page moved from the right side of viewport to show it 2) Create keyframes (import from 'styled-components') and PageContainer (styled.div with classname .page-container) in Main.tsx to implement this feature 3) Constraint: use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":" 3) create context/BlogContext.tsx to manage blog list data 2) The initial Blog List Data is [{title: 'Morning', content: 'Morning My Friends'}, {title: 'Travel', content: 'I love traveling!'}] 3) In ReadBlogs.tsx, render titles of blogs in div elements (.list-item) 4) Constraint: use styled-components to set the appealing style","project":"styled-components"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Make .list-item clickable, when clicked, switch to show the content of the blog in a div element (.blog-content) 2) .blog-content is placed in the right of Blog List. 3) When Blog Content Changed, shows animation for .blog-content: switch content opacity from 0 to 1 in 1s 4) Constraint: use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) create components/BlogForm.tsx, which consists of input(with placeholder 'Title'), textarea(with placeholder 'Content') a submit button (.submit-btn) 2) Add a BlogForm.tsx to AddBlog.tsx 3) when Form in AddBlog submitted, submit the Blog and switch to ReadBlogs Page, select the Blog just submitted 4) Constraint: use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) When Submit Blog clicked, add new animation to .blog-content in ReadBlogs.tsx: fade in from the bottom side of viewport 2) The animation of .blog-content will not change when .list-item in ReadBlogs.tsx clicked 3) Constraint: use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Create components/Markdown.tsx, support Markdown Parse and render for blog content in ReadBlogs.tsx 2) Use styled-components to set the text color of elements in Markdown: h1 #000000, h2 #333333, h3 #666666, h4 #999999 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed.","project":"styled-components"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.tsx that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) The Tooltip should be appended to document.body. 3) Shows Tooltip with text '🪄' when hovered on 'Add Blog' Button; Shows Tooltip with text '🍉' when hovered on 'Read Blogs' Button; Shows Tooltip with text '🎨' when hovered on 'Theme' Button; 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation.","project":"styled-components"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Create components/Modal.tsx that display a modal (.modal) appended to document.body. 2) Modal accepts title(JSX.Element) and content(JSX.Element) as its props 3) The overlay of Modal (.modal-overlay) has opacity 0.3 and backgroundColor #999999 4) The Modal should have a close button (.close-btn) 5) Add a Preview Button(.preview-btn) in BlogForm.tsx, when clicked, toggle a Modal with title ('Preview Blog Markdown') to shows the Markdown-Parsed Blog Content, Markdown style are same as the style of Blog Content in ReadBlogs.tsx 6) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.tsx to display a one-line message (fontSize: 12px) in a appealing green box (.toast) at the top of the page for 2000ms. 2) Display 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When hovered in 'My Friends' Button in Footer, shows Tooltip with text '🐶🐱🐭🐹🐰🦊🐻🐼' in the TOP of 'My Friends' 2) Custom style of Tooltip by using 'styled(Tooltip)' in Footer.tsx, the fontSize of text in this Tooltip is 50px 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) When clicked in 'My Friends' Button in Footer, shows Modal with title ('My Friends') 2) Shows Animals 🐶🐱🐭🐹🐰🦊🐻🐼 in the content of Modal, every animal is wrapped in .animal, and every animal has a infinite animation: rotate from -45deg to 45deg in 1s, and rotate back from 45deg to -45deg in 1s 3) Custom style of this Modal by using 'styled(Modal)' in Footer.tsx, the overlay Background Color of Modal is customized to #FF69B4 4) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) create context/ThemeContent.tsx by using styled's ThemeProvider to manage the theme configuration. 2) In Theme Page, add input(.header-background) with label 'Header Background' which will represent the background color of Header, and add input(.footer-background) with label 'Footer Background' which will represent the background color of Footer 4) When the input value in Theme Page changed, the theme configuration updated instantly 5) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation ","project":"styled-components"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) In Theme Page, add input(.markdown-h1) with label 'Markdown H1' which will represent the text color of Markdown H1, add input(.markdown-h2) with label 'Markdown H2' which will represent the text color of Markdown H2, add input(.markdown-h3) with label 'Markdown H3' which will represent the text color of Markdown H3, add input(.markdown-h4) with label 'Markdown H4' which will represent the text color of Markdown H4 2) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) In Theme Page, add input(.button-primary) with label 'Button Primary' which will represent the background color of Button Primary, add input(.button-secondary) with label 'Button Secondary' which will represent the background color of Button Secondary, add input(.button-danger) with label 'Button Danger' which will represent the background color of Button Danger 2) In Theme Page, add input(.toast-background) with label 'Toast Background' which will represent the background color of Toast 3) Constraint: DO NOT use any third-party packages; ONLY React and styled-components are allowed. use styled-components to set the appealing style&animation","project":"styled-components"}
\ No newline at end of file
diff --git a/datasets/stylus.jsonl b/datasets/stylus.jsonl
index 3bc859b2ed72555cc3c72a12cd4c5a5add52c4a0..571a3b65e74cb4188c3fa4e7a181ce376f030816 100644
--- a/datasets/stylus.jsonl
+++ b/datasets/stylus.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form. Save styles to 'common/Question.styl' imported by 'common.styl'."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page. Extract all colors to stylus nested variable '$color', all padding/margin value to stylus variables (using computed value) and all border properties to mixins. Use stylus functions to handle similar colors, e.g. lighter or darker colors. Save these variables and mixins to 'common/config.styl' which should be imported by 'common.styl'."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'. Save styles to 'common/SurveyDesign.styl' imported by 'common.styl'."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable. Save styles to 'common/SurveyPreview.styl' imported by 'common.styl'."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place. Save styles to 'common/SingleSelectionQuestion.styl' imported by 'common.styl'."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js', 'common/MultiSelectionQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place."}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js', 'common/OpenQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js', 'common/RatingQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1."}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js', 'common/RankingQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control."}
-{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js', 'common/NpsQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js', 'common/LikertQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time. Save styles to 'common/Content.styl' imported by 'common.styl'."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion."}
-{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength."}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js', 'common/DataQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form. Save styles to 'common/Question.styl' imported by 'common.styl'.","project":"stylus"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page. Extract all colors to stylus nested variable '$color', all padding/margin value to stylus variables (using computed value) and all border properties to mixins. Use stylus functions to handle similar colors, e.g. lighter or darker colors. Save these variables and mixins to 'common/config.styl' which should be imported by 'common.styl'.","project":"stylus"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'. Save styles to 'common/SurveyDesign.styl' imported by 'common.styl'.","project":"stylus"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'.","project":"stylus"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable. Save styles to 'common/SurveyPreview.styl' imported by 'common.styl'.","project":"stylus"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place. Save styles to 'common/SingleSelectionQuestion.styl' imported by 'common.styl'.","project":"stylus"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js', 'common/MultiSelectionQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place.","project":"stylus"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js', 'common/OpenQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel.","project":"stylus"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js', 'common/RatingQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1.","project":"stylus"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js', 'common/RankingQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control.","project":"stylus"}
+{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js', 'common/NpsQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control.","project":"stylus"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js', 'common/LikertQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form.","project":"stylus"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place.","project":"stylus"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time. Save styles to 'common/Content.styl' imported by 'common.styl'.","project":"stylus"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion.","project":"stylus"}
+{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength.","project":"stylus"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting.","project":"stylus"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js', 'common/DataQuestion.styl') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'.","project":"stylus"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page.","project":"stylus"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel.","project":"stylus"}
\ No newline at end of file
diff --git a/datasets/survey.jsonl b/datasets/survey.jsonl
index 10de12814035e03f5d8514404f88493e7a30f9e3..563eadcb5db10de79fd2ace95e829549fbf42f3e 100644
--- a/datasets/survey.jsonl
+++ b/datasets/survey.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place."}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1."}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control."}
-{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion."}
-{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength."}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"JS class Question constructor params are: title (string), name (string), preview (boolean, default false), and has a member 'root'. 'Question.root' is a fieldset (class 'q', id is param 'name',) containing a title legend (class 'q-title') and a body container (class 'q-body'). Save codes as es-module file 'common/Question.js'. Add a button 'Add Question' (class 'add-question') in 'design.js', and click it to create a Question (random title and unique name) whose root is prepended to the form.","project":"survey"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"In design page, a Question title is clicked to edit (contenteditable=true) in place. In preview page, title can not be edited. Append 'Question.root' with a config panel (class 'q-config') containing a button (class 'q-remove') clicked to remove the question from the form. Config panel should be hidden in preview page.","project":"survey"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Class SurveyDesign constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Save codes to 'common/SurveyDesign.js' imported by 'design.js'. Move '.add-question' button codes to 'common/SurveyDesign.js' which should import './Question.js'.","project":"survey"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add 'Save' button (class 'save') and 'Preview' button (class 'preview') in 'common/SurveyDesign.js'. Click 'Save' button to save Survey data to 'localStorage.data'. Survey data format is like `{title:'survey title', questions:[{className:'Question', title:'title 1', name:'question1'}, {className:'Question', title:'title2', name:'question2'}]}`. Each type of question's JSON data should contain all properties from constructor params and configs. Click 'Preview' button to save Survey data and open preview page in new window. Save codes to 'common/SurveyDesign.js'.","project":"survey"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"Class SurveyPreview (file 'common/SurveyPreview.js', used by 'preview.js') constructor params are: formSelector (string), title (string). Method 'prependQuestion(question)' and 'appendQuestion(question)' are used to prepend/append a 'question.root' to the form (got by param 'formSelector'). Create a SurveyPreview instance with data parsed from 'localStorage.data' and all questions should use preview mode in which config panel should be hidden and question can not be editable.","project":"survey"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Class SingleSelectionQuestion (file 'common/SingleSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use radio as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-single') in 'common/SurveyDesign.js', and click it to create a SingleSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it (contenteditable=true) in place.","project":"survey"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Class MultiSelectionQuestion (file 'common/MultiSelectionQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Use checkbox as selection control whose value is the options index. Options are rendered in '.q-body'. Add a button (class 'add-multi') in 'common/SurveyDesign.js', and click it to create a MultiSelectionQuestion (random title, unique name, 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page each option row (class 'option') in '.q-body', user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place.","project":"survey"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Class OpenQuestion (file 'common/OpenQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), isMultilines (boolean). When isMultilines is false question value does not contain any line break character. Add a button (class 'add-open') in 'common/SurveyDesign.js', and click it to create an OpenQuestion (random title, unique name) whose root is prepended to the form. Add a checkbox (class 'q-multilines') associated with 'OpenQuestion.isMultilines' to the config panel.","project":"survey"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Class RatingQuestion (file 'common/RatingQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), starCount (number, default 5). Add a button (class 'add-rating') in 'common/SurveyDesign.js', and click it to create a RatingQuestion (random title, unique name) whose root is prepended to the form. Add a config panel checkbox (class 'q-starCount') associated with 'RatingQuestion.starCount'. Highlight star options (class 'option') up to the clicked star option, and get the rating value (stored in param-named control) from 0 to 1.","project":"survey"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Class RankingQuestion (file 'common/RankingQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array). Add a button (class 'add-ranking') in 'common/SurveyDesign.js', and click it to create a RankingQuestion (random title, unique name and 3 random options) whose root is prepended to the form. Click config panel button (class 'add-option') to add an option. In design page, each option row (class 'option'), user can click button (class 'remove-option') to remove an option, click option text (class 'option-text') to edit it in place. In preview page, insert after the target option (class 'option') when dragging the source option to drop into the target one; Store comma separated option indices in param-named control.","project":"survey"}
+{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Class NpsQuestion (file 'common/NpsQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean). Add a button (class 'add-nps') in 'common/SurveyDesign.js', and click it to create a NpsQuestion (random title, unique name) whose root is prepended the form. In preview page, highlight the clicked score option (class 'option'), and store score (0-10) in param-named control.","project":"survey"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Class LikertQuestion (file 'common/LikertQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), options (string array), statements (string array). LikertQuestion is a table whose each row represents a statement (single selection), and each column is a radio option. Store each statement selection value in the control whose name is like {param-name}_{statement-index}. Add a button (class 'add-likert') in 'common/SurveyDesign.js', and click it to create a LikertQuestion (random title, unique name, 5 random options, 3 statements) whose root is prepended to the form.","project":"survey"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Click config panel button (class 'add-statement') to add an statement row. In design page each statement row (class 'statement'), user can click button (class 'remove-statement') to remove an statement row, click statement text (class 'statement-text') to edit it in place. In design page each option cell (class 'option'), user can click button (class 'add-option') to add an option column, click button (class 'remove-option') to remove an option column, click option text (class 'option-text') to edit it in place.","project":"survey"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add questions contents (class 'contents', file 'common/Contents.js' used by 'common/SurveyDesign.js' and 'common/SurveyPreview.js') panel fixed at the right side of the page. Contents can not cover any question content. Each contents item (class 'contents-item') has the text from the associated question's title. Click each contents item to scroll page to the associated question. Update contents after questions updated in the form. Insert after the target contents item when dragging the source one into the target one; Change the position of associated questions at the same time.","project":"survey"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Add a config panel checkbox (class 'q-required') associated with Question.required (boolean, default false). Preview page form can not be submitted when any required question has no/empty value. Give priority to implement 'required' feature using each Question's form controls 'required' attribute. Implement 'required' feature for SingleSelectionQuestion, NpsQuestion, LikertQuestion, RatingQuestion.","project":"survey"}
+{"id":"task-16","date":"2025-05-12","level":"moderate","description":"Add a config panel checkbox (class 'q-minLength') associated with 'OpenQuestion.minLength' (number, default 0). A required OpenQuestion's answer length should be greater than 0. OpenQuestion's answer length should be equal or greater than minLength.","project":"survey"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"A required MultiSelectionQuestion should contain at least one checked option. If not valid, use alert dialog to display information and prevent form submitting.","project":"survey"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Class DataQuestion (file 'common/DataQuestion.js') inherits from Question. Its constructor params are: title (string), name (string), preview (boolean), type (one of url/tel/email/date/number, as input element type). Add a button (class 'add-data') in 'common/SurveyDesign.js', and click it to create a DataQuestion (random title, unique name, random type) whose root is prepended to the form. Add a config panel select (class 'q-type', options url/tel/email/date/number) associated with 'DataQuestion.type'.","project":"survey"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a config checkbox 'Shuffle' (class 'q-shuffle') and 'isShuffleMode' property for SingleSelectionQuestion, MultiSelectionQuestion, RankingQuestion. Shuffle options if needed in preview page.","project":"survey"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add button 'Add' (class 'add') in each question config panel. Click '.add' button to display the popup panel whose buttons are clicked to insert a new question after the current one. The popup panel (class 'popup') contains all buttons clicked to add different type of question to the form. Click page to close the popup panel.","project":"survey"}
\ No newline at end of file
diff --git a/datasets/svelte.jsonl b/datasets/svelte.jsonl
index c4740ee9f6b2dbd479023d5b3c1fbf544f1348cd..770fb10cd845dde2fd7385cc2230ed9dbf5ad003 100644
--- a/datasets/svelte.jsonl
+++ b/datasets/svelte.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.svelte that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.svelte where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.svelte that accepts 'title' and 'detail' as props. Display mock blog data in Main.svelte using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 3) Include Header.svelte and Main.svelte in App.svelte 4) The classname of title in Blog.svelte is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.svelte, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.svelte with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.svelte occupies the remaining space of Main.svelte. The content of Blog.svelte should be from first item of the mock data."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.svelte to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.svelte."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible using onMount."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create stores/blogStore.ts using Svelte's writable store to manage related state (blog list and selected blog) 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.svelte to show the length of blogs"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.svelte. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is appended in stores/blogStore.ts."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.svelte. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is appended in stores/blogStore.ts;"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.svelte(width: 200px, border-box) component above BlogList.svelte in Main.svelte. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs using derived stores."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":" 1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not stuck when 100000 blogs appended. 3) Constraint: DO NOT USE any third-party packages, ONLY Svelte APIs can be used to optimize the performance."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.svelte with the title 'Comments' at the bottom of Blog.svelte. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create stores/commentStore.ts to implement CommentStore using Svelte's store mechanism, and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize Svelte APIs."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.svelte that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body using Portal. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are allowed."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.svelte. 2) Develop a store or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.ts to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.svelte and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API. Use bind:this instead."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.svelte with text 'Hello Game'. 2) Add router.ts to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.svelte to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to show current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.ts to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.svelte that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.svelte where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.svelte that accepts 'title' and 'detail' as props. Display mock blog data in Main.svelte using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 3) Include Header.svelte and Main.svelte in App.svelte 4) The classname of title in Blog.svelte is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px","project":"svelte"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.svelte, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.svelte with a width of 300px; each blog item should have a height of 40px and a border-box layout. 4) Only One Blog.svelte occupies the remaining space of Main.svelte. The content of Blog.svelte should be from first item of the mock data.","project":"svelte"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item","project":"svelte"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.svelte to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.svelte.","project":"svelte"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible using onMount.","project":"svelte"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData.","project":"svelte"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create stores/blogStore.ts using Svelte's writable store to manage related state (blog list and selected blog) 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.svelte to show the length of blogs","project":"svelte"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.svelte. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is appended in stores/blogStore.ts.","project":"svelte"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.svelte. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is appended in stores/blogStore.ts;","project":"svelte"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.svelte(width: 200px, border-box) component above BlogList.svelte in Main.svelte. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs using derived stores.","project":"svelte"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":" 1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not stuck when 100000 blogs appended. 3) Constraint: DO NOT USE any third-party packages, ONLY Svelte APIs can be used to optimize the performance.","project":"svelte"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.svelte with the title 'Comments' at the bottom of Blog.svelte. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create stores/commentStore.ts to implement CommentStore using Svelte's store mechanism, and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize Svelte APIs.","project":"svelte"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.svelte that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body using Portal. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are allowed.","project":"svelte"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.svelte. 2) Develop a store or utility to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.ts to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.svelte and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API. Use bind:this instead.","project":"svelte"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.svelte with text 'Hello Game'. 2) Add router.ts to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.svelte to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to show current player 5) show 'White Wins!' and 'Black Wins!' when player wins, reuse utils/toast.ts to toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY Svelte APIs are permitted.","project":"svelte"}
\ No newline at end of file
diff --git a/datasets/svg-chart.jsonl b/datasets/svg-chart.jsonl
index 4e3cca6330c900df78b4bb93a419697685d1e2c1..4eab53ea6ee328d41a8d1939a181905468f8231d 100644
--- a/datasets/svg-chart.jsonl
+++ b/datasets/svg-chart.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"challenging","description":"In `index.js`, import `assets/data.js` object `configs`. Each item in `configs` is a `config` object.\nDo not generate `assets/data.js` which is existed in project.\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"In `common/Chart.js`, `Chart` class contains properties: `svg` (SVG element, id `config.id`, class `chart {config.type}`, viewBox `0 0 100 70`). \nIn `index.js`, For each `config` whose `type` is line, create a `LineChart` instance and append its `svg` to `.root`.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"In `common/LineChart.js`:\n- append g element (class `datasets`) inside `svg` and make it fill the entire `svg` (no padding between them)\n- append a polyline (class `dataset dataset-${index}`) inside `.datasets` for each `config.data.datasets` item (AKA. `dataset`)\n- all lines have unique colors\n- The min and max axis-y values correspond to the min and max values of all `dataset.data`\n"}
-{"id":"task-4","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.axes` is true or not defined:\n- append g element (class `axes axes-x`) inside `svg` and align it to the bottom\n- append g element (class `axes axes-y`) inside `svg` and align it to the left\n- append axis-x line (class `axis axis-x`, color gray) inside `.axes-x` and align it to the top\n- append axis-y line (class `axis axis-y`, color gray) inside `.axes-y` and align it to the right\n\nIn `common/LineChart.js`, when `options.axes` is true or not defined:\n- place `.datasets` to the right side of `.axis-y` and above `.axis-x`\n- reduce `.datasets` lines width and height, and make `.datasets`, `.axes-x` and `.axes-y` fill the entire `svg` space\n"}
-{"id":"task-5","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.axes` is true or not defined:\n- append axis-x labels (class `label label-{index}`, color black) inside `.axes-x` and align them to the bottom\n - axis-x labels, coming from `data.labels`, are evenly distributed from left to right, `.label-0` is aligned to the left of `.axes-x`\n- append axis-y labels (class `label label-{index}`, color black) inside `.axes-y` and align them to the left\n - The min and max axis-y values correspond to the min and max values of `dataset.data`\n - 6 axis-y labels, ranging from the min to the max, are evenly distributed across 5 sections from bottom to top, `.label-0` is aligned to the bottom of `.axes-y`\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.grids` is true or not defined:\n- append g element (class `grids`) in `svg`\n- append grid-x lines (each class `grid grid-x grid-x-{index}`, color gray) and grid-y lines (each class `grid grid-y grid-y-{index}`, color gray) in `.grids`\n- Ensure that `.grids` is placed under `.datasets`, and that its size matches `.datasets`\n- Each grid-x line is horizontally aligned with axis-x labels\n- Each grid-y line is vertically aligned with axis-y labels\n"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.legends` is true or not defined:\n- append g element (class `legends`) on the top of `svg`\n- append g element (class `legend legend-{index}`) in `.legends`\n- append circle (color is the same as `.dataset` line color) and text (content `dataset.label`) in each `.legend`\n\nIn `common/Chart.js` and `common/LineChart.js`, when `options.legends` is true or not defined:\n- reduce `.datasets` lines height\n- reduce `.axes-y` axis-y height, update axis-y labels position\n- and make `.legends`, `.datasets`, `.axes-x` and `.axes-y` fill the entire `svg` space\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"In `common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`:\n- append g element (class `points points-{index}`) inside `svg` for each `dataset`\n- append points (each class `point point-{index}`, shape is `options.pointStyle`) inside `.points` for each item of `dataset.data`\n- each point covers the `.dataset` line, distributes from left to right\n- each point color is the same as `.dataset` line color\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"In `common/LineChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each item of `dataset.data`\n- each dataLabel is above the `.dataset` line, distributes from left to right\n- each dataLabel color is the same as `.dataset` line color\n"}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"In `common/LineChart.js`:\n- append an initially hidden g element (class `tooltips hidden`) inside `svg`\n- when mouse hovers over `.datasets` area, display `.tooltips` near the mouse position\n - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse \n - in `.tooltips`, show all data from the `.dataset` that corresponds to the selected `.grid-x`\n- when mouse not hovers over `.datasets` area, hide `.tooltips` (add class `hidden`)\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"In `common/LineChart.js`, when `options.lineSmooth` is true:\n- replace all polylines with smooth curved lines inside `.datasets`\n"}
-{"id":"task-12","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when click legend:\n- show (remove class `hidden`) or hide (add class `hidden`) `.dataset` lines, dataLabels, points\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"In `common/ScatterChart.js`, class `ScatterChart` inherits from `LineChart`, `ScatterChart`:\n- options.pointStyle is always circle\n- options.dataLabels is always true\n- all `.dataset` lines are hidden\n\nUpdate `index.js`, create `ScatterChart` instances when `config.type` is `scatter`.\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"In `common/StepChart.js`, class `StepChart` inherits from `LineChart`, `StepChart`:\n- replace all polylines with step style polylines inside `.datasets`\n- in each step style polyline:\n - each `dataset.data` responds to a horizontal line segment whose width is the distance between two near grid-x\n - the first and the last line segment width is the half\n - connect all line segments to a step style polyline\n\nUpdate `index.js`, create `StepChart` instances when `config.type` is `step`.\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"In `common/AreaChart.js`, class `AreaChart` inherits from `LineChart`, `AreaChart`:\n- append g element (class `areas`) inside `svg`\n- append polygons (each class `area area-{index}`) inside `.areas` \n- each `.area` is below the `.dataset` line\n- each `.area` color is the same as `.dataset` line color, half transparent\n\nUpdate `index.js`, create `AreaChart` instances when `config.type` is `area`.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`, class `BarChart` inherits from `Chart`, `BarChart`:\n- there is 1 more grid-x line than LineChart, all the grid-x lines are evenly distributed in `.grids`\n- append g element (class `datasets`) inside `svg` and make it fill the entire `svg` (no padding between them)\n- append g element (class `dataset dataset-${index}`) inside `.datasets` for each `datasets` item\n- append bars (rect elements, class `bar bar-{index}`) with the same color inside `.dataset` for each `dataset.data` item\n - bars are distributed within each column enclosed by 2 adjacent grid-x lines \n - bars in different `.dataset` have unique colors\n - bars in the same column are evenly distributed\n\nUpdate `index.js`, create `BarChart` instances when `config.type` is `bar`.\n"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item\n- each dataLabel is above the `.dataset` bars, distributes from left to right\n- each dataLabel color is the same as `.dataset` bars color\n"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`:\n- append an initially hidden g element (class `tooltips hidden`) inside `svg`\n- when mouse hovers over `.datasets` area, display `.tooltips` near the mouse position\n - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse \n - in `.tooltips`, show all data from the `.dataset` that corresponds to the area enclosed by the selected `.grid-x` and next adjacent `.grid-x`\n- when mouse not hovers over `.datasets` area, hide `.tooltips` (add class `hidden`)\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"In `common/PieChart.js`, class `PieChart` inherits from `Chart`, `PieChart`:\n- append g element (class `datasets`) inside `svg` and make it fill the most area of `svg`\n- append g element (class `dataset dataset-0`) inside `.datasets` for the first `datasets` item\n- append sectors (path elements, each class `sector sector-{index}`) with the unique color inside `.dataset` for each `dataset.data` item\n- all the sectors form a large circle\n- the area of each sector is related to its proportion of the data\n\nUpdate `index.js`, create `PieChart` instances when `config.type` is `pie`.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"In `common/PieChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-0`) inside `svg` for the first `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item\n- append connect lines (each class `connect connect-{index}`) inside `.dataLabels` to connect each dataLabel and its corresponding sector\n- each dataLabel is positioned near its corresponding sector and distributed around the large circle\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"challenging","description":"In `index.js`, import `assets/data.js` object `configs`. Each item in `configs` is a `config` object.\nDo not generate `assets/data.js` which is existed in project.\n","project":"svg-chart"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"In `common/Chart.js`, `Chart` class contains properties: `svg` (SVG element, id `config.id`, class `chart {config.type}`, viewBox `0 0 100 70`). \nIn `index.js`, For each `config` whose `type` is line, create a `LineChart` instance and append its `svg` to `.root`.\n","project":"svg-chart"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"In `common/LineChart.js`:\n- append g element (class `datasets`) inside `svg` and make it fill the entire `svg` (no padding between them)\n- append a polyline (class `dataset dataset-${index}`) inside `.datasets` for each `config.data.datasets` item (AKA. `dataset`)\n- all lines have unique colors\n- The min and max axis-y values correspond to the min and max values of all `dataset.data`\n","project":"svg-chart"}
+{"id":"task-4","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.axes` is true or not defined:\n- append g element (class `axes axes-x`) inside `svg` and align it to the bottom\n- append g element (class `axes axes-y`) inside `svg` and align it to the left\n- append axis-x line (class `axis axis-x`, color gray) inside `.axes-x` and align it to the top\n- append axis-y line (class `axis axis-y`, color gray) inside `.axes-y` and align it to the right\n\nIn `common/LineChart.js`, when `options.axes` is true or not defined:\n- place `.datasets` to the right side of `.axis-y` and above `.axis-x`\n- reduce `.datasets` lines width and height, and make `.datasets`, `.axes-x` and `.axes-y` fill the entire `svg` space\n","project":"svg-chart"}
+{"id":"task-5","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.axes` is true or not defined:\n- append axis-x labels (class `label label-{index}`, color black) inside `.axes-x` and align them to the bottom\n - axis-x labels, coming from `data.labels`, are evenly distributed from left to right, `.label-0` is aligned to the left of `.axes-x`\n- append axis-y labels (class `label label-{index}`, color black) inside `.axes-y` and align them to the left\n - The min and max axis-y values correspond to the min and max values of `dataset.data`\n - 6 axis-y labels, ranging from the min to the max, are evenly distributed across 5 sections from bottom to top, `.label-0` is aligned to the bottom of `.axes-y`\n","project":"svg-chart"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.grids` is true or not defined:\n- append g element (class `grids`) in `svg`\n- append grid-x lines (each class `grid grid-x grid-x-{index}`, color gray) and grid-y lines (each class `grid grid-y grid-y-{index}`, color gray) in `.grids`\n- Ensure that `.grids` is placed under `.datasets`, and that its size matches `.datasets`\n- Each grid-x line is horizontally aligned with axis-x labels\n- Each grid-y line is vertically aligned with axis-y labels\n","project":"svg-chart"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when `options.legends` is true or not defined:\n- append g element (class `legends`) on the top of `svg`\n- append g element (class `legend legend-{index}`) in `.legends`\n- append circle (color is the same as `.dataset` line color) and text (content `dataset.label`) in each `.legend`\n\nIn `common/Chart.js` and `common/LineChart.js`, when `options.legends` is true or not defined:\n- reduce `.datasets` lines height\n- reduce `.axes-y` axis-y height, update axis-y labels position\n- and make `.legends`, `.datasets`, `.axes-x` and `.axes-y` fill the entire `svg` space\n","project":"svg-chart"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"In `common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`:\n- append g element (class `points points-{index}`) inside `svg` for each `dataset`\n- append points (each class `point point-{index}`, shape is `options.pointStyle`) inside `.points` for each item of `dataset.data`\n- each point covers the `.dataset` line, distributes from left to right\n- each point color is the same as `.dataset` line color\n","project":"svg-chart"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"In `common/LineChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each item of `dataset.data`\n- each dataLabel is above the `.dataset` line, distributes from left to right\n- each dataLabel color is the same as `.dataset` line color\n","project":"svg-chart"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"In `common/LineChart.js`:\n- append an initially hidden g element (class `tooltips hidden`) inside `svg`\n- when mouse hovers over `.datasets` area, display `.tooltips` near the mouse position\n - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse \n - in `.tooltips`, show all data from the `.dataset` that corresponds to the selected `.grid-x`\n- when mouse not hovers over `.datasets` area, hide `.tooltips` (add class `hidden`)\n","project":"svg-chart"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"In `common/LineChart.js`, when `options.lineSmooth` is true:\n- replace all polylines with smooth curved lines inside `.datasets`\n","project":"svg-chart"}
+{"id":"task-12","date":"2025-05-12","level":"moderate","description":"In `common/Chart.js`, when click legend:\n- show (remove class `hidden`) or hide (add class `hidden`) `.dataset` lines, dataLabels, points\n","project":"svg-chart"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"In `common/ScatterChart.js`, class `ScatterChart` inherits from `LineChart`, `ScatterChart`:\n- options.pointStyle is always circle\n- options.dataLabels is always true\n- all `.dataset` lines are hidden\n\nUpdate `index.js`, create `ScatterChart` instances when `config.type` is `scatter`.\n","project":"svg-chart"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"In `common/StepChart.js`, class `StepChart` inherits from `LineChart`, `StepChart`:\n- replace all polylines with step style polylines inside `.datasets`\n- in each step style polyline:\n - each `dataset.data` responds to a horizontal line segment whose width is the distance between two near grid-x\n - the first and the last line segment width is the half\n - connect all line segments to a step style polyline\n\nUpdate `index.js`, create `StepChart` instances when `config.type` is `step`.\n","project":"svg-chart"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"In `common/AreaChart.js`, class `AreaChart` inherits from `LineChart`, `AreaChart`:\n- append g element (class `areas`) inside `svg`\n- append polygons (each class `area area-{index}`) inside `.areas` \n- each `.area` is below the `.dataset` line\n- each `.area` color is the same as `.dataset` line color, half transparent\n\nUpdate `index.js`, create `AreaChart` instances when `config.type` is `area`.\n","project":"svg-chart"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`, class `BarChart` inherits from `Chart`, `BarChart`:\n- there is 1 more grid-x line than LineChart, all the grid-x lines are evenly distributed in `.grids`\n- append g element (class `datasets`) inside `svg` and make it fill the entire `svg` (no padding between them)\n- append g element (class `dataset dataset-${index}`) inside `.datasets` for each `datasets` item\n- append bars (rect elements, class `bar bar-{index}`) with the same color inside `.dataset` for each `dataset.data` item\n - bars are distributed within each column enclosed by 2 adjacent grid-x lines \n - bars in different `.dataset` have unique colors\n - bars in the same column are evenly distributed\n\nUpdate `index.js`, create `BarChart` instances when `config.type` is `bar`.\n","project":"svg-chart"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item\n- each dataLabel is above the `.dataset` bars, distributes from left to right\n- each dataLabel color is the same as `.dataset` bars color\n","project":"svg-chart"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"In `common/BarChart.js`:\n- append an initially hidden g element (class `tooltips hidden`) inside `svg`\n- when mouse hovers over `.datasets` area, display `.tooltips` near the mouse position\n - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse \n - in `.tooltips`, show all data from the `.dataset` that corresponds to the area enclosed by the selected `.grid-x` and next adjacent `.grid-x`\n- when mouse not hovers over `.datasets` area, hide `.tooltips` (add class `hidden`)\n","project":"svg-chart"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"In `common/PieChart.js`, class `PieChart` inherits from `Chart`, `PieChart`:\n- append g element (class `datasets`) inside `svg` and make it fill the most area of `svg`\n- append g element (class `dataset dataset-0`) inside `.datasets` for the first `datasets` item\n- append sectors (path elements, each class `sector sector-{index}`) with the unique color inside `.dataset` for each `dataset.data` item\n- all the sectors form a large circle\n- the area of each sector is related to its proportion of the data\n\nUpdate `index.js`, create `PieChart` instances when `config.type` is `pie`.\n","project":"svg-chart"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"In `common/PieChart.js`, when `options.dataLabels` is true:\n- append g element (class `dataLabels dataLabels-0`) inside `svg` for the first `dataset`\n- append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item\n- append connect lines (each class `connect connect-{index}`) inside `.dataLabels` to connect each dataLabel and its corresponding sector\n- each dataLabel is positioned near its corresponding sector and distributed around the large circle\n","project":"svg-chart"}
\ No newline at end of file
diff --git a/datasets/svg-solar.jsonl b/datasets/svg-solar.jsonl
index c8ecd5031a18e90f550ba3d003da3d30d1f7e3ca..dd3f61c5724bdb36fb5dc85393aa4cac2134694a 100644
--- a/datasets/svg-solar.jsonl
+++ b/datasets/svg-solar.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"Add svg element (class `system`, viewBox is (0 0 160 160)) in `.root`. `.system` fill the whole space of `.root`. Add defs element (id `systemDefs`) and g element (id `systemRoot`) in `.system`."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"Import `assets/data.json` as an object `data`. Add a star (class is `data.name`, circle radius is `data.r`, fill is `data.color`) in systemRoot. Its center is system center."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Import `assets/data.json` as an object `data` whose `bodies` attribute contains all the planets data. Mark each bodies item as body. Add planet elliptical orbits (svg path, id `orbit_{body.name}`, class `orbit`, no fill, line color is white, line width is 0.1) to systemRoot. Each orbit's center is system center, rx is `body.rx`, ry is `body.ry`. Each orbit path's start point is the right point of the ellipse."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add planets (svg circle, class `planet {body.name}`, fill is `body.color`, radius is `body.r`) to the right point of each orbit."}
-{"id":"task-5","date":"2025-05-12","level":"challenging","description":"Define gradient color format:`(linearGradient|radialGradient): offset stop-color stop-opacity[, offset stop-color stop-opacity]...`, `stop-opacity` is optional, default value is 1. When data color is gradient, append systemDefs with a gradient element whose color direction is downward linearGradient or default radialGradient, and children elements attributes come from parsed color values. Replace the fill of star or planet with `url(#gradient-{name})`."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Make all planets revolve around the star along the orbit path with an orbital period of `body.dur` seconds. When the mouse hovers over a planet, stop all planets' revolution; otherwise, restore the revolution."}
-{"id":"task-7","date":"2025-05-12","level":"challenging","description":"We call the collection of star and planets as `star-planets` view. Click planet to clear systemRoot and systemDefs, and show planet at system center in systemRoot, all satellites(data from `body.bodies`) and its orbits just like `star-planets`. We call this new collection of planet and satellites as `planet-satellites` view. Make sure the minimal radius of planet is 8 in `planet-satellites`."}
-{"id":"task-8","date":"2025-05-12","level":"challenging","description":"Replace the fill of planet or satellites with `url(#gradient-{name})` when necessary. Gradient color format remains the same as before."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Make all satellites revolve around the planet along the orbit path with an orbital period of `dur` seconds. When the mouse hovers over a satellite, stop all satellites' revolution; otherwise, restore the revolution."}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Press key 'Escape' in `planet-satellites` to jump to `star-planets`."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"Append a detail panel (foreignObject, id `detailPanel`) to the system. Display body type (star/planet/satellite), name and sub-bodies list in detailPanel. By default, show the details of the central body (star or planet). When hovering over a body, update the detailPanel to display its details."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"When hovering over the sub-bodies in detailPanel, highlight the body (planet/satellite) stroke and orbit fill in the system, add class `highlight` to the body and orbit."}
-{"id":"task-13","date":"2025-05-12","level":"moderate","description":"When clicking the sub-bodies (only planet) in detailPanel, jump to the `planet-satellites` view."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add planet ring (`use` element, id `ring_{body.name}`) in `star-planets` view when `body.ring` is true. Store ring template in the `symbol` element (id `ring`) which is the direct child of `.system`."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Highlight the body's (planet/satellite) most recent orbital path (AKA tail, class `tail`), with this section accounting for less than 5% of the total orbital circumference."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Append a global config panel (foreignObject, id `configPanel`) to the system. Global `configPanel` is inited once after page loaded. Add a tail checkbox (id `tailEnabled`, default checked) in the config panel. Uncheck it to hide the orbit tail."}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"Add a orbit checkbox (id `orbitEnabled`, default checked) in the config panel. Uncheck it to hide the orbit."}
-{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Add a speed number input (id `speed`, default 1, range is [0.1, 10]) in the config panel. The orbital speed of a body (planet/satellite) is a multiple of `speed` value."}
-{"id":"task-19","date":"2025-05-12","level":"moderate","description":"Add a background checkbox (id `bgEnabled`, default unchecked) in the config panel. Check it to display svg image in system (id `bg`, source `assets/bg.png`)."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add a comet button (id `comet`) in the config panel. Keep it clickable only in `star-planets` view. Click it to request comet name by prompt dialog and generate a comet (class `comet`) that follows an elliptical orbit around the Sun, with its aphelion (farthest point) reaching near Neptune's orbit and its perihelion (closest point) near Mercury's orbit. Comet data format is `{type: 'comet', name: 'halley', r: 0.3, rx: 70, ry: 2, dur: 300, color: 'red', bodies: []}`, rx range is [60, 80], ry range is [2, 4], dur range is [200, 400]."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"Add svg element (class `system`, viewBox is (0 0 160 160)) in `.root`. `.system` fill the whole space of `.root`. Add defs element (id `systemDefs`) and g element (id `systemRoot`) in `.system`.","project":"svg-solar"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"Import `assets/data.json` as an object `data`. Add a star (class is `data.name`, circle radius is `data.r`, fill is `data.color`) in systemRoot. Its center is system center.","project":"svg-solar"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Import `assets/data.json` as an object `data` whose `bodies` attribute contains all the planets data. Mark each bodies item as body. Add planet elliptical orbits (svg path, id `orbit_{body.name}`, class `orbit`, no fill, line color is white, line width is 0.1) to systemRoot. Each orbit's center is system center, rx is `body.rx`, ry is `body.ry`. Each orbit path's start point is the right point of the ellipse.","project":"svg-solar"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"Add planets (svg circle, class `planet {body.name}`, fill is `body.color`, radius is `body.r`) to the right point of each orbit.","project":"svg-solar"}
+{"id":"task-5","date":"2025-05-12","level":"challenging","description":"Define gradient color format:`(linearGradient|radialGradient): offset stop-color stop-opacity[, offset stop-color stop-opacity]...`, `stop-opacity` is optional, default value is 1. When data color is gradient, append systemDefs with a gradient element whose color direction is downward linearGradient or default radialGradient, and children elements attributes come from parsed color values. Replace the fill of star or planet with `url(#gradient-{name})`.","project":"svg-solar"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"Make all planets revolve around the star along the orbit path with an orbital period of `body.dur` seconds. When the mouse hovers over a planet, stop all planets' revolution; otherwise, restore the revolution.","project":"svg-solar"}
+{"id":"task-7","date":"2025-05-12","level":"challenging","description":"We call the collection of star and planets as `star-planets` view. Click planet to clear systemRoot and systemDefs, and show planet at system center in systemRoot, all satellites(data from `body.bodies`) and its orbits just like `star-planets`. We call this new collection of planet and satellites as `planet-satellites` view. Make sure the minimal radius of planet is 8 in `planet-satellites`.","project":"svg-solar"}
+{"id":"task-8","date":"2025-05-12","level":"challenging","description":"Replace the fill of planet or satellites with `url(#gradient-{name})` when necessary. Gradient color format remains the same as before.","project":"svg-solar"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Make all satellites revolve around the planet along the orbit path with an orbital period of `dur` seconds. When the mouse hovers over a satellite, stop all satellites' revolution; otherwise, restore the revolution.","project":"svg-solar"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Press key 'Escape' in `planet-satellites` to jump to `star-planets`.","project":"svg-solar"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"Append a detail panel (foreignObject, id `detailPanel`) to the system. Display body type (star/planet/satellite), name and sub-bodies list in detailPanel. By default, show the details of the central body (star or planet). When hovering over a body, update the detailPanel to display its details.","project":"svg-solar"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"When hovering over the sub-bodies in detailPanel, highlight the body (planet/satellite) stroke and orbit fill in the system, add class `highlight` to the body and orbit.","project":"svg-solar"}
+{"id":"task-13","date":"2025-05-12","level":"moderate","description":"When clicking the sub-bodies (only planet) in detailPanel, jump to the `planet-satellites` view.","project":"svg-solar"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Add planet ring (`use` element, id `ring_{body.name}`) in `star-planets` view when `body.ring` is true. Store ring template in the `symbol` element (id `ring`) which is the direct child of `.system`.","project":"svg-solar"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Highlight the body's (planet/satellite) most recent orbital path (AKA tail, class `tail`), with this section accounting for less than 5% of the total orbital circumference.","project":"svg-solar"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Append a global config panel (foreignObject, id `configPanel`) to the system. Global `configPanel` is inited once after page loaded. Add a tail checkbox (id `tailEnabled`, default checked) in the config panel. Uncheck it to hide the orbit tail.","project":"svg-solar"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"Add a orbit checkbox (id `orbitEnabled`, default checked) in the config panel. Uncheck it to hide the orbit.","project":"svg-solar"}
+{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Add a speed number input (id `speed`, default 1, range is [0.1, 10]) in the config panel. The orbital speed of a body (planet/satellite) is a multiple of `speed` value.","project":"svg-solar"}
+{"id":"task-19","date":"2025-05-12","level":"moderate","description":"Add a background checkbox (id `bgEnabled`, default unchecked) in the config panel. Check it to display svg image in system (id `bg`, source `assets/bg.png`).","project":"svg-solar"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add a comet button (id `comet`) in the config panel. Keep it clickable only in `star-planets` view. Click it to request comet name by prompt dialog and generate a comet (class `comet`) that follows an elliptical orbit around the Sun, with its aphelion (farthest point) reaching near Neptune's orbit and its perihelion (closest point) near Mercury's orbit. Comet data format is `{type: 'comet', name: 'halley', r: 0.3, rx: 70, ry: 2, dur: 300, color: 'red', bodies: []}`, rx range is [60, 80], ry range is [2, 4], dur range is [200, 400].","project":"svg-solar"}
\ No newline at end of file
diff --git a/datasets/svg.jsonl b/datasets/svg.jsonl
index b78446ccee1fd4c58e3858cb7fe7b1b67540b6c7..f30d7ddae3026c139800ecb718ef60cf4bff655b 100644
--- a/datasets/svg.jsonl
+++ b/datasets/svg.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"When click label line, use mouse in canvas to draw a svg line (line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down and end point is the point when mouse pressing up."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"When click label rect, use mouse in canvas to draw a svg rect (fill color is white, line width is '.line-width' value, line color is '.color' value). The rect's left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"When click label circle, use mouse in canvas to draw a svg circle (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The circle's center is the rect center, radius is the half rect width."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"When click label ellipse, use mouse in canvas to draw a svg ellipse (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The ellipse's center is the rect center, x radius is the half rect width, y radius is the half rect height."}
-{"id":"task-5","date":"2025-05-12","level":"moderate","description":"After label delete clicked, click any shape (line/rect/ellipse/...) in the canvas to delete it."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"After label fill clicked, click any shape (line/rect/ellipse/...) in the canvas to set its fill color to '.color' value."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"After label copy clicked, click any shape (line/rect/ellipse/...) in the canvas to copy itself. The copied shape is placed 20 to the right and 20 below the original shape."}
-{"id":"task-8","date":"2025-05-12","level":"challenging","description":"When the length of the line is less than line width, keep it to be the line width. When the width or height of the rect is less than line width, keep it to be line width."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"When the radius of the circle is less than half line width, keep it to be half line width. When the x or y radius of the ellipse is less than half line width, keep it to be half line width."}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"When click label triangle, use mouse in canvas to draw a svg polygon triangle (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The triangle's left-bottom is the rect left-bottom, right-bottom is the rect right-bottom, and top is the center of rect top edge. Polygon points sequence is left-bottom, right-bottom, top."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"When click label trapezoid, use mouse in canvas to draw a svg polygon trapezoid (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The trapezoid's left-bottom is the rect left-bottom, right-bottom is the rect right-bottom, left-top and right-top points divide rect top edge to 3 equal parts. Polygon points sequence is left-bottom, right-bottom, top."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"When click label hexagon, use mouse in canvas to draw a svg polygon hexagon (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The hexagon's left point is rect left edge center, right point is rect right edge center, 2 top points divide rect top edge to 3 parts (width 1:2:1), 2 bottom points divide rect bottom edge to 3 parts (width 1:2:1). Polygon points sequence is left, bottom, right, top."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"When click label curve, use mouse in canvas to draw a svg path quadratic curve (no fill, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The curve's start point is rect left-bottom, end point is rect right-bottom, and control point is the center of rect top edge."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"When click label polyline, use mouse in canvas to draw a svg polyline (no fill, line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down, end point is the point when mouse pressing up, and other points are from the points when mouse moving."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"When click label text, use mouse in canvas to draw a svg text (no stroke, fill is '.color' value, default content is 'Text'). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The text's content fills the rect. Double click the text to edit its content with prompt dialog."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"After label move clicked, drag and move any shape in the canvas."}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"Set label move clicked after creating or copying a shape. Press and hold the blankspace to enable moving the shape. Release it to restore the selected label if needed."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"After label rotate clicked, drag and rotate any shape in the canvas around its center."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"After label zoom clicked, drag and zoom any shape in the canvas according the distance between mouse position and its center. Zoom the shape around its center."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Perform move, rotate, and zoom operations on a shape in any sequence, ensuring that each operation builds on the previous one."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"When click label line, use mouse in canvas to draw a svg line (line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down and end point is the point when mouse pressing up.","project":"svg"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"When click label rect, use mouse in canvas to draw a svg rect (fill color is white, line width is '.line-width' value, line color is '.color' value). The rect's left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up.","project":"svg"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"When click label circle, use mouse in canvas to draw a svg circle (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The circle's center is the rect center, radius is the half rect width.","project":"svg"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"When click label ellipse, use mouse in canvas to draw a svg ellipse (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The ellipse's center is the rect center, x radius is the half rect width, y radius is the half rect height.","project":"svg"}
+{"id":"task-5","date":"2025-05-12","level":"moderate","description":"After label delete clicked, click any shape (line/rect/ellipse/...) in the canvas to delete it.","project":"svg"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"After label fill clicked, click any shape (line/rect/ellipse/...) in the canvas to set its fill color to '.color' value.","project":"svg"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"After label copy clicked, click any shape (line/rect/ellipse/...) in the canvas to copy itself. The copied shape is placed 20 to the right and 20 below the original shape.","project":"svg"}
+{"id":"task-8","date":"2025-05-12","level":"challenging","description":"When the length of the line is less than line width, keep it to be the line width. When the width or height of the rect is less than line width, keep it to be line width.","project":"svg"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"When the radius of the circle is less than half line width, keep it to be half line width. When the x or y radius of the ellipse is less than half line width, keep it to be half line width.","project":"svg"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"When click label triangle, use mouse in canvas to draw a svg polygon triangle (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The triangle's left-bottom is the rect left-bottom, right-bottom is the rect right-bottom, and top is the center of rect top edge. Polygon points sequence is left-bottom, right-bottom, top.","project":"svg"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"When click label trapezoid, use mouse in canvas to draw a svg polygon trapezoid (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The trapezoid's left-bottom is the rect left-bottom, right-bottom is the rect right-bottom, left-top and right-top points divide rect top edge to 3 equal parts. Polygon points sequence is left-bottom, right-bottom, top.","project":"svg"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"When click label hexagon, use mouse in canvas to draw a svg polygon hexagon (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The hexagon's left point is rect left edge center, right point is rect right edge center, 2 top points divide rect top edge to 3 parts (width 1:2:1), 2 bottom points divide rect bottom edge to 3 parts (width 1:2:1). Polygon points sequence is left, bottom, right, top.","project":"svg"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"When click label curve, use mouse in canvas to draw a svg path quadratic curve (no fill, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The curve's start point is rect left-bottom, end point is rect right-bottom, and control point is the center of rect top edge.","project":"svg"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"When click label polyline, use mouse in canvas to draw a svg polyline (no fill, line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down, end point is the point when mouse pressing up, and other points are from the points when mouse moving.","project":"svg"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"When click label text, use mouse in canvas to draw a svg text (no stroke, fill is '.color' value, default content is 'Text'). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The text's content fills the rect. Double click the text to edit its content with prompt dialog.","project":"svg"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"After label move clicked, drag and move any shape in the canvas.","project":"svg"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"Set label move clicked after creating or copying a shape. Press and hold the blankspace to enable moving the shape. Release it to restore the selected label if needed.","project":"svg"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"After label rotate clicked, drag and rotate any shape in the canvas around its center.","project":"svg"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"After label zoom clicked, drag and zoom any shape in the canvas according the distance between mouse position and its center. Zoom the shape around its center.","project":"svg"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Perform move, rotate, and zoom operations on a shape in any sequence, ensuring that each operation builds on the previous one.","project":"svg"}
\ No newline at end of file
diff --git a/datasets/table.jsonl b/datasets/table.jsonl
index 4736ccf0d775d104ac46856c9f2341f9752a7783..5fcb7742ce9dc53340c1c3c6d3824164976c8021 100644
--- a/datasets/table.jsonl
+++ b/datasets/table.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"Add a context menu (class menu, absolute position, min-width/height 100px) in the page. Display context menu when right-clicking on the table. Hide the menu when clicking anywhere else on the page, including the menu space. Save codes to es-module 'common/menu.js' imported by 'index.js'."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"When right clicking td cell in tbody row, add menu item 'Insert Row Above' (class menu-item-insert-row-above), 'Insert Row Below' (class menu-item-insert-row-below), 'Delete Row' (class menu-item-delete-row). Click these menu items to do the corresponding actions."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"When right clicking th cell in thead row, add menu item 'Insert Col Left' (class menu-item-insert-col-left), 'Insert Col Right' (class menu-item-insert-col-right), 'Delete Col' (class menu-item-delete-col). Insert th cell in thead row and td cell in tbody row."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"Click to select and highlight a cell which is added class 'selected'. Save codes to 'common/table.js' imported by 'index.js'."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"If no selected cell, press Arrow keys to the first cell (top-left one). Press Arrow keys to change the selected cell to the next possible one. Save codes to 'common/key.js' imported by 'index.js'."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"If no selected cell, press Tab and 'Shift+Tab' key to the first cell. Press Tab key to change the selected cell to the next one. The rules are from left col to right col, change to the left of next row if no next cell in current row; change to the first cell of the table if no next row. The rules for 'Shift+Tab' is the opposite of the rules of Tab key."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Add menu item 'Select Row' (class menu-item-select-row) for body cell. Add menu item 'Select Col' (class menu-item-select-col) for header cell. Press 'Cmd+A'(windows 'Ctrl+A') to select all cells. Press Escape key to unselect the selected cells."}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Press 'Delete' or 'Backspace' key to clear all selected cells content."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Click with Shift key to select a rectangle of cells. Press 'Shift+Arrow' key to extend the selected cells by one more/less row/col."}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"Move mouse while keeping pressed down left button to select a rectangle of cells. Save codes to 'common/mouse.js' imported by 'index.js'"}
-{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Single click a selected cell, or double click any cell to edit the cell (contenteditable). An editable cell is also selected."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Press Enter key to edit a selected cell. Press Escape key to change the edited cell to the readonly and selected one."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Press Cmd/Ctrl+C to copy the content of the selected cell. Press Cmd/Ctrl+V to paste the copied content to the selected cell."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Copy and paste exactly the content of the selected cells. Extend the table rows or cols if the target cells area is not large enough."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Drag row bottom lines to adjust row height. Row's minimum height is 40px. Save codes to 'common/layout.js' imported by 'index.js'"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Drag thead cell right lines to adjust col width. Col's minimum width is 80px. Save codes to 'common/layout.js'."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Select a tbody row to drag and move the row in tbody. Insert after the target when dragging into the target's bottom half, and to insert before the target when dragging into the target's top half. Save codes to 'common/drag.js' imported by 'index.js'."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Select a col to drag and move the col. Insert after the target when dragging into the target's right half, and to insert before the target when dragging into the target's left half."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a menu item 'Filter'(class menu-item-filter) for thead cell to accept keywords from prompt dialog to filter the rows matching the keywords. If keywords are empty string, display all rows."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add a menu item 'Sort'(class menu-item-sort) for thead cell to sort the rows text content in either ascending (A-Z) or descending (Z-A) order. The first order for each col is descending."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"Add a context menu (class menu, absolute position, min-width/height 100px) in the page. Display context menu when right-clicking on the table. Hide the menu when clicking anywhere else on the page, including the menu space. Save codes to es-module 'common/menu.js' imported by 'index.js'.","project":"table"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"When right clicking td cell in tbody row, add menu item 'Insert Row Above' (class menu-item-insert-row-above), 'Insert Row Below' (class menu-item-insert-row-below), 'Delete Row' (class menu-item-delete-row). Click these menu items to do the corresponding actions.","project":"table"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"When right clicking th cell in thead row, add menu item 'Insert Col Left' (class menu-item-insert-col-left), 'Insert Col Right' (class menu-item-insert-col-right), 'Delete Col' (class menu-item-delete-col). Insert th cell in thead row and td cell in tbody row.","project":"table"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"Click to select and highlight a cell which is added class 'selected'. Save codes to 'common/table.js' imported by 'index.js'.","project":"table"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"If no selected cell, press Arrow keys to the first cell (top-left one). Press Arrow keys to change the selected cell to the next possible one. Save codes to 'common/key.js' imported by 'index.js'.","project":"table"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"If no selected cell, press Tab and 'Shift+Tab' key to the first cell. Press Tab key to change the selected cell to the next one. The rules are from left col to right col, change to the left of next row if no next cell in current row; change to the first cell of the table if no next row. The rules for 'Shift+Tab' is the opposite of the rules of Tab key.","project":"table"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"Add menu item 'Select Row' (class menu-item-select-row) for body cell. Add menu item 'Select Col' (class menu-item-select-col) for header cell. Press 'Cmd+A'(windows 'Ctrl+A') to select all cells. Press Escape key to unselect the selected cells.","project":"table"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Press 'Delete' or 'Backspace' key to clear all selected cells content.","project":"table"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Click with Shift key to select a rectangle of cells. Press 'Shift+Arrow' key to extend the selected cells by one more/less row/col.","project":"table"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"Move mouse while keeping pressed down left button to select a rectangle of cells. Save codes to 'common/mouse.js' imported by 'index.js'","project":"table"}
+{"id":"task-11","date":"2025-05-12","level":"moderate","description":"Single click a selected cell, or double click any cell to edit the cell (contenteditable). An editable cell is also selected.","project":"table"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Press Enter key to edit a selected cell. Press Escape key to change the edited cell to the readonly and selected one.","project":"table"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Press Cmd/Ctrl+C to copy the content of the selected cell. Press Cmd/Ctrl+V to paste the copied content to the selected cell.","project":"table"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Copy and paste exactly the content of the selected cells. Extend the table rows or cols if the target cells area is not large enough.","project":"table"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Drag row bottom lines to adjust row height. Row's minimum height is 40px. Save codes to 'common/layout.js' imported by 'index.js'","project":"table"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Drag thead cell right lines to adjust col width. Col's minimum width is 80px. Save codes to 'common/layout.js'.","project":"table"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Select a tbody row to drag and move the row in tbody. Insert after the target when dragging into the target's bottom half, and to insert before the target when dragging into the target's top half. Save codes to 'common/drag.js' imported by 'index.js'.","project":"table"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Select a col to drag and move the col. Insert after the target when dragging into the target's right half, and to insert before the target when dragging into the target's left half.","project":"table"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add a menu item 'Filter'(class menu-item-filter) for thead cell to accept keywords from prompt dialog to filter the rows matching the keywords. If keywords are empty string, display all rows.","project":"table"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add a menu item 'Sort'(class menu-item-sort) for thead cell to sort the rows text content in either ascending (A-Z) or descending (Z-A) order. The first order for each col is descending.","project":"table"}
\ No newline at end of file
diff --git a/datasets/tailwind.jsonl b/datasets/tailwind.jsonl
index 9ca6529948de49df8b5a4072edeaf24fffb7395c..31b91c98f496ac4badef2087cefb4313ecdcc64c 100644
--- a/datasets/tailwind.jsonl
+++ b/datasets/tailwind.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"add divs(class 'header', 'footer', 'content') with arbitrary text in '.root' element. '.root' occupies total viewport and children elements together occupy total '.root' space. header (border-box) is always fixed at the top of '.root'; footer (border-box) is always fixed at the bottom of '.root'; content (border-box) occupies the remaining '.root' space. USE tailwind grid only, NO flex, float and position, NO js."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"add divs(class 'leftbar', 'rightbar') with arbitrary text in '.root' element. leftbar (border-box) is fixed at the left of '.root'; rightbar (border-box) is fixed at the right of '.root'; content occupies the remaining '.root' space. USE tailwind grid only."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"clear header content. add menu(class 'menu') with 3 items(arbitrary text) at the right side of header. USE tailwind grid only too."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"add logo(class 'logo') with arbitrary background color at the left side of header. USE tailwind grid only."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"leftbar width is the smaller of 200px and 20vw. rightbar width is the bigger of 200px and 20vw. leftbar should disappear when page width is equal to or less than 799px. USE tailwind grid only."}
-{"id":"task-6","date":"2025-05-12","level":"easy","description":"when page width is equal to or less than 399px, menu items should have evenly spaced distribution in the whole header space and logo should disappear. USE tailwind grid only."}
-{"id":"task-7","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, content and rightbar should occupy full page width and rightbar should be at the bottom of content. USE tailwind grid only."}
-{"id":"task-8","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, each menu item should occupy full page width. USE tailwind grid only."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"separate leftbar whole space into 20 rows and 2 columns. fill each cell with text 'this is a very long text sample to test word wrap'. USE tailwind grid only."}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"separate rightbar whole space into 10 rows and 2 columns; fill 40 items in the rightbar whole space. fill each item with text 'this-is-a-very-long-text-sample-to-test-overflow'. USE tailwind grid only."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, display the first 3 rows in rightbar."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"show 12 cards (class 'card') in content with 3 per row, 100px minimum height each and vertical scrolling enabled."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"when page width is less than 1000px, display 2 cards per row in content."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"when page width is less than 600px, display 1 card per row in content."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"each card has a image(class 'card-image'), title and price; title's minimum height is 1.5rem and no wrap, text is 'Long Product Title That Goes Here'; price's minimum height is 1rem; image uses the remaining space. USE tailwind grid only."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"only change card css property to reverse the order of the last 2 cards."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"add a logo(class 'footer-logo') and info (class 'footer-info') in the footer. footer-info should never wrap and should show ellipsis when space is insufficient."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"add left-drag and right-drag with absolute positions at the left and right sides of the content; left-drag and right-drag are not visible by default and become visible when mouse hovers over content."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"gen js, drag right-drag and left-drag to adjust content width."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, move right-drag to the bottom of content and drag right-drag to adjust content height."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"add divs(class 'header', 'footer', 'content') with arbitrary text in '.root' element. '.root' occupies total viewport and children elements together occupy total '.root' space. header (border-box) is always fixed at the top of '.root'; footer (border-box) is always fixed at the bottom of '.root'; content (border-box) occupies the remaining '.root' space. USE tailwind grid only, NO flex, float and position, NO js.","project":"tailwind"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"add divs(class 'leftbar', 'rightbar') with arbitrary text in '.root' element. leftbar (border-box) is fixed at the left of '.root'; rightbar (border-box) is fixed at the right of '.root'; content occupies the remaining '.root' space. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"clear header content. add menu(class 'menu') with 3 items(arbitrary text) at the right side of header. USE tailwind grid only too.","project":"tailwind"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"add logo(class 'logo') with arbitrary background color at the left side of header. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"leftbar width is the smaller of 200px and 20vw. rightbar width is the bigger of 200px and 20vw. leftbar should disappear when page width is equal to or less than 799px. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-6","date":"2025-05-12","level":"easy","description":"when page width is equal to or less than 399px, menu items should have evenly spaced distribution in the whole header space and logo should disappear. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-7","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, content and rightbar should occupy full page width and rightbar should be at the bottom of content. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-8","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, each menu item should occupy full page width. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"separate leftbar whole space into 20 rows and 2 columns. fill each cell with text 'this is a very long text sample to test word wrap'. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"separate rightbar whole space into 10 rows and 2 columns; fill 40 items in the rightbar whole space. fill each item with text 'this-is-a-very-long-text-sample-to-test-overflow'. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, display the first 3 rows in rightbar.","project":"tailwind"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"show 12 cards (class 'card') in content with 3 per row, 100px minimum height each and vertical scrolling enabled.","project":"tailwind"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"when page width is less than 1000px, display 2 cards per row in content.","project":"tailwind"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"when page width is less than 600px, display 1 card per row in content.","project":"tailwind"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"each card has a image(class 'card-image'), title and price; title's minimum height is 1.5rem and no wrap, text is 'Long Product Title That Goes Here'; price's minimum height is 1rem; image uses the remaining space. USE tailwind grid only.","project":"tailwind"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"only change card css property to reverse the order of the last 2 cards.","project":"tailwind"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"add a logo(class 'footer-logo') and info (class 'footer-info') in the footer. footer-info should never wrap and should show ellipsis when space is insufficient.","project":"tailwind"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"add left-drag and right-drag with absolute positions at the left and right sides of the content; left-drag and right-drag are not visible by default and become visible when mouse hovers over content.","project":"tailwind"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"gen js, drag right-drag and left-drag to adjust content width.","project":"tailwind"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, move right-drag to the bottom of content and drag right-drag to adjust content height.","project":"tailwind"}
\ No newline at end of file
diff --git a/datasets/threejs.jsonl b/datasets/threejs.jsonl
index 5fd3ee78654c9b299ea2b3f83ba0f45ebf37d05b..8d02970f54442f326a36bd0ea64ebee158fde6a2 100644
--- a/datasets/threejs.jsonl
+++ b/datasets/threejs.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"Edit index.js 1: Generate a basic Scene named scene and assign to window.scene. 2: Generate a basic PerspectiveCamera named camera and assign to window.camera. Do not add any other code. 2: Generate a basic WebGLRenderer and assign to window.renderer with full window size, named renderer, and append render dom into #root. 3: Auto render the scene and camera with requestAnimationFrame."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"Create floor.js imported by index.js 1: Generate a green 8x8 PlaneGeometry named floor. Set this floor.name to floor. 2: Set the floor along the X and Z axes, with the Y-axis coordinate set to 0. 3: Add floor to scene after scene is ready."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Create light.js imported by index.js 1: Generate a white point light, and place at (-10, 15, -10). 2. Place the camera at (0, 15, 15) and orient it towards the position (0, 0, 0)."}
-{"id":"task-4","date":"2025-05-12","level":"moderate","description":"Create snake.js imported by index.js 1: Create a group named snake, and set this group.name to snake. Place the group in the center of the floor. 2: Generate a gray cone geometry which radius is 0.5 and height is 1, named snakeHead, and add to the snake group. Then set snakeHead.name to snake_head. Place snakeHead to center of the group."}
-{"id":"task-5","date":"2025-05-12","level":"moderate","description":"Edit snake.js . 1: Create 3 snakeBody segments and add them behind the snakeHead, Ensure that the snakeBody is a straight line with the snake head at the top and the snake tail at the bottom. 2: Every snakeBody is a lightgray sphere which radius is 0.5 ."}
-{"id":"task-6","date":"2025-05-12","level":"challenging","description":"Edit index.js 1: When the user presses the up, down, left, and right keys on the keyboard, the snakeHead is controlled to move to top, bottom, left, and right by one unit respectively. 2: The apex of snakeHead always points in the direction of recent movement. 3: Ensuring that when the user moves the snakeHead, all the snakeBody follows the way closely. 4: All the snake part can not over other self part."}
-{"id":"task-7","date":"2025-05-12","level":"challenging","description":"Create fence.js imported by index.js 1: Create a group named fences, and set this group.name to fences. 2: Generate fence, and it is a 1 * 1 * 1 darkgreen cuboid, and then add these fences in fences group. Repeat the above steps to add fences around the floor. 3: The snake cannot be moved on the fences by the user, so collision detection is required"}
-{"id":"task-8","date":"2025-05-12","level":"challenging","description":"Create candy.js imported by index.js 1: Generate a pink spherical object with a radius of 0.3 and name it candy. 2: Place the candy in the center of the cell at the top-left corner of the map. If the current cell is occupied(eg: snake or other objects), move one cell to the right. If it encounters a fence, move to the leftmost cell of the next row. Continue this process until the candy is successfully placed. 3: When the candy eaten by snake, reposition the candy to a new cell according to the above rules."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snakeHead eats a candy, the snakeBody will grow by one unit."}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"Create animation.js imported by index.js 1: Add a 3 seconds looping animation to the candy. The candy should move up and down along the y-axis within the range of 0.5 to 1.5, moving at a constant speed."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"Create portal.js imported by index.js 1: Create a group named portals. 2: Generate a pair of portal units at the top-right and bottom-left corners of the map, and place them in the portal group. 3: When the snakeHead collides with a portal unit, it will be immediately transported to the coordinates of the other portal."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Edit portal.js & animation.js 1: Set the portal units to be standing, ring shapes smaller than one unit in length. Create a 3-second frame animation that makes the portal rotate along the y-axis and gradually change colors in the order of red, yellow, and blue."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: Ensure that the candy cannot be generated over the portal units."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Create control.js imported by index.js 1: When the left mouse button is pressed and dragging, The camera view can rotate around the camera position by the mouse movement. 2: When the mouse wheel is scrolled, the camera moves forward or backward in the direction it is facing. 3: When the right mouse button is pressed and dragging, the camera moves horizontally on the x and z axes. 4: The camera's horizontal movement should consider its current position and orientation, should be moving in the direction of the mouse orientation."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Edit control.js 1: When the 'h' button is preesed, the camera reset to the initial position and orientation"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Edit control.js & index.js 1: After user press the 'l' button, the snakeHead direction changed, the camera will be rotated to the new direction immediately. 2: User can press the 'l' button again to disable this feature."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Edit index.js 1: When the snake enters a dead-end, all of the snake's states need to be reset, and the candy should be placed back to its initial position."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Edit some files. 1. When the user presses 'a', the snake starts to automatically move in the current direction, moving one unit every half second. Pressing 'a' again disable this automatically movement."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snake passes through the portal, set all snake's objects color to the current color of the portal."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snake's length reaches 20 units, it is considered a game victory, and all objects in the scene should be removed."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"Edit index.js 1: Generate a basic Scene named scene and assign to window.scene. 2: Generate a basic PerspectiveCamera named camera and assign to window.camera. Do not add any other code. 2: Generate a basic WebGLRenderer and assign to window.renderer with full window size, named renderer, and append render dom into #root. 3: Auto render the scene and camera with requestAnimationFrame.","project":"threejs"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"Create floor.js imported by index.js 1: Generate a green 8x8 PlaneGeometry named floor. Set this floor.name to floor. 2: Set the floor along the X and Z axes, with the Y-axis coordinate set to 0. 3: Add floor to scene after scene is ready.","project":"threejs"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Create light.js imported by index.js 1: Generate a white point light, and place at (-10, 15, -10). 2. Place the camera at (0, 15, 15) and orient it towards the position (0, 0, 0).","project":"threejs"}
+{"id":"task-4","date":"2025-05-12","level":"moderate","description":"Create snake.js imported by index.js 1: Create a group named snake, and set this group.name to snake. Place the group in the center of the floor. 2: Generate a gray cone geometry which radius is 0.5 and height is 1, named snakeHead, and add to the snake group. Then set snakeHead.name to snake_head. Place snakeHead to center of the group.","project":"threejs"}
+{"id":"task-5","date":"2025-05-12","level":"moderate","description":"Edit snake.js . 1: Create 3 snakeBody segments and add them behind the snakeHead, Ensure that the snakeBody is a straight line with the snake head at the top and the snake tail at the bottom. 2: Every snakeBody is a lightgray sphere which radius is 0.5 .","project":"threejs"}
+{"id":"task-6","date":"2025-05-12","level":"challenging","description":"Edit index.js 1: When the user presses the up, down, left, and right keys on the keyboard, the snakeHead is controlled to move to top, bottom, left, and right by one unit respectively. 2: The apex of snakeHead always points in the direction of recent movement. 3: Ensuring that when the user moves the snakeHead, all the snakeBody follows the way closely. 4: All the snake part can not over other self part.","project":"threejs"}
+{"id":"task-7","date":"2025-05-12","level":"challenging","description":"Create fence.js imported by index.js 1: Create a group named fences, and set this group.name to fences. 2: Generate fence, and it is a 1 * 1 * 1 darkgreen cuboid, and then add these fences in fences group. Repeat the above steps to add fences around the floor. 3: The snake cannot be moved on the fences by the user, so collision detection is required","project":"threejs"}
+{"id":"task-8","date":"2025-05-12","level":"challenging","description":"Create candy.js imported by index.js 1: Generate a pink spherical object with a radius of 0.3 and name it candy. 2: Place the candy in the center of the cell at the top-left corner of the map. If the current cell is occupied(eg: snake or other objects), move one cell to the right. If it encounters a fence, move to the leftmost cell of the next row. Continue this process until the candy is successfully placed. 3: When the candy eaten by snake, reposition the candy to a new cell according to the above rules.","project":"threejs"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snakeHead eats a candy, the snakeBody will grow by one unit.","project":"threejs"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"Create animation.js imported by index.js 1: Add a 3 seconds looping animation to the candy. The candy should move up and down along the y-axis within the range of 0.5 to 1.5, moving at a constant speed.","project":"threejs"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"Create portal.js imported by index.js 1: Create a group named portals. 2: Generate a pair of portal units at the top-right and bottom-left corners of the map, and place them in the portal group. 3: When the snakeHead collides with a portal unit, it will be immediately transported to the coordinates of the other portal.","project":"threejs"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Edit portal.js & animation.js 1: Set the portal units to be standing, ring shapes smaller than one unit in length. Create a 3-second frame animation that makes the portal rotate along the y-axis and gradually change colors in the order of red, yellow, and blue.","project":"threejs"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: Ensure that the candy cannot be generated over the portal units.","project":"threejs"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Create control.js imported by index.js 1: When the left mouse button is pressed and dragging, The camera view can rotate around the camera position by the mouse movement. 2: When the mouse wheel is scrolled, the camera moves forward or backward in the direction it is facing. 3: When the right mouse button is pressed and dragging, the camera moves horizontally on the x and z axes. 4: The camera's horizontal movement should consider its current position and orientation, should be moving in the direction of the mouse orientation.","project":"threejs"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Edit control.js 1: When the 'h' button is preesed, the camera reset to the initial position and orientation","project":"threejs"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Edit control.js & index.js 1: After user press the 'l' button, the snakeHead direction changed, the camera will be rotated to the new direction immediately. 2: User can press the 'l' button again to disable this feature.","project":"threejs"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Edit index.js 1: When the snake enters a dead-end, all of the snake's states need to be reset, and the candy should be placed back to its initial position.","project":"threejs"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Edit some files. 1. When the user presses 'a', the snake starts to automatically move in the current direction, moving one unit every half second. Pressing 'a' again disable this automatically movement.","project":"threejs"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snake passes through the portal, set all snake's objects color to the current color of the portal.","project":"threejs"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Edit some files. 1: When the snake's length reaches 20 units, it is considered a game victory, and all objects in the scene should be removed.","project":"threejs"}
\ No newline at end of file
diff --git a/datasets/typescript.jsonl b/datasets/typescript.jsonl
index 6b2ff1c2ccd597877d8617637959659a2ed950f4..030eefc2c3838821e8da73d9763657073c82798f 100644
--- a/datasets/typescript.jsonl
+++ b/datasets/typescript.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"InputSetter、NumberSetter、CheckboxSetter add optional type onChange. onChange is a function type, parameter is the value of the corresponding type and may be undefined, return type is void.\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"Create a file at types/setter-check.ts that exports the function isInputSetter to check the Setter is InputSetter.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1. Export interface `BaseSetter`, has `value` and `onChange`, onChange is a function type, parameter is the value of the corresponding type and may be undefined, return type is void.\n2. BaseSetter all types are required.\n3. Export type OptionalBaseSetter, has the same type of BaseSetter, but all types are optional.\n4. InputSetter、NumberSetter、CheckboxSetter extends OptionalBaseSetter.\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"In types/setter.ts:\n 1. Export type `SetterValueType` that includes primitive string, number, boolean, array, object. Array and Object are strictly of type SetterValueType.\n 2. The BaseSetter's value is strictly of type SetterValueType.\n"}
-{"id":"task-5","level":"easy","date":"2025-05-12","description":"In types/setter.ts create and export a type `ValueSetter`, Dynamically create supported Setter types according to the provided generic type.\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"In types/setter.ts: create and export Setter `PasswordSetter` type 'password' and value type string.\n"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"In types/setter.ts: create and export Setter `SelectSetter` type 'select' and value could be string or number.\n"}
-{"id":"task-8","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `ArraySetter`:\n - type 'array'\n - item: dynamically create supported Setter types according to the value item.\n"}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `TupleSetter`:\n - type: 'tuple'\n - items: each item is a Setter with the corresponding type in the tuple.\n"}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `ObjectSetter`:\n - type 'object'\n - properties: dynamically create supported Setter types according to the value type\n"}
-{"id":"task-11","date":"2025-05-12","level":"moderate","description":"In types/setter.ts, create and export Setter `CustomSetter`:\n - type 'custom' and customType string\n - value implements generic ValueType \nIn ValueSetter, CustomSetter supports any type of value.\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"The Setter implements generic ValueType where:\n 1. ArraySetter, ObjectSetter and CustomSetter inherit the ValueType from their parent Setter\n 2. InputSetter maintains backward compatibility without ValueType constraints\n"}
-{"id":"task-13","date":"2025-05-12","level":"moderate","description":"Create a file at types/schema.ts that exports interface `FormSchema`:\n fields: dynamically create supported Setter types according to the form value type.\n\nIn types/setter.ts, create and export interfaces:\n 1. ExpressionEvent with generic SetterValue and FormValue:\n - value: generic type SetterValue\n - formValue: generic type FormValue, FormValue's constraints align with FormSchema.\n\n 2. Expression with generic SetterValue, FormValue and ExpressionValue:\n - type: 'expression'\n - value: value is a function type, parameter is ExpressionEvent, return type is generic type ExpressionValue.\n 3. SetterMaybeExpression: Expression or generic type ExpressionValue\n \n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"In BaseSetter, add optional prop `visible`\n - a SetterMaybeExpression with ExpressionValue constrained to boolean and FormValue depends on BaseSetter's FormValue.\nFormSchema needs to pass FormValue to the Setter to populate the visible property of BaseSetter, and omitting the Setter will not cause errors.\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export `CustomSetterRender`, has prop `render` which is a FC from React, props contain:\n - all props in generic type Props\n - value\n - onChange, onChange's param newValue could be empty and type depends on `value`\nAdd a new prop customSetterRenderDefinitions to FormSchema:\n Type: A generic type CustomSetterRenderDef, which is an object type where keys are strings and values are of type CustomSetterRender.\n Requirement: The customSetterRenderDefinitions prop must include all CustomSetterRender definitions specified by the generic CustomSetterRenderDef.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"CustomSetter needs to constrain the type of customType. In the fields of FormSchema, the customType must be included in the key of CustomSetterRenderDef.\n"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Add a new optional prop `props` to CustomSetter:\n The type of `props` is determined by the parameters of CustomSetterRender corresponding to customType in CustomSetterRenderDef, and these parameters must omit the `value` and `onChange`.\n"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Add a prop `ctxValue` to ExpressionEvent:\n - type CtxValue.\n - Only the item within an ArraySetter creates a ctxValue, whose type matches the array item's type. \n - If not inside an ArraySetter, ctxValue defaults to the FormValue type.\n"}
-{"id":"task-19","date":"2025-05-12","level":"moderate","description":"Edit CustomSetter customType:\n customType can't be string with hyphen.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"In types/schema.ts, create and export interface `EditorRef`:\n - setSetterValueByPath: \n param1: path, an array of nested property keys on FormValue (type-restricted to valid nested paths of FormValue).\n param2: value, the value to set, whose type must match the nested property type inferred from path.\n return: void\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"InputSetter、NumberSetter、CheckboxSetter add optional type onChange. onChange is a function type, parameter is the value of the corresponding type and may be undefined, return type is void.\n","project":"typescript"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"Create a file at types/setter-check.ts that exports the function isInputSetter to check the Setter is InputSetter.\n","project":"typescript"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1. Export interface `BaseSetter`, has `value` and `onChange`, onChange is a function type, parameter is the value of the corresponding type and may be undefined, return type is void.\n2. BaseSetter all types are required.\n3. Export type OptionalBaseSetter, has the same type of BaseSetter, but all types are optional.\n4. InputSetter、NumberSetter、CheckboxSetter extends OptionalBaseSetter.\n","project":"typescript"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"In types/setter.ts:\n 1. Export type `SetterValueType` that includes primitive string, number, boolean, array, object. Array and Object are strictly of type SetterValueType.\n 2. The BaseSetter's value is strictly of type SetterValueType.\n","project":"typescript"}
+{"id":"task-5","level":"easy","date":"2025-05-12","description":"In types/setter.ts create and export a type `ValueSetter`, Dynamically create supported Setter types according to the provided generic type.\n","project":"typescript"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"In types/setter.ts: create and export Setter `PasswordSetter` type 'password' and value type string.\n","project":"typescript"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"In types/setter.ts: create and export Setter `SelectSetter` type 'select' and value could be string or number.\n","project":"typescript"}
+{"id":"task-8","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `ArraySetter`:\n - type 'array'\n - item: dynamically create supported Setter types according to the value item.\n","project":"typescript"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `TupleSetter`:\n - type: 'tuple'\n - items: each item is a Setter with the corresponding type in the tuple.\n","project":"typescript"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export Setter `ObjectSetter`:\n - type 'object'\n - properties: dynamically create supported Setter types according to the value type\n","project":"typescript"}
+{"id":"task-11","date":"2025-05-12","level":"moderate","description":"In types/setter.ts, create and export Setter `CustomSetter`:\n - type 'custom' and customType string\n - value implements generic ValueType \nIn ValueSetter, CustomSetter supports any type of value.\n","project":"typescript"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"The Setter implements generic ValueType where:\n 1. ArraySetter, ObjectSetter and CustomSetter inherit the ValueType from their parent Setter\n 2. InputSetter maintains backward compatibility without ValueType constraints\n","project":"typescript"}
+{"id":"task-13","date":"2025-05-12","level":"moderate","description":"Create a file at types/schema.ts that exports interface `FormSchema`:\n fields: dynamically create supported Setter types according to the form value type.\n\nIn types/setter.ts, create and export interfaces:\n 1. ExpressionEvent with generic SetterValue and FormValue:\n - value: generic type SetterValue\n - formValue: generic type FormValue, FormValue's constraints align with FormSchema.\n\n 2. Expression with generic SetterValue, FormValue and ExpressionValue:\n - type: 'expression'\n - value: value is a function type, parameter is ExpressionEvent, return type is generic type ExpressionValue.\n 3. SetterMaybeExpression: Expression or generic type ExpressionValue\n \n","project":"typescript"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"In BaseSetter, add optional prop `visible`\n - a SetterMaybeExpression with ExpressionValue constrained to boolean and FormValue depends on BaseSetter's FormValue.\nFormSchema needs to pass FormValue to the Setter to populate the visible property of BaseSetter, and omitting the Setter will not cause errors.\n","project":"typescript"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"In types/setter.ts, create and export `CustomSetterRender`, has prop `render` which is a FC from React, props contain:\n - all props in generic type Props\n - value\n - onChange, onChange's param newValue could be empty and type depends on `value`\nAdd a new prop customSetterRenderDefinitions to FormSchema:\n Type: A generic type CustomSetterRenderDef, which is an object type where keys are strings and values are of type CustomSetterRender.\n Requirement: The customSetterRenderDefinitions prop must include all CustomSetterRender definitions specified by the generic CustomSetterRenderDef.\n","project":"typescript"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"CustomSetter needs to constrain the type of customType. In the fields of FormSchema, the customType must be included in the key of CustomSetterRenderDef.\n","project":"typescript"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Add a new optional prop `props` to CustomSetter:\n The type of `props` is determined by the parameters of CustomSetterRender corresponding to customType in CustomSetterRenderDef, and these parameters must omit the `value` and `onChange`.\n","project":"typescript"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Add a prop `ctxValue` to ExpressionEvent:\n - type CtxValue.\n - Only the item within an ArraySetter creates a ctxValue, whose type matches the array item's type. \n - If not inside an ArraySetter, ctxValue defaults to the FormValue type.\n","project":"typescript"}
+{"id":"task-19","date":"2025-05-12","level":"moderate","description":"Edit CustomSetter customType:\n customType can't be string with hyphen.\n","project":"typescript"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"In types/schema.ts, create and export interface `EditorRef`:\n - setSetterValueByPath: \n param1: path, an array of nested property keys on FormValue (type-restricted to valid nested paths of FormValue).\n param2: value, the value to set, whose type must match the nested property type inferred from path.\n return: void\n","project":"typescript"}
\ No newline at end of file
diff --git a/datasets/unocss.jsonl b/datasets/unocss.jsonl
index d3b783381cae4d76a0ff855b6cd10fd3febdb98d..bfdc1348d18786defdfe5a07a78fb5762caeeea3 100644
--- a/datasets/unocss.jsonl
+++ b/datasets/unocss.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"add divs(class 'header', 'footer', 'content') with arbitrary text in '.root' element. '.root' occupies total viewport and children elements together occupy total '.root' space. header (border-box) is always fixed at the top of '.root'; footer (border-box) is always fixed at the bottom of '.root'; content (border-box) occupies the remaining '.root' space. USE unocss tailwind 4 syntax, grid only, NO flex, float and position, NO js."}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"add divs(class 'leftbar', 'rightbar') with arbitrary text in '.root' element. leftbar (border-box) is fixed at the left of '.root'; rightbar (border-box) is fixed at the right of '.root'; content occupies the remaining '.root' space. USE tailwind grid only."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"clear header content. add menu(class 'menu') with 3 items(arbitrary text) at the right side of header. USE tailwind grid only too."}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"add logo(class 'logo') with arbitrary background color at the left side of header. USE tailwind grid only."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"leftbar width is the smaller of 200px and 20vw. rightbar width is the bigger of 200px and 20vw. leftbar should disappear when page width is equal to or less than 799px. USE tailwind grid only."}
-{"id":"task-6","date":"2025-05-12","level":"easy","description":"when page width is equal to or less than 399px, menu items should have evenly spaced distribution in the whole header space and logo should disappear. USE tailwind grid only."}
-{"id":"task-7","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, content and rightbar should occupy full page width and rightbar should be at the bottom of content. USE tailwind grid only."}
-{"id":"task-8","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, each menu item should occupy full page width. USE tailwind grid only."}
-{"id":"task-9","date":"2025-05-12","level":"challenging","description":"separate leftbar whole space into 20 rows and 2 columns. fill each cell with text 'this is a very long text sample to test word wrap'. USE tailwind grid only."}
-{"id":"task-10","date":"2025-05-12","level":"challenging","description":"separate rightbar whole space into 10 rows and 2 columns; fill 40 items in the rightbar whole space. fill each item with text 'this-is-a-very-long-text-sample-to-test-overflow'. USE tailwind grid only."}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, display the first 3 rows in rightbar."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"show 12 cards (class 'card') in content with 3 per row, 100px minimum height each and vertical scrolling enabled."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"when page width is less than 1000px, display 2 cards per row in content."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"when page width is less than 600px, display 1 card per row in content."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"each card has a image(class 'card-image'), title and price; title's minimum height is 1.5rem and no wrap, text is 'Long Product Title That Goes Here'; price's minimum height is 1rem; image uses the remaining space. USE tailwind grid only."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"only change card css property to reverse the order of the last 2 cards."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"add a logo(class 'footer-logo') and info (class 'footer-info') in the footer. footer-info should never wrap and should show ellipsis when space is insufficient."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"add left-drag and right-drag with absolute positions at the left and right sides of the content; left-drag and right-drag are not visible by default and become visible when mouse hovers over content."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"gen js, drag right-drag and left-drag to adjust content width."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, move right-drag to the bottom of content and drag right-drag to adjust content height."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"add divs(class 'header', 'footer', 'content') with arbitrary text in '.root' element. '.root' occupies total viewport and children elements together occupy total '.root' space. header (border-box) is always fixed at the top of '.root'; footer (border-box) is always fixed at the bottom of '.root'; content (border-box) occupies the remaining '.root' space. USE unocss tailwind 4 syntax, grid only, NO flex, float and position, NO js.","project":"unocss"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"add divs(class 'leftbar', 'rightbar') with arbitrary text in '.root' element. leftbar (border-box) is fixed at the left of '.root'; rightbar (border-box) is fixed at the right of '.root'; content occupies the remaining '.root' space. USE tailwind grid only.","project":"unocss"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"clear header content. add menu(class 'menu') with 3 items(arbitrary text) at the right side of header. USE tailwind grid only too.","project":"unocss"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"add logo(class 'logo') with arbitrary background color at the left side of header. USE tailwind grid only.","project":"unocss"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"leftbar width is the smaller of 200px and 20vw. rightbar width is the bigger of 200px and 20vw. leftbar should disappear when page width is equal to or less than 799px. USE tailwind grid only.","project":"unocss"}
+{"id":"task-6","date":"2025-05-12","level":"easy","description":"when page width is equal to or less than 399px, menu items should have evenly spaced distribution in the whole header space and logo should disappear. USE tailwind grid only.","project":"unocss"}
+{"id":"task-7","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, content and rightbar should occupy full page width and rightbar should be at the bottom of content. USE tailwind grid only.","project":"unocss"}
+{"id":"task-8","date":"2025-05-12","level":"easy","description":"when page width is less than 400px, each menu item should occupy full page width. USE tailwind grid only.","project":"unocss"}
+{"id":"task-9","date":"2025-05-12","level":"challenging","description":"separate leftbar whole space into 20 rows and 2 columns. fill each cell with text 'this is a very long text sample to test word wrap'. USE tailwind grid only.","project":"unocss"}
+{"id":"task-10","date":"2025-05-12","level":"challenging","description":"separate rightbar whole space into 10 rows and 2 columns; fill 40 items in the rightbar whole space. fill each item with text 'this-is-a-very-long-text-sample-to-test-overflow'. USE tailwind grid only.","project":"unocss"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, display the first 3 rows in rightbar.","project":"unocss"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"show 12 cards (class 'card') in content with 3 per row, 100px minimum height each and vertical scrolling enabled.","project":"unocss"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"when page width is less than 1000px, display 2 cards per row in content.","project":"unocss"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"when page width is less than 600px, display 1 card per row in content.","project":"unocss"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"each card has a image(class 'card-image'), title and price; title's minimum height is 1.5rem and no wrap, text is 'Long Product Title That Goes Here'; price's minimum height is 1rem; image uses the remaining space. USE tailwind grid only.","project":"unocss"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"only change card css property to reverse the order of the last 2 cards.","project":"unocss"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"add a logo(class 'footer-logo') and info (class 'footer-info') in the footer. footer-info should never wrap and should show ellipsis when space is insufficient.","project":"unocss"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"add left-drag and right-drag with absolute positions at the left and right sides of the content; left-drag and right-drag are not visible by default and become visible when mouse hovers over content.","project":"unocss"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"gen js, drag right-drag and left-drag to adjust content width.","project":"unocss"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"when page width is less than 400px, move right-drag to the bottom of content and drag right-drag to adjust content height.","project":"unocss"}
\ No newline at end of file
diff --git a/datasets/vite.jsonl b/datasets/vite.jsonl
index 4678dc17e5dd869f641a877311e694400b3bd17d..ff46c433e93075fba76e40be0d4f239336c37baf 100644
--- a/datasets/vite.jsonl
+++ b/datasets/vite.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"Setup project with vite. Here are the requirements:\n- Add dev and build to npm scripts.\n- Set dev server port to environment variable `process.env.PROJECT_PORT`.\n- Generate sourceMap after bundling.\n- Set output directory to `dist`.\n- Update public path to \"./\". After bundling, the `src` attribute of should start with \"./\" instead of starting with \"/\"\n- Expose the service to other people in LAN.\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"Add path alias `@` for `src`.\n\nBesides this:\nAdd `import alias from '@/alias'` in `src/index.js`.\nDisplay `alias` value in `src/index.js`.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Setup global constants replacement for __VERSION__.\n__VERSION__ should be replaced with \"v1.0.0\" during bundling.\n\nBesides this:\n- Add `import './version'` in `src/index.js`.\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"I want to write a Single Page Applications, but when visiting the route path, dev server response with 404, help me make it fallback to `index.html`.\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"My targeting browsers support `?.` (Optional Chaining Operator), so I want to keep this syntax as is after bundling.\nTry to address it.\n"}
-{"id":"task-6","date":"2025-05-12","level":"easy","description":"I want to proxy every request prefixed with `/postman/` to `https://postman-echo.com` in dev server.\nFor example, request to `/postman/get` will be forwarded to `https://postman-echo.com/get`.\nTry to address it.\n"}
-{"id":"task-7","date":"2025-05-12","level":"easy","description":"Add `import bird from './images/bird.png'` in `src/index.js`.\nUpdate `src/index.js` to display the png image in
element with id `bird`.\n\nAdd `import svg from './images/TablerAntennaBars5.svg'` in `src/index.js`.\nUpdate `src/index.js` to display the svg image in
element with id `svg`.\n\nUpdate bundler configuration if necessary.\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Add `import './index.css'` in `src/index.js`.\nDisplay text `hello css` in div with CSS class `.css` in `src/index.js`.\n\nAdd `import './index.less'` in `src/index.js`.\nDisplay text `hello less` in div with CSS class `.less` in `src/index.js`.\n\nAdd `import lessStyles from './index.module.less'` in `src/index.js`.\nDisplay text `hello less modules` in div with CSS class referencing to variable`lessStyles.lessModules` in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Add `import ts from './index.ts'` in `src/index.js`.\nDisplay `ts()` return value in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Add `import VueComponent from './component.vue';` in `src/index.js`.\nMount VueComponent in `src/index.js`.\n\nAdd `import ReactComponent from './component.jsx'` in `src/index.js`.\nMount ReactComponent in `src/index.js`.\n\nDO NOT use jsx syntax.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"I want to do something with sourcemap files in output directory.\n\n## Requirements\n- Move all sourcemap files into `/sourcemaps` after build.\n- Add `//# sourceMappingURL=https://internal.com/sourcemaps/` at the end of original js file.\n\n## Examples\nAssume we have following files in dist directory before moving:\n- dist/assets/index.js\n- dist/assets/index.js.map\n\nAfter moving, the files should be:\n- dist/assets/index.js\n- sourcemaps/assets/index.js.map\n\nAnd the `dist/assets/index.js` should contain the following content at its end:\n//# sourceMappingURL=https://internal.com/sourcemaps/assets/index.js.map\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Update the bundler configuration to remove all `console.log` call expression after running build command.\nDONOT use terser or other compressor tool, implement it on your own locally.\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"During bundling, extract all license information into `dist/vendor-licenses.txt` from all npm packages imported directly or transitively in source file.\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement dynamical generation of in-memory virtual modules as a vite plugin.\n\nFor example:\n\nsrc/files/a.ts\n```js\nexport default 'a'\n```\n\nsrc/files/b.ts\n```js\nexport default 'b'\n```\n\nsrc/index.js\n```js\nimport files from '~files'\nfiles.a.default // should be 'a'\nfiles.b.default // should be 'b'\n```\n\nYou can hardcode `src/files` and `~files` as a builtin rule when implementing this.\n\nBesides this\n- Add `import files from '~files'` in `src/index.js`\n- Display JSON stringified files(without any whitespaces) in `src/index.js`\n"}
-{"id":"task-15","date":"2025-05-12","level":"moderate","description":"I have some mock data in `/mock.json`, setup dev server to return them as mock data.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Implement an image compression plugin for bundler, only for build command\n"}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"I want to import markdown files directly, and get rendered html by importing them.\nFor example:\n```js\nimport md from './hello.md'\n```\n\nThe `md` variable is expected to be a html string rendered by its markdown content.\n\nImplement this in a local vite plugin.\n\nBesides this:\n- Add `import md from './hello.md'` in `src/index.js`.\n- Display `md` inside a div in `src/index.js`.\n"}
-{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Supporting importing frontmatter from markdown files.\n\nFor example:\n\nhello.md\n```md\n---\nauthor: hello\ntags:\n - foo\n - bar\n---\n\n## Markdown Heading\n```\n\nindex.js\n```js\nimport md, { frontmatter } from './hello.md'\n\nfrontmatter.author // should be \"hello\"\nfrontmatter.tags // should be [\"foo\", \"bar\"]\n```\n\nBesides this\n- Update `import md from './hello.md'` to `import md, { frontmatter } from './hello.md'` in `src/index.js`.\n- Display `frontmatter.author` in div element in `src/index.js`\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new feature for markdown vite plugin.\nWhen markdown content includes images, the images should be recognized as dependency of markdown file.\nImage url in rendered html string should reference to the image in output directory.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add `language` option for markdown vite plugin\n\nFor example:\n```js\nimport md from './hello.md'\n```\nIf langauge is 'en', `./hello.md` will resolved to `./hello.en.md` if it exists.\nIf langauge is 'zh', `./hello.md` will resolved to `./hello.zh.md` if it exists.\nIf both `./hello.en.md` and `./hello.zh.md` are not found, fallback to its original path `./hello.md`\n\nBesides this, set language=\"zh\" as default value.\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"Setup project with vite. Here are the requirements:\n- Add dev and build to npm scripts.\n- Set dev server port to environment variable `process.env.PROJECT_PORT`.\n- Generate sourceMap after bundling.\n- Set output directory to `dist`.\n- Update public path to \"./\". After bundling, the `src` attribute of should start with \"./\" instead of starting with \"/\"\n- Expose the service to other people in LAN.\n","project":"vite"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"Add path alias `@` for `src`.\n\nBesides this:\nAdd `import alias from '@/alias'` in `src/index.js`.\nDisplay `alias` value in `src/index.js`.\n","project":"vite"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Setup global constants replacement for __VERSION__.\n__VERSION__ should be replaced with \"v1.0.0\" during bundling.\n\nBesides this:\n- Add `import './version'` in `src/index.js`.\n","project":"vite"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"I want to write a Single Page Applications, but when visiting the route path, dev server response with 404, help me make it fallback to `index.html`.\n","project":"vite"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"My targeting browsers support `?.` (Optional Chaining Operator), so I want to keep this syntax as is after bundling.\nTry to address it.\n","project":"vite"}
+{"id":"task-6","date":"2025-05-12","level":"easy","description":"I want to proxy every request prefixed with `/postman/` to `https://postman-echo.com` in dev server.\nFor example, request to `/postman/get` will be forwarded to `https://postman-echo.com/get`.\nTry to address it.\n","project":"vite"}
+{"id":"task-7","date":"2025-05-12","level":"easy","description":"Add `import bird from './images/bird.png'` in `src/index.js`.\nUpdate `src/index.js` to display the png image in
element with id `bird`.\n\nAdd `import svg from './images/TablerAntennaBars5.svg'` in `src/index.js`.\nUpdate `src/index.js` to display the svg image in
element with id `svg`.\n\nUpdate bundler configuration if necessary.\n","project":"vite"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Add `import './index.css'` in `src/index.js`.\nDisplay text `hello css` in div with CSS class `.css` in `src/index.js`.\n\nAdd `import './index.less'` in `src/index.js`.\nDisplay text `hello less` in div with CSS class `.less` in `src/index.js`.\n\nAdd `import lessStyles from './index.module.less'` in `src/index.js`.\nDisplay text `hello less modules` in div with CSS class referencing to variable`lessStyles.lessModules` in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"vite"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Add `import ts from './index.ts'` in `src/index.js`.\nDisplay `ts()` return value in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"vite"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Add `import VueComponent from './component.vue';` in `src/index.js`.\nMount VueComponent in `src/index.js`.\n\nAdd `import ReactComponent from './component.jsx'` in `src/index.js`.\nMount ReactComponent in `src/index.js`.\n\nDO NOT use jsx syntax.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"vite"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"I want to do something with sourcemap files in output directory.\n\n## Requirements\n- Move all sourcemap files into `/sourcemaps` after build.\n- Add `//# sourceMappingURL=https://internal.com/sourcemaps/` at the end of original js file.\n\n## Examples\nAssume we have following files in dist directory before moving:\n- dist/assets/index.js\n- dist/assets/index.js.map\n\nAfter moving, the files should be:\n- dist/assets/index.js\n- sourcemaps/assets/index.js.map\n\nAnd the `dist/assets/index.js` should contain the following content at its end:\n//# sourceMappingURL=https://internal.com/sourcemaps/assets/index.js.map\n","project":"vite"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Update the bundler configuration to remove all `console.log` call expression after running build command.\nDONOT use terser or other compressor tool, implement it on your own locally.\n","project":"vite"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"During bundling, extract all license information into `dist/vendor-licenses.txt` from all npm packages imported directly or transitively in source file.\n","project":"vite"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement dynamical generation of in-memory virtual modules as a vite plugin.\n\nFor example:\n\nsrc/files/a.ts\n```js\nexport default 'a'\n```\n\nsrc/files/b.ts\n```js\nexport default 'b'\n```\n\nsrc/index.js\n```js\nimport files from '~files'\nfiles.a.default // should be 'a'\nfiles.b.default // should be 'b'\n```\n\nYou can hardcode `src/files` and `~files` as a builtin rule when implementing this.\n\nBesides this\n- Add `import files from '~files'` in `src/index.js`\n- Display JSON stringified files(without any whitespaces) in `src/index.js`\n","project":"vite"}
+{"id":"task-15","date":"2025-05-12","level":"moderate","description":"I have some mock data in `/mock.json`, setup dev server to return them as mock data.\n","project":"vite"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Implement an image compression plugin for bundler, only for build command\n","project":"vite"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"I want to import markdown files directly, and get rendered html by importing them.\nFor example:\n```js\nimport md from './hello.md'\n```\n\nThe `md` variable is expected to be a html string rendered by its markdown content.\n\nImplement this in a local vite plugin.\n\nBesides this:\n- Add `import md from './hello.md'` in `src/index.js`.\n- Display `md` inside a div in `src/index.js`.\n","project":"vite"}
+{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Supporting importing frontmatter from markdown files.\n\nFor example:\n\nhello.md\n```md\n---\nauthor: hello\ntags:\n - foo\n - bar\n---\n\n## Markdown Heading\n```\n\nindex.js\n```js\nimport md, { frontmatter } from './hello.md'\n\nfrontmatter.author // should be \"hello\"\nfrontmatter.tags // should be [\"foo\", \"bar\"]\n```\n\nBesides this\n- Update `import md from './hello.md'` to `import md, { frontmatter } from './hello.md'` in `src/index.js`.\n- Display `frontmatter.author` in div element in `src/index.js`\n","project":"vite"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new feature for markdown vite plugin.\nWhen markdown content includes images, the images should be recognized as dependency of markdown file.\nImage url in rendered html string should reference to the image in output directory.\n","project":"vite"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Add `language` option for markdown vite plugin\n\nFor example:\n```js\nimport md from './hello.md'\n```\nIf langauge is 'en', `./hello.md` will resolved to `./hello.en.md` if it exists.\nIf langauge is 'zh', `./hello.md` will resolved to `./hello.zh.md` if it exists.\nIf both `./hello.en.md` and `./hello.zh.md` are not found, fallback to its original path `./hello.md`\n\nBesides this, set language=\"zh\" as default value.\n","project":"vite"}
\ No newline at end of file
diff --git a/datasets/vue.jsonl b/datasets/vue.jsonl
index 6833a9b691fa00bee44c593014c5cdc20ae7b231..dfe8f4853ab499cfb839f5a82102630b97b0a8ae 100644
--- a/datasets/vue.jsonl
+++ b/datasets/vue.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.vue that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.vue where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.vue that accepts 'title' and 'detail' as props. Display mock blog data in Main.vue using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.vue And Main.vue in App.vue 4) The classname of title in Blog.vue is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.vue, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.vue with a width of 300px; each blog item should have a height of 40px and a border-box layout, 4) Only One Blog.vue occupies the remaining space of Main.vue. The content of Blog.vue should be from first item of the mock data."}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.vue to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.vue."}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible."}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData."}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.ts to manage related context (blog list and selected blog) with Provide/Inject API 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.vue to show the length of blogs"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.vue. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a composable composables/useDelete.ts."}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.vue. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a composable composables/useEdit.ts;"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.vue(width: 200px, border-box) component above BlogList.vue in Main.vue. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs."}
-{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":" 1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not stuck when 100000 blogs appended. 3) Constraint: DO NOT USE any third-party packages, ONLY Vue APIs can be used to optimize the performance."}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.vue with the title 'Comments' at the bottom of Blog.vue. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/comment.ts implement CommentStore without Inject/Provide API、Pinia etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize Vue APIs."}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.vue that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are allowed."}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.vue. 2) Develop a composable/utils to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted."}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.ts to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted."}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted."}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.vue and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API."}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.vue with text 'Hello Game'. 2) Add router to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.vue to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted; DO NOT use Vue Router."}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted."}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted."}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.vue that displays 'Hello Blog' at the top of the page with appealing background color. 2) Create components/Main.vue where content is aligned at the top left and fills the remaining space. 3) Develop components/Blog.vue that accepts 'title' and 'detail' as props. Display mock blog data in Main.vue using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }. 4) Render Header.vue And Main.vue in App.vue 4) The classname of title in Blog.vue is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px","project":"vue"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'. 2) In Main.vue, mock the blog data and display it using BlogList with this data: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}]. 3) Position BlogList on the left side of Main.vue with a width of 300px; each blog item should have a height of 40px and a border-box layout, 4) Only One Blog.vue occupies the remaining space of Main.vue. The content of Blog.vue should be from first item of the mock data.","project":"vue"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. 2) Set 'Morning' as the default selected blog. 3) Beautify the List without changing the size of List Item","project":"vue"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. 2) Add an 'Add Blog' appealing blue button in the right of Header.vue to toggle the BlogForm's visibility. 3) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it. 4) Place the BlogForm component in App.vue.","project":"vue"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) Add .visible-count in the top-left of BlogForm showing '0' initially. 2) Increment .visible-count by 1 each time BlogForm becomes visible.","project":"vue"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); 2) When submitted, append this Blog to BlogList, and set this Blog as selected. Keep Previous MockData.","project":"vue"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":" 1) Create context/BlogContext.ts to manage related context (blog list and selected blog) with Provide/Inject API 2) When submit a new BlogForm, check title duplication. Constraint: The duplication check code should be written in BlogForm; 3) Add a span(.blog-list-len) near 'Hello Blog' in Header.vue to show the length of blogs","project":"vue"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.vue. When clicked, delete selected Blog and select the first blog. 2) The logic of Delete is encapsulated in a composable composables/useDelete.ts.","project":"vue"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.vue. When clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Form' in this case. When submitted, update selected Blog. 2) The logic of Edit is encapsulated in a composable composables/useEdit.ts;","project":"vue"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add a Search.vue(width: 200px, border-box) component above BlogList.vue in Main.vue. 2) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to filter blogs.","project":"vue"}
+{"id":"task-11","date":"2025-05-12","level":"chanllenging","description":" 1) Add a button with the text 'Random Blogs' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\d]{12}', digits in title is random. 2) Ensure the page will not stuck when 100000 blogs appended. 3) Constraint: DO NOT USE any third-party packages, ONLY Vue APIs can be used to optimize the performance.","project":"vue"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Add appealing Comments.vue with the title 'Comments' at the bottom of Blog.vue. 2) Include a TextArea with the placeholder 'Enter Your Comment' and a submit button (.comment-btn) to submit the comment. 3) Only display comments related to the selected blog, showing them in cards with the className '.comment-item', placed above the TextArea. 4) Create store/comment.ts implement CommentStore without Inject/Provide API、Pinia etc., and connect CommentStore to UI. 5) Preserve comments when a blog is edited, and clear them when a blog is deleted. 6) Constraint: DO NOT USE any third-party packages; ONLY utilize Vue APIs.","project":"vue"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"1) Create components/Tooltip.vue that displays a tooltip (.tooltip) at the bottom of the child component when hovered over. 2) Implement this tooltip on the 'Add Blog' button to show 'Write a New Blog For everyone' when hovered. 3) The Tooltip should be appended to document.body. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are allowed.","project":"vue"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.vue. 2) Develop a composable/utils to reuse Markdown-related logic. 3) Prevent XSS attacks. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted.","project":"vue"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"1) Create utils/toast.ts to display a one-line message (fontSize: 12px) in a appealing green box at the top of the page for 2000ms. 2) Display a toast with 'New Comment Created Successfully!' when a new comment is submitted, and 'New Blog Created Successfully!' when a new blog is submitted. 3) If a toast is already visible when another is triggered, remove the old toast before showing the new one. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted.","project":"vue"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"1) When the title of Blog is longer than 300px, show '...' to hide longer text. 2) Title can be hovered to show full content in Tooltip when Title is longer than 300px. DO NOT show tooltip when Title is less than 300px 3) Make sure EVERY title displayed in the page follow the rules, create reusable component. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted.","project":"vue"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"1) Add appealing button in Header with text 'Fast Comment'. 2) When clicked, focus Textarea in Comments.vue and type 'Charming Blog!' DO NOT submit this comment. 3) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted. DO NOT use BOM API. DO NOT use DOM query API.","project":"vue"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"1) Add pages/Game.vue with text 'Hello Game'. 2) Add router to control the Route Logic: When browser location is '/', routed to App. When browser location is '/game', routed to Game. 3) Add a appealing button with text '🎮' in App's Header.vue to jump to Game page, and user can go back to App when browser page go Back. 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted; DO NOT use Vue Router.","project":"vue"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"1) Write a Gomoku chess game 2) chess board is 15*15, there is black chess and white chess, black chess first 3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\d{1,2}-d\\{1,2}. 4) show 'White's Turn' and 'Black'Turn' to shw current player 5) show 'White Wins!' and 'Black Wins!' when player wins, toast BIG 'Congratulations!' with style: 50px fontSize 6) keep 'Hello Game' 7) Beautify this game 8) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted.","project":"vue"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"1) When gamer wins, add a button with Text 'Post Game Records', when clicked, post a new blog to record the history of this game. Return to blog page and show this blog 2) The Blog Content Example: '# White is Winner!\n```game\nWhite(1,5);\nBlack(14,11);\nWhite(11,4);\n```' 3) Title of Blog follow Game-[Date]-[Time] 4) Constraint: DO NOT use any third-party packages; ONLY Vue APIs are permitted.","project":"vue"}
\ No newline at end of file
diff --git a/datasets/webpack.jsonl b/datasets/webpack.jsonl
index a0d5b965505ce9f7ddd1b9adcb6314fa1d872b08..9f1cb1c94d31d38096108f1a84e073e9eff66f62 100644
--- a/datasets/webpack.jsonl
+++ b/datasets/webpack.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"Setup project with webpack. Here are the requirements:\n- Add dev and build to npm scripts.\n- Set dev server port to environment variable `process.env.PROJECT_PORT`.\n- Generate sourceMap after bundling(If webpack generates sourceMap by default, then you don't need to do anything here).\n- Set output directory to `dist` for build command.\n- Use index.html as html template\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"Add path alias `@` for `src`.\n\nBesides this:\nAdd `import alias from '@/alias'` in `src/index.js`.\nDisplay `alias` value in `src/index.js`.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"Setup global constants replacement for process.env.__VERSION__ via bundler capability.\nprocess.env.__VERSION__ should be replaced with \"v1.0.0\" during bundling.\n\nBesides this:\n- Add `import './version'` in `src/index.js`.\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"I want to write a Single Page Application.\nWhen visiting non-existent page, dev server should fallback to `index.html`.\nIf it's already the default behavior in webpack, do nothing.\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"My targeting browsers support `?.` (Optional Chaining Operator), so I want to keep this syntax as is after bundling.\nTry to address it.\n"}
-{"id":"task-6","date":"2025-05-12","level":"easy","description":"I want to proxy every request prefixed with `/postman/` to `https://postman-echo.com` in dev server.\nFor example, request to `/postman/get` will be forwarded to `https://postman-echo.com/get`.\nTry to address it.\n"}
-{"id":"task-7","date":"2025-05-12","level":"easy","description":"Add `import bird from './images/bird.png'` in `src/index.js`.\nUpdate `src/index.js` to display the png image in
element with id `bird`.\n\nAdd `import svg from './images/TablerAntennaBars5.svg'` in `src/index.js`.\nUpdate `src/index.js` to display the svg image in
element with id `svg`.\n\nUpdate bundler configuration if necessary.\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Add `import './index.css'` in `src/index.js`.\nDisplay text `hello css` in div with CSS class `.css` in `src/index.js`.\n\nAdd `import './index.less'` in `src/index.js`.\nDisplay text `hello less` in div with CSS class `.less` in `src/index.js`.\n\nAdd `import lessStyles from './index.module.less'` in `src/index.js`.\nDisplay text `hello less modules` in div with CSS class referencing to variable`lessStyles.lessModules` in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Add `import ts from './index.ts'` in `src/index.js`.\nDisplay `ts()` return value in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Add `import VueComponent from './component.vue';` in `src/index.js`.\nMount VueComponent in `src/index.js`.\n\nAdd `import ReactComponent from './component.jsx'` in `src/index.js`.\nMount ReactComponent in `src/index.js`.\n\nDO NOT use jsx syntax.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"I want to do something with sourcemap files in output directory.\nImplement this as a local webpack plugin.\n\n## Requirements\n- Move all sourcemap files into `/sourcemaps` after build.\n- Add `//# sourceMappingURL=https://internal.com/sourcemaps/` at the end of original js file.\n\n## Examples\nAssume we have following files in dist directory before moving:\n- dist/assets/index.js\n- dist/assets/index.js.map\n- dist/assets/index.css\n- dist/assets/index.css.map\n\nAfter moving, the files should be:\n- dist/assets/index.js\n- dist/assets/index.css\n- sourcemaps/assets/index.js.map\n- sourcemaps/assets/index.css.map\n\nAnd the `dist/assets/index.js` should contain the following content at its end(Using JS comment):\n//# sourceMappingURL=https://internal.com/sourcemaps/assets/index.js.map\n\nAnd the `dist/assets/index.css` should contain the following content at its end(Using CSS comment):\n/*# sourceMappingURL=https://internal.com/sourcemaps/assets/index.css.map */\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Update the bundler configuration to remove all `console.log` call expression after running build command.\nDONOT use terser or other compressor tool, implement it on your own locally.\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"During bundling, extract all license information into `dist/vendor-licenses.txt` from all npm packages imported directly or transitively in source file.\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement dynamical generation of in-memory virtual modules via bundler capability.\n\nFor example:\n\nsrc/files/a.ts\n```js\nexport default 'a'\n```\n\nsrc/files/b.ts\n```js\nexport default 'b'\n```\n\nsrc/index.js\n```js\nimport files from '~files'\nfiles.a.default // should be 'a'\nfiles.b.default // should be 'b'\n```\n\nYou can hardcode `src/files` and `~files` as a builtin rule when implementing this.\n\nBesides this\n- Add `import files from '~files'` in `src/index.js`\n- Display JSON stringified files(without any whitespaces) in div element in `src/index.js`\n"}
-{"id":"task-15","date":"2025-05-12","level":"moderate","description":"I have some mock data in `/mock.json`, setup dev server to return them as mock data.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Implement an image compression plugin for bundler, only for build command\n"}
-{"id":"task-17","date":"2025-05-12","level":"moderate","description":"I want to import markdown files directly, and get rendered html by importing them.\nFor example:\n```js\nimport md from './hello.md'\n```\n\nThe `md` variable is expected to be a html string rendered by its markdown content.\n\nImplement this functionality via bundler capability.\n\nBesides this:\n- Add `import md from './hello.md'` in `src/index.js`.\n- Display `md` inside a div in `src/index.js`.\n"}
-{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Supporting importing frontmatter from markdown files.\n\nFor example:\n\nhello.md\n```md\n---\nauthor: hello\ntags:\n - foo\n - bar\n---\n\n## Markdown Heading\n```\n\nindex.js\n```js\nimport md, { frontmatter } from './hello.md'\n\nfrontmatter.author // should be \"hello\"\nfrontmatter.tags // should be [\"foo\", \"bar\"]\n```\n\nBesides this\n- Update `import md from './hello.md'` to `import md, { frontmatter } from './hello.md'` in `src/index.js`.\n- Display `frontmatter.author` in div element in `src/index.js`\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add image resolving for markdown files.\nWhen markdown content includes images, the images should be recognized as dependency of markdown file.\nImage url in rendered html string should reference to the image in output directory.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"I want to implement the following functionality with bundler.\n\nFor example:\n```js\nimport md from './hello.md'\n```\nIf langauge is 'en', `./hello.md` will resolved to `./hello.en.md` if it exists.\nIf langauge is 'zh', `./hello.md` will resolved to `./hello.zh.md` if it exists.\nIf both `./hello.en.md` and `./hello.zh.md` are not found, fallback to its original path `./hello.md`\n\nBesides this, use language=\"zh\" as default value when resolving file.\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"Setup project with webpack. Here are the requirements:\n- Add dev and build to npm scripts.\n- Set dev server port to environment variable `process.env.PROJECT_PORT`.\n- Generate sourceMap after bundling(If webpack generates sourceMap by default, then you don't need to do anything here).\n- Set output directory to `dist` for build command.\n- Use index.html as html template\n","project":"webpack"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"Add path alias `@` for `src`.\n\nBesides this:\nAdd `import alias from '@/alias'` in `src/index.js`.\nDisplay `alias` value in `src/index.js`.\n","project":"webpack"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"Setup global constants replacement for process.env.__VERSION__ via bundler capability.\nprocess.env.__VERSION__ should be replaced with \"v1.0.0\" during bundling.\n\nBesides this:\n- Add `import './version'` in `src/index.js`.\n","project":"webpack"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"I want to write a Single Page Application.\nWhen visiting non-existent page, dev server should fallback to `index.html`.\nIf it's already the default behavior in webpack, do nothing.\n","project":"webpack"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"My targeting browsers support `?.` (Optional Chaining Operator), so I want to keep this syntax as is after bundling.\nTry to address it.\n","project":"webpack"}
+{"id":"task-6","date":"2025-05-12","level":"easy","description":"I want to proxy every request prefixed with `/postman/` to `https://postman-echo.com` in dev server.\nFor example, request to `/postman/get` will be forwarded to `https://postman-echo.com/get`.\nTry to address it.\n","project":"webpack"}
+{"id":"task-7","date":"2025-05-12","level":"easy","description":"Add `import bird from './images/bird.png'` in `src/index.js`.\nUpdate `src/index.js` to display the png image in
element with id `bird`.\n\nAdd `import svg from './images/TablerAntennaBars5.svg'` in `src/index.js`.\nUpdate `src/index.js` to display the svg image in
element with id `svg`.\n\nUpdate bundler configuration if necessary.\n","project":"webpack"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"Add `import './index.css'` in `src/index.js`.\nDisplay text `hello css` in div with CSS class `.css` in `src/index.js`.\n\nAdd `import './index.less'` in `src/index.js`.\nDisplay text `hello less` in div with CSS class `.less` in `src/index.js`.\n\nAdd `import lessStyles from './index.module.less'` in `src/index.js`.\nDisplay text `hello less modules` in div with CSS class referencing to variable`lessStyles.lessModules` in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"webpack"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"Add `import ts from './index.ts'` in `src/index.js`.\nDisplay `ts()` return value in `src/index.js`.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"webpack"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"Add `import VueComponent from './component.vue';` in `src/index.js`.\nMount VueComponent in `src/index.js`.\n\nAdd `import ReactComponent from './component.jsx'` in `src/index.js`.\nMount ReactComponent in `src/index.js`.\n\nDO NOT use jsx syntax.\n\nAlso help me update other files in this project to ensure `dev` and `build` commands won't throw errors after doing that.\n","project":"webpack"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"I want to do something with sourcemap files in output directory.\nImplement this as a local webpack plugin.\n\n## Requirements\n- Move all sourcemap files into `/sourcemaps` after build.\n- Add `//# sourceMappingURL=https://internal.com/sourcemaps/` at the end of original js file.\n\n## Examples\nAssume we have following files in dist directory before moving:\n- dist/assets/index.js\n- dist/assets/index.js.map\n- dist/assets/index.css\n- dist/assets/index.css.map\n\nAfter moving, the files should be:\n- dist/assets/index.js\n- dist/assets/index.css\n- sourcemaps/assets/index.js.map\n- sourcemaps/assets/index.css.map\n\nAnd the `dist/assets/index.js` should contain the following content at its end(Using JS comment):\n//# sourceMappingURL=https://internal.com/sourcemaps/assets/index.js.map\n\nAnd the `dist/assets/index.css` should contain the following content at its end(Using CSS comment):\n/*# sourceMappingURL=https://internal.com/sourcemaps/assets/index.css.map */\n","project":"webpack"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"Update the bundler configuration to remove all `console.log` call expression after running build command.\nDONOT use terser or other compressor tool, implement it on your own locally.\n","project":"webpack"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"During bundling, extract all license information into `dist/vendor-licenses.txt` from all npm packages imported directly or transitively in source file.\n","project":"webpack"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement dynamical generation of in-memory virtual modules via bundler capability.\n\nFor example:\n\nsrc/files/a.ts\n```js\nexport default 'a'\n```\n\nsrc/files/b.ts\n```js\nexport default 'b'\n```\n\nsrc/index.js\n```js\nimport files from '~files'\nfiles.a.default // should be 'a'\nfiles.b.default // should be 'b'\n```\n\nYou can hardcode `src/files` and `~files` as a builtin rule when implementing this.\n\nBesides this\n- Add `import files from '~files'` in `src/index.js`\n- Display JSON stringified files(without any whitespaces) in div element in `src/index.js`\n","project":"webpack"}
+{"id":"task-15","date":"2025-05-12","level":"moderate","description":"I have some mock data in `/mock.json`, setup dev server to return them as mock data.\n","project":"webpack"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Implement an image compression plugin for bundler, only for build command\n","project":"webpack"}
+{"id":"task-17","date":"2025-05-12","level":"moderate","description":"I want to import markdown files directly, and get rendered html by importing them.\nFor example:\n```js\nimport md from './hello.md'\n```\n\nThe `md` variable is expected to be a html string rendered by its markdown content.\n\nImplement this functionality via bundler capability.\n\nBesides this:\n- Add `import md from './hello.md'` in `src/index.js`.\n- Display `md` inside a div in `src/index.js`.\n","project":"webpack"}
+{"id":"task-18","date":"2025-05-12","level":"moderate","description":"Supporting importing frontmatter from markdown files.\n\nFor example:\n\nhello.md\n```md\n---\nauthor: hello\ntags:\n - foo\n - bar\n---\n\n## Markdown Heading\n```\n\nindex.js\n```js\nimport md, { frontmatter } from './hello.md'\n\nfrontmatter.author // should be \"hello\"\nfrontmatter.tags // should be [\"foo\", \"bar\"]\n```\n\nBesides this\n- Update `import md from './hello.md'` to `import md, { frontmatter } from './hello.md'` in `src/index.js`.\n- Display `frontmatter.author` in div element in `src/index.js`\n","project":"webpack"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add image resolving for markdown files.\nWhen markdown content includes images, the images should be recognized as dependency of markdown file.\nImage url in rendered html string should reference to the image in output directory.\n","project":"webpack"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"I want to implement the following functionality with bundler.\n\nFor example:\n```js\nimport md from './hello.md'\n```\nIf langauge is 'en', `./hello.md` will resolved to `./hello.en.md` if it exists.\nIf langauge is 'zh', `./hello.md` will resolved to `./hello.zh.md` if it exists.\nIf both `./hello.en.md` and `./hello.zh.md` are not found, fallback to its original path `./hello.md`\n\nBesides this, use language=\"zh\" as default value when resolving file.\n","project":"webpack"}
\ No newline at end of file
diff --git a/datasets/zustand.jsonl b/datasets/zustand.jsonl
index cea2dacd2e12e59cdac647aeef1f59ba20d1ea3e..2de413b89a32f1e40627405700e38c9bec745af0 100644
--- a/datasets/zustand.jsonl
+++ b/datasets/zustand.jsonl
@@ -1,20 +1,20 @@
-{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color.\n2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. \n3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }.\n3) Render Header.tsx And Main.tsx in App.tsx \n4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px\n"}
-{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'.\n2) Create stores/blog.ts, use Zustand to create a store with blog data, initialState is: \n```\n{ blogs: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}] }\n```\n2) In Main.tsx, render BlogList with the data from the store (by using blog to access the blog data)\n3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. \n4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be the first item of blog list.\n"}
-{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. \n2) Set 'Morning' as the default selected blog. \n3) Beautify the List without changing the size of List Item\n4) Use Zustand to manage the selected blog\n"}
-{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. \n2) Use Zustand to manage the 'formVisible' state. When formVisible is true, the BlogForm should be displayed, otherwise, it should be hidden.\n3) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. \n4) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it.\n5) Place the BlogForm component in App.tsx.\n"}
-{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) An API is prepared, here is the docs of API:\nGET /api/blogs\n\n interface Response {\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) In stores/blog.ts, add an async function to fetch data from API and update the blog list data in the store.\n3) When App.tsx mounted, call the fetch function to start fetching blogs.\n4) When API is fetching, show 'Blog is loading' in App.tsx\n5) Notice: When Initial Blog is fetching, Header is always visible but 'Add Blog' button should be disabled.\n"}
-{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label (label[htmlFor=\"title\"], label[htmlFor=\"detail\"]) in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); \n2) When submitted, append this Blog to BlogList, and set this Blog as selected.\n3) Use Zustand to append form data to blogs. \n4) Check title duplication when submit clicked. When title is duplicated, stop submitting and show a red border around the input field.\n5) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs\n"}
-{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx to delete the selected blog.\n2) When blog deleted, set the first blog in blogs as selected.\n3) If blogs is empty, shows 'No Blog' instead.\n"}
-{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. \n2) When Edit clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Blog' in this case. When submitted, update selected Blog. \n3) Use Zustand to manage edit logic.\n"}
-{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Here is Search API:\nGET /api/search_blogs?keywords=XXX\n\n interface Response {\n // blogs is the search result\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. \n3) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to FILTER blogs by using new Search API.\n4) Use Zustand to request Search API and manage filtered blogs. Notice: Do not change the blogs in store.\n5) Hint: When input field is typed fast, make sure the latest search result is displayed.\nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n"}
-{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add stores/route.ts to control the Route Logic\nThe definition of state is:\n```\ninterface RouteState {\n currentRoute: string;\n}\n```\nThe initial state of route will be the pathname of the current page.\n2) In stores/route.ts, listens to browser history change, and updates the currentRoute in the store.\n3) When path is '/', shows Main.tsx, when path is '/login', shows pages/Login.tsx. Header is visible for every page.\n4) Render User Login
in components/Login.tsx. Add Button with text '🔑' in the right of Header.tsx, when clicked, go to '/login'.\nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n"}
-{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a button with the text '🔀' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\\\d]{12}', digits in title is random. \n2) Ensure the page will not be stuck when 100000 blogs are appended. \nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n"}
-{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. \n2) Develop a utility to reuse Markdown-related logic. \n3) Prevent XSS attacks. \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n"}
-{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Implement user login, logout, and display blog poster's username.\n\n 1) Login API:\nPOST /api/login\nRequest: { username: string, password: string }\nResponse: { success: boolean }\n2) On the /login page, add a LoginForm with labels(label[htmlFor=\"username\"], label[htmlFor=\"password\"]), and a .login-submit-btn to submit the form via the Login API.\n3) Display the user's username in Header.tsx with the class '.username'.\n4) Show the blog author's username with the class '.blog-author'. If blog has no author, display 'Anonymous'.\n5) Add a '👋' Logout button (class '.logout-btn') next to the username in Header.tsx. Clicking it logs the user out.\n6) Use Zustand to manage user states.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n"}
-{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement blog comment feature:\n1) Display commenter's username with class '.comment-author' and text with '.comment-text'.\n2) Add a CommentForm with a '.comment-input' textarea and a '.comment-submit-btn' below each blog.\n3) Use Zustand to manage comments.\n4) Add undo functionality via Ctrl+Z (Windows/Linux) or Command+Z (Mac) to remove the last comment.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n"}
-{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Write a Gomoku chess game in route: '/game'\n1) Add a button with the text '🎮' in Header, when clicked, jump to new page '/game'\n2) chess board is 15*15, there is black chess and white chess, black chess first \n3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\\\d{1,2}-d\\\\{1,2}. \n4) show 'White's Turn' and 'Black'Turn' to shw current player \n5) show 'White Wins!' and 'Black Wins!'.\n6) Use Zustand to manage the game logic. Beautify this game \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n"}
-{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Enhance the Gomoku game with multi-step undo functionality.\n1) Implement keyboard shortcut (Ctrl+Z on Windows/Linux or Command+Z on Mac) to trigger the undo action.\n2) Allow multiple consecutive undos to revert the game state to any previous point.\n3) Add a move history display with className '.move-history' showing all moves in the format \"White: (x,y)\" or \"Black: (x,y)\".\n4) Each history item should have className '.history-item'.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic;\n"}
-{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Implement a recording and replay system for Gomoku games.\n1) Every games will be auto recorded, and can be replayed by play button (.replay-play-btn) after the game is finished. \n2) Add play/pause button (className '.replay-play-btn', '.replay-pause-btn') and a slider (className '.replay-slider') to navigate through game moves.\n3) When replaying, show the current move number with className '.current-move'. \n4) There is an interval of 1000 ms between each move.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic;\n"}
-{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Create functionality to share Gomoku games as blog posts.\n1) Shows the \"Share to Blog\" button with className '.share-to-blog-btn' in the Gomoku game after the game is finished.\n2) When clicked, open a modal form (className '.share-modal') with title input (className '.title-input'), description input (className '.description-input'), submit button (className '.share-submit').\nGo to home page ('/') after submitted.\n3) In Blog Detail, detect if a blog contains a Gomoku game recording and display a \"Replay Game\" button (className '.blog-replay-btn').\n4) When the replay button is clicked, show a modal (className '.blog-replay-modal') with the full game replay interface.\n5) The replay interface should include the start play button (className '.blog-replay-start-play'), showing the current move number with className '.current-move'. There is an interval of 1000 ms between each move. \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic.\n"}
-{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new page '/rooms':\n1) Add a button with the text '🚪' in Header, when clicked, jump to new page '/rooms'\n2) Add a \"Create Room\" button with className '.create-room-btn' that opens a room creation form.\n3) The room creation form should include a labeled input field for room name (\"Room Name\") and a \"Create\" button to submit the form and create a new game room with a unique ID. Don't enter the room instantly.\n4) Each room should be displayed as a card with className '.room-card' showing room name, creator's username, and current status.\n5) Sync room status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the state and sync logic.\n"}
-{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Implement a multi-user chat system based on rooms\n1) When a user clicks on a chat room card (with className '.room-card'), navigate to '/chat/:roomId' route.\n2) The chat room page ('/chat/:roomId') contains a message list (className '.message-list'), status display (in '.room-status'), and participant information (display all participants' usernames in '.participant-list').\n3) Implement message sending and receiving functionality, including a message input box (className '.message-input') and a send button (className '.send-button').\n4) Each message (className .message) should contains the sender's information (className '.message-sender').\n5) If the user enters the chat room, add this user to .participant-list.\n6) User will send heartbeat to check if user is in chat room, if the user is not active for 2000ms, the user will be removed from .participant-list.\n7) Sync chat room status, messages, and user connection status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic.\n"}
\ No newline at end of file
+{"id":"task-1","date":"2025-05-12","level":"easy","description":"1) Create components/Header.tsx that displays 'Hello Blog' at the top of the page with appealing background color.\n2) Create components/Main.tsx where content is aligned at the top left and fills the remaining space. \n3) Develop components/Blog.tsx that accepts 'title' and 'detail' as props. Display mock blog data in Main.tsx using this Blog component with the mock data: { title: 'Morning', detail: 'Morning My Friends' }.\n3) Render Header.tsx And Main.tsx in App.tsx \n4) The classname of title in Blog.tsx is 'blog-title', the width of blog-title is 'fit-content', fontSize is 24px\n","project":"zustand"}
+{"id":"task-2","date":"2025-05-12","level":"easy","description":"1) Create a appealing BlogList component that accepts an array of blogs as props and displays the titles in div elements with the className 'list-item'.\n2) Create stores/blog.ts, use Zustand to create a store with blog data, initialState is: \n```\n{ blogs: [{title: 'Morning', detail: 'Morning My Friends'}, {title: 'Travel', detail: 'I love traveling!'}] }\n```\n2) In Main.tsx, render BlogList with the data from the store (by using blog to access the blog data)\n3) Position BlogList on the left side of Main.tsx with a width of 300px; each blog item should have a height of 40px and a border-box layout. \n4) Only One Blog.tsx occupies the remaining space of Main.tsx. The content of Blog.tsx should be the first item of blog list.\n","project":"zustand"}
+{"id":"task-3","date":"2025-05-12","level":"easy","description":"1) Make blog items in BlogList selectable. When an item in BlogList is selected, highlight it with appealing style and display its content in the Blog Component. \n2) Set 'Morning' as the default selected blog. \n3) Beautify the List without changing the size of List Item\n4) Use Zustand to manage the selected blog\n","project":"zustand"}
+{"id":"task-4","date":"2025-05-12","level":"easy","description":"1) Create a BlogForm component as a appealing Modal with the title 'Create Blog'. \n2) Use Zustand to manage the 'formVisible' state. When formVisible is true, the BlogForm should be displayed, otherwise, it should be hidden.\n3) Add an 'Add Blog' appealing blue button in the right of Header.tsx to toggle the BlogForm's visibility. \n4) Place a close button (.close-btn) with 'x' in the top right of BlogForm to hide it.\n5) Place the BlogForm component in App.tsx.\n","project":"zustand"}
+{"id":"task-5","date":"2025-05-12","level":"easy","description":"1) An API is prepared, here is the docs of API:\nGET /api/blogs\n\n interface Response {\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) In stores/blog.ts, add an async function to fetch data from API and update the blog list data in the store.\n3) When App.tsx mounted, call the fetch function to start fetching blogs.\n4) When API is fetching, show 'Blog is loading' in App.tsx\n5) Notice: When Initial Blog is fetching, Header is always visible but 'Add Blog' button should be disabled.\n","project":"zustand"}
+{"id":"task-6","date":"2025-05-12","level":"moderate","description":"1) Add appealing Form with label (label[htmlFor=\"title\"], label[htmlFor=\"detail\"]) in BlogForm to input title and detail; BlogForm can be submitted by button (.submit-btn); \n2) When submitted, append this Blog to BlogList, and set this Blog as selected.\n3) Use Zustand to append form data to blogs. \n4) Check title duplication when submit clicked. When title is duplicated, stop submitting and show a red border around the input field.\n5) Add a span(.blog-list-len) near 'Hello Blog' in Header.tsx to show the length of blogs\n","project":"zustand"}
+{"id":"task-7","date":"2025-05-12","level":"moderate","description":"1) Add 'Delete' appealing red button (.delete-btn) in top&right of Blog.tsx to delete the selected blog.\n2) When blog deleted, set the first blog in blogs as selected.\n3) If blogs is empty, shows 'No Blog' instead.\n","project":"zustand"}
+{"id":"task-8","date":"2025-05-12","level":"moderate","description":"1) Add 'Edit' appealing blue button (.edit-btn) in top&right of Blog.tsx. \n2) When Edit clicked, toggle BlogForm to edit the content of selected Blog. The Title of BlogForm is 'Edit Blog' in this case. When submitted, update selected Blog. \n3) Use Zustand to manage edit logic.\n","project":"zustand"}
+{"id":"task-9","date":"2025-05-12","level":"moderate","description":"1) Here is Search API:\nGET /api/search_blogs?keywords=XXX\n\n interface Response {\n // blogs is the search result\n blogs: { title: string; detail:string; }[];\n }\n\n\n{\n blogs: [\n { title: 'XXX', detail: 'XXX' },\n ],\n }\n\n2) Add a Search.tsx(width: 200px, border-box) component above BlogList.tsx in Main.tsx. \n3) Include an input field with the placeholder 'Search Blogs'. The keywords in the input field are used to FILTER blogs by using new Search API.\n4) Use Zustand to request Search API and manage filtered blogs. Notice: Do not change the blogs in store.\n5) Hint: When input field is typed fast, make sure the latest search result is displayed.\nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n","project":"zustand"}
+{"id":"task-10","date":"2025-05-12","level":"moderate","description":"1) Add stores/route.ts to control the Route Logic\nThe definition of state is:\n```\ninterface RouteState {\n currentRoute: string;\n}\n```\nThe initial state of route will be the pathname of the current page.\n2) In stores/route.ts, listens to browser history change, and updates the currentRoute in the store.\n3) When path is '/', shows Main.tsx, when path is '/login', shows pages/Login.tsx. Header is visible for every page.\n4) Render User Login
in components/Login.tsx. Add Button with text '🔑' in the right of Header.tsx, when clicked, go to '/login'.\nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n","project":"zustand"}
+{"id":"task-11","date":"2025-05-12","level":"challenging","description":"1) Add a button with the text '🔀' in Header to append 100,000 blogs to BlogList at one time. Each blog should have a title formatted in regex 'RandomBlog-[\\\\d]{12}', digits in title is random. \n2) Ensure the page will not be stuck when 100000 blogs are appended. \nConstraint: DO NOT USE any third-party packages, ONLY React/Zustand APIs can be used to optimize performance.\n","project":"zustand"}
+{"id":"task-12","date":"2025-05-12","level":"challenging","description":"1) Enable Markdown text input for blog details. Preview the Markdown in Blog.tsx. \n2) Develop a utility to reuse Markdown-related logic. \n3) Prevent XSS attacks. \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n","project":"zustand"}
+{"id":"task-13","date":"2025-05-12","level":"challenging","description":"Implement user login, logout, and display blog poster's username.\n\n 1) Login API:\nPOST /api/login\nRequest: { username: string, password: string }\nResponse: { success: boolean }\n2) On the /login page, add a LoginForm with labels(label[htmlFor=\"username\"], label[htmlFor=\"password\"]), and a .login-submit-btn to submit the form via the Login API.\n3) Display the user's username in Header.tsx with the class '.username'.\n4) Show the blog author's username with the class '.blog-author'. If blog has no author, display 'Anonymous'.\n5) Add a '👋' Logout button (class '.logout-btn') next to the username in Header.tsx. Clicking it logs the user out.\n6) Use Zustand to manage user states.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n","project":"zustand"}
+{"id":"task-14","date":"2025-05-12","level":"challenging","description":"Implement blog comment feature:\n1) Display commenter's username with class '.comment-author' and text with '.comment-text'.\n2) Add a CommentForm with a '.comment-input' textarea and a '.comment-submit-btn' below each blog.\n3) Use Zustand to manage comments.\n4) Add undo functionality via Ctrl+Z (Windows/Linux) or Command+Z (Mac) to remove the last comment.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n","project":"zustand"}
+{"id":"task-15","date":"2025-05-12","level":"challenging","description":"Write a Gomoku chess game in route: '/game'\n1) Add a button with the text '🎮' in Header, when clicked, jump to new page '/game'\n2) chess board is 15*15, there is black chess and white chess, black chess first \n3) Add the className for important element: white chess(.chess-white), black chess(.chess-black), position chess can be clicked to drop follow regex: .chess-pos-\\\\d{1,2}-d\\\\{1,2}. \n4) show 'White's Turn' and 'Black'Turn' to shw current player \n5) show 'White Wins!' and 'Black Wins!'.\n6) Use Zustand to manage the game logic. Beautify this game \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted.\n","project":"zustand"}
+{"id":"task-16","date":"2025-05-12","level":"challenging","description":"Enhance the Gomoku game with multi-step undo functionality.\n1) Implement keyboard shortcut (Ctrl+Z on Windows/Linux or Command+Z on Mac) to trigger the undo action.\n2) Allow multiple consecutive undos to revert the game state to any previous point.\n3) Add a move history display with className '.move-history' showing all moves in the format \"White: (x,y)\" or \"Black: (x,y)\".\n4) Each history item should have className '.history-item'.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic;\n","project":"zustand"}
+{"id":"task-17","date":"2025-05-12","level":"challenging","description":"Implement a recording and replay system for Gomoku games.\n1) Every games will be auto recorded, and can be replayed by play button (.replay-play-btn) after the game is finished. \n2) Add play/pause button (className '.replay-play-btn', '.replay-pause-btn') and a slider (className '.replay-slider') to navigate through game moves.\n3) When replaying, show the current move number with className '.current-move'. \n4) There is an interval of 1000 ms between each move.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic;\n","project":"zustand"}
+{"id":"task-18","date":"2025-05-12","level":"challenging","description":"Create functionality to share Gomoku games as blog posts.\n1) Shows the \"Share to Blog\" button with className '.share-to-blog-btn' in the Gomoku game after the game is finished.\n2) When clicked, open a modal form (className '.share-modal') with title input (className '.title-input'), description input (className '.description-input'), submit button (className '.share-submit').\nGo to home page ('/') after submitted.\n3) In Blog Detail, detect if a blog contains a Gomoku game recording and display a \"Replay Game\" button (className '.blog-replay-btn').\n4) When the replay button is clicked, show a modal (className '.blog-replay-modal') with the full game replay interface.\n5) The replay interface should include the start play button (className '.blog-replay-start-play'), showing the current move number with className '.current-move'. There is an interval of 1000 ms between each move. \nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic.\n","project":"zustand"}
+{"id":"task-19","date":"2025-05-12","level":"challenging","description":"Add new page '/rooms':\n1) Add a button with the text '🚪' in Header, when clicked, jump to new page '/rooms'\n2) Add a \"Create Room\" button with className '.create-room-btn' that opens a room creation form.\n3) The room creation form should include a labeled input field for room name (\"Room Name\") and a \"Create\" button to submit the form and create a new game room with a unique ID. Don't enter the room instantly.\n4) Each room should be displayed as a card with className '.room-card' showing room name, creator's username, and current status.\n5) Sync room status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the state and sync logic.\n","project":"zustand"}
+{"id":"task-20","date":"2025-05-12","level":"challenging","description":"Implement a multi-user chat system based on rooms\n1) When a user clicks on a chat room card (with className '.room-card'), navigate to '/chat/:roomId' route.\n2) The chat room page ('/chat/:roomId') contains a message list (className '.message-list'), status display (in '.room-status'), and participant information (display all participants' usernames in '.participant-list').\n3) Implement message sending and receiving functionality, including a message input box (className '.message-input') and a send button (className '.send-button').\n4) Each message (className .message) should contains the sender's information (className '.message-sender').\n5) If the user enters the chat room, add this user to .participant-list.\n6) User will send heartbeat to check if user is in chat room, if the user is not active for 2000ms, the user will be removed from .participant-list.\n7) Sync chat room status, messages, and user connection status between all open tabs/windows.\nConstraint: DO NOT use any third-party packages; ONLY React/Zustand APIs are permitted; Use Zustand to manage the logic.\n","project":"zustand"}
\ No newline at end of file