diff --git a/backend/.env.example b/backend/.env.example new file mode 100644 index 0000000..b141f55 --- /dev/null +++ b/backend/.env.example @@ -0,0 +1,34 @@ +# Formwise - Environment Configuration Example + +# *** MongoDB Configuration *** +# Provide a valid MongoDB connection string +# For local development, you can use: mongodb://localhost:27017 +# For Atlas or other cloud providers, use their provided connection string +MONGO_URI=mongodb+srv://:@cluster.mongodb.net/?retryWrites=true&w=majority + +# *** Application Security *** +# Use a strong, randomly generated secret for JWT +# Recommendation: Use a tool like `openssl rand -hex 32` to generate +JWT_SECRET=your_very_long_and_complex_random_secret_key_here + +# *** Google OAuth Configuration *** +# Obtain these from the Google Cloud Console +# https://console.cloud.google.com/apis/credentials +GOOGLE_CLIENT_ID=your_google_oauth_client_id.apps.googleusercontent.com +GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret + +# *** Groq API Configuration *** +# Obtain an API key from https://console.groq.com/keys +GROQ_API_KEY=your_groq_api_key + +# *** LangChain Tracing (Optional) *** +# Sign up at https://smith.langchain.com +LANGCHAIN_API_KEY=your_langchain_api_key +LANGCHAIN_ENDPOINT=https://api.smith.langchain.com +LANGCHAIN_PROJECT=formwise +LANGCHAIN_TRACING_V2=true + +# *** Observability (Optional) *** +# Logfire token for additional monitoring +# Remove or leave blank if not using +LOGFIRE_TOKEN= diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 90e6f72..5ea94cb 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "formwise" version = "0.1.0" -description = "Add your description here" +description = "A FastAPI backend for Formwise, enabling AI-powered form creation with Groq LLM." readme = "README.md" requires-python = ">=3.12" dependencies = [ diff --git a/frontend/.env.local.example b/frontend/.env.local.example new file mode 100644 index 0000000..fbfcd29 --- /dev/null +++ b/frontend/.env.local.example @@ -0,0 +1,2 @@ +# API URL +NEXT_PUBLIC_API_URL="http://localhost:8000/api" \ No newline at end of file diff --git a/frontend/components/form/form-responses.tsx b/frontend/components/form/form-responses.tsx index 4756dd7..255955c 100644 --- a/frontend/components/form/form-responses.tsx +++ b/frontend/components/form/form-responses.tsx @@ -24,8 +24,6 @@ import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { FORM_URLS } from "@/config/api-urls"; import { tokenService } from "@/lib/services/token"; import { formatDate, formatDateTime } from "@/lib/utils"; -import { SelectTrigger, SelectValue } from "@radix-ui/react-select"; -import { Select, SelectContent, SelectItem } from "../ui/select"; // Define response type based on your API structure interface FormResponse { @@ -44,7 +42,7 @@ export default function FormResponses({ form }: FormResponsesProps) { const [error, setError] = useState(null); const [pagination, setPagination] = useState({ pageIndex: 0, - pageSize: 10, + pageSize: 10, // Fixed page size }); // Fetch form responses @@ -218,34 +216,7 @@ export default function FormResponses({ form }: FormResponsesProps) { -
- {/* Rows per page selector */} -
- - Rows per page - - -
- +
{/* Pagination controls */}