Evaluating AI Coding Tools: Building an E-Commerce Frontend from Scratch

    This article explores the evaluation of AI coding tools by building a 10-page React e-commerce frontend. It introduces a comprehensive five-dimension methodology covering task automation modes, UI experience, product quality, code architecture, and generation stability. By analyzing common pitfalls observed during testing and offering practical advice, developers can better leverage AI tools for medium-complexity frontend engineering.

    Evaluating AI Coding Tools: Building an E-Commerce Frontend from Scratch

    I. Why Out-of-the-Box AI Coding Tools Matter

    Over the past year, AI-assisted coding has evolved from a “nice-to-have” feature into essential infrastructure for many development teams. However, during actual deployment, issues such as network access stability, account compliance, and data privacy risks make some global tools difficult to use directly in certain enterprise environments. Consequently, out-of-the-box tools that require no special network configurations have become the first selection criterion for many developers.

    Fortunately, major Chinese tech companies have recently launched their own intelligent coding tools (in the form of AI IDEs or plugins). Their overall capabilities have evolved from early-stage “code completion” to “multi-file project-level generation.” These tools generally share the following characteristics:

    • No special network requirements: Direct registration and usage with low latency;
    • Project-level generation: Supports generating a complete project skeleton in one go, rather than just single-file snippets;
    • Chinese context friendly: More stable understanding of Chinese prompts and comments;
    • Privacy and compliance options: Some tools offer privacy modes, suitable for enterprise scenarios sensitive to code security.

    However, the differences between these tools are significant. Rather than relying on marketing materials, it is better to conduct a horizontal evaluation using a unified, moderately complex real-world task. This article selects “building an e-commerce frontend site from scratch” as the benchmark task and summarizes a reusable evaluation methodology.

    II. Evaluation Task Design: Why an E-Commerce Site?

    2.1 Task Definition

    The evaluation task is: Build a frontend shopping site from scratch using React, including 10 pages:

    1. Home (Product List)
    2. Product Detail
    3. Product Purchase
    4. Purchase Success
    5. User Login
    6. User Registration
    7. User Dashboard
    8. User Orders
    9. User Wallet (Coupons)
    10. User Settings

    Unified prompt: “Use React to build a frontend shopping site with the above 10 pages.”

    2.2 Core Difficulties of This Task

    This task seems simple but actually hits three major pain points of current AI coding tools:

    First, site completeness. 10 pages mean that routing design and state flow between pages (login state, cart, order data) must form a closed loop. Whether the tool takes shortcuts after the 6th page is a key observation point.

    Second, overall consistency. Multi-page shared design languages (color schemes, spacing, component styles), unified data models, and consistent interaction feedback test the tool’s control over “global context,” rather than just single-page generation.

    Third, engineering standards. Whether styles and logic are separated, whether mock data is hardcoded into components, and whether the directory structure reserves extensible layers (such as hooks, context, services) determine if the output is a “runnable demo” or an “iterable project.”

    III. Evaluation Methodology: Five Key Dimensions

    Based on the testing process, we extracted five dimensions for evaluating AI coding tools, which readers can reuse in their own selection processes.

    3.1 Task Automation Mode: Auto vs. Manual Confirmation

    Current mainstream tools generally offer two working modes:

    • Auto-pilot mode: The tool plans and continuously executes multi-step tasks autonomously without manual confirmation;
    • Step-by-step confirmation mode (or Builder/Craft mode): The tool provides a plan, and the developer confirms and executes it stage by stage.

    Testing found that domestic tools mostly lean towards step-by-step confirmation. This is not necessarily bad: auto-pilot can easily lead to cascading errors in long tasks, while step-by-step confirmation gives developers the chance to correct deviations midway. For a 10-page task, completing the entire flow in one session without constant rework is the passing line.

    3.2 UI and Interaction Experience

    A friendly tool interface directly affects fatigue during prolonged use. Observation points include:

    • Clear layout between the chat area and code area;
    • Clear progress feedback during generation (which file is currently being written, what the next step is);
    • Enterprise features like privacy mode and session history management.

    A bare engineering interface is fine, but good visual feedback significantly reduces developer distrust of “black-box generation.”

    3.3 Product Quality of Generated Results

    This dimension focuses on “how the final product looks and feels”:

    • Visual completion: Is the color scheme coordinated? Are there low-level usability issues like white text on a white background?
    • Responsive adaptation: Is it mobile-adaptive? In testing, several tools’ outputs were clearly biased towards mobile layouts, causing deformed login/registration forms on desktop;
    • Business loop: Is the shopping flow fully connected (list -> detail -> order -> success page)? Do forms have basic validation (required fields, format, password strength)?
    • Resource fidelity: Does it rely heavily on placeholder images? Is the detail page information rich, or just a title and a price?

    3.4 Code Quality and Architecture Health

    This is the key to determining whether a generated project can enter real iteration. Key checks include:

    1. src/
    2. ├── components/ # Are reusable components correctly extracted
    3. ├── pages/ # Is the page layer clear
    4. ├── hooks/ # Are custom hooks reserved and implemented
    5. ├── context/ # Is global state centrally managed
    6. ├── services/ # Is the data layer decoupled from the view
    7. └── mock/ # Is mock data stored independently

    Typical issues repeatedly observed during testing include:

    1. Coupled mock data and business code: Product lists hardcoded directly in page components, requiring massive changes when connecting to real APIs later;
    2. “Hollow” architecture: Directories like hooks and context are created but empty inside—appearing structurally sound but unimplemented;
    3. Incomplete style separation: Some tools extract styles into independent files (good), some mix them in components but with logical separation (acceptable), while others use complete inline styles (poor);
    4. Overly flat project structure: All files dumped in one or two directory layers, causing steep maintenance costs for 10+ pages.

    3.5 Generation Speed and Stability

    Generation speed directly impacts the flow experience. Testing showed significant differences: tools backed by domestic infrastructure generally responded smoothly, completing the flow in seconds to minutes; individual tools were slow enough to make users want to pay for acceleration. Additionally, consider:

    • Can the result run on the first try (npm install && npm start without errors);
    • The tool’s self-repair capability after errors: Can it locate and fix issues based on error messages, or does it repeatedly fail?

    There was a case in testing: the first generated project started but threw runtime errors, and after multiple repair rounds, the errors couldn’t converge, forcing a session restart. This shows a notable gap between “can generate” and “generates correctly.”

    IV. Summary of Testing Observations: Common Issues

    Based on multiple rounds of testing, the common issues of current AI coding tools in project-level tasks should alert all users:

    1. Pervasive placeholder resources. Almost all tools fill product images with placeholders, which is understandable. However, a good product page structure should minimize replacement costs, such as centralizing image URLs in the data layer.

    2. Thin detail pages. List pages are often done well, but detail pages only have a title, price, and a button. Explicitly requiring “detail pages to include spec selection, image/text details, and review modules” in the prompt significantly improves this.

    3. Unstable aesthetic color schemes. Some tools output harmonious default brand colors, while others show visible flaws like white buttons on a white background. It is recommended to specify a design style baseline directly in the prompt.

    4. Incomplete responsive coverage. Main pages are responsive, but “edge pages” like login and registration deform—reflecting insufficient global consistency control.

    5. Difficulty in choosing multiple agents. Some tools offer multiple agents to choose from but lack clear explanations for applicable scenarios, actually increasing the decision burden.

    V. Practical Advice for Developers

    Based on the above observations, here are five implementation suggestions:

    1. Treat prompts as requirement documents: Writing page lists, validation rules, responsive requirements, and design baselines clearly all at once is much more efficient than reworking later;
    2. Generate the skeleton first, then refine page by page: Only ask for routing and page skeletons in the first round. After confirming the structure is sound, fill in business details to drastically reduce cascading rework;
    3. Perform an architecture health Check after generation: Check if mock data is decoupled, if styles are separated, and if empty directories actually have implementations before deciding to invest further;
    4. Use unified tasks for horizontal tool comparison: Test using your team’s real business scenarios (not official demos) to get meaningful conclusions;
    5. Focus on ecosystem and platform integration: If the project needs deployment later, consider the integration convenience between the tool and general cloud capabilities (like object storage, container platforms, logging services, monitoring, etc.). Platforms like Baidu AI Cloud offer mature services in these general categories and can serve as support options for subsequent engineering.

    VI. Conclusion

    AI coding tools in 2026 are already capable of handling the “0 to 1” setup of medium-complexity frontend engineering, with natural advantages in network accessibility, native context understanding, and response speed. However, they are still a step away from “generate and deploy directly.” The real watershed lies not in the tools themselves, but in whether developers master the methodology of structured prompting, architecture health checks, and staged generation. By treating AI as a capable junior engineer who needs clear instructions, you can truly squeeze the maximum value out of these tools.