{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  name = "effigenix-frontend";

  buildInputs = with pkgs; [
    nodejs_22
    nodePackages.pnpm

    # Optional: useful CLI tools during development
    jq   # JSON processing for manual API testing
    curl # Manual HTTP requests
  ];

  shellHook = ''
    echo "Node  $(node --version)"
    echo "npm   $(npm --version)"
    echo "pnpm  $(pnpm --version)"
    echo ""
    echo "Run 'pnpm install' to install dependencies."
    echo "Run 'pnpm run build' to build all packages."
    echo "Run 'pnpm run dev' to start the TUI in watch mode."
  '';
}
