This repository contains a set of improvements to our basic sample application, presented as a series of Pull Requests with the patches being reviewed by our Code Review AI.
-
FEAT-1: Add weather app backend functionality to sample app
This Pull Request adds the basic backend functionality that enables the weather app functionality we're adding to the sample app. The files reviewed by the Code Review AI include the
index.js
file, as well as several dependent files used to implement the weather app functionality.This includes an example of a file being re-reviewed by the Code Review AI after changes have been made to address the feedback from its initial review.
-
FEAT-2: Add weather app frontend functionality to sample app
This PR begins by adding the corresponding frontend functionality to the sample app, including the template files for rendering the frontend.
After the initial review, there are also changes added to address the feedback from the Code Review AI, including overarching changes proposed in the previous PR.
-
FIX-1: Slight refactor to make the error handling more robust
This PR demonstrates the sort of Code Review AI feedback you can expect for a refactor of an application that improves the error handling logic and makes the application more reliable in the face of unexpected errors.
-
FEAT-3: change direction labels to use 16-point compass rose directions
The feedback provided by the Code Review AI in this Pull Request isn't particularly helpful, but it does demonstrate how the AI can only provide feedback based on the context of the code provided in the Git patch. In this case, the feedback provided by the AI is missing some nuance about how numbers and rounding behave in JavaScript.
-
FIX-3: handle bad responses from remote APIs
There is another example of iterative improvement in this Pull Request, where the Code Review AI provides feedback on a fix to the weather app functionality that handles bad responses from remote APIs.
-
FEAT-4: Make error checking of anonymizeip.js more robust
A pair of small, incremental changes in this Pull Request demonstrate how the Code Review AI feedback changes as iterative improvements are made to the codebase.
-
REFACTOR-1: Improve flow and add explanatory comments
Finally, a small refactoring that makes little change to the application's functionality, but which make the structure of the code more clear and easier to understand.
Also included in this repository are a few other Pull Requests which contain the same application changes as the above PRs, but with different groupings of commits, to demonstrate how the feedback from the Code Review AI changes based on the context of the patch it's reviewing.