diff --git a/.github/workflows/ci-auto-readme-generator.yml b/.github/workflows/ci-auto-readme-generator.yml new file mode 100644 index 0000000..8afb738 --- /dev/null +++ b/.github/workflows/ci-auto-readme-generator.yml @@ -0,0 +1,24 @@ +name: CI - auto-readme-generator + +on: + push: + paths: + - "services/python-tools/tools/auto-readme-generator/**" + pull_request: + paths: + - "services/python-tools/tools/auto-readme-generator/**" + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Install deps + run: pip install -r services/python-tools/tools/auto-readme-generator/requirements.txt -r services/python-tools/tools/auto-readme-generator/requirements-dev.txt + - name: Run tests + run: | + cd services/python-tools/tools/auto-readme-generator + pytest tests/ -v diff --git a/app/src/app/tools/[toolId]/page.tsx b/app/src/app/tools/[toolId]/page.tsx index 154a99e..e914dcb 100644 --- a/app/src/app/tools/[toolId]/page.tsx +++ b/app/src/app/tools/[toolId]/page.tsx @@ -2,8 +2,9 @@ import { Button, Label, Textarea } from "@ansospace/ui"; import { ArrowUpRight, Crown, Lock, Play, X } from "lucide-react"; +import Image from "next/image"; import { notFound, useParams } from "next/navigation"; -import { useCallback, useEffect, useState } from "react"; +import { useCallback, useEffect, useRef, useState } from "react"; import { CodeEditor } from "@/components/code-editor"; import { ResultViewer } from "@/components/result-viewer"; import { ToolLayout } from "@/components/tool-layout"; @@ -135,6 +136,7 @@ function ToolPageContent({ toolId }: { toolId: string }) {

Upgrade your plan for more daily executions.{" "} + + {value && !isLoading && ( + + )} + + {/* Only show the paste textarea when the user is typing, not when a file was loaded */} + {source === "manual" && ( +

+

Or paste / type text directly:

+