OpenZeppelin/contracts-wizard

Highlight differences when changing features

ericglau opened this issue · 0 comments

When adding or removing a selected feature, it may not be obvious what parts of the resulting code has changed. This is especially the case for Cairo because there is a lot of code that requires scrolling to view.

Enhance the UI so that differences are visibly highlighted when changing a feature.

For example, if the user starts with:
Screen Shot 2023-01-12 at 4 56 55 PM
then enables Mintable like the below:
Screen Shot 2023-01-12 at 4 57 48 PM
, this should cause the following sections to be highlighted:

import "@openzeppelin/contracts/access/Ownable.sol";

and

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }