Commit Graph

34 Commits

Author SHA1 Message Date
gpt-engineer-app[bot] c1d2cf6d79 Add conversation history to Test Prompt
Implements persistent/voluminous chat history on the Testar Agente screen:
- Prepare to store and load previous conversations (localStorage) for the selected agent
- Create structure for conversations and messages
- Load existing conversations on mount and save changes
- Add support to create new conversations and load them when selected
2025-11-11 20:04:58 +00:00
gpt-engineer-app[bot] da94a7e4db Set default 6 per page
Update pagination to default to 6 items per page in Agents screen, preserving navigation controls and responsive layout.
2025-11-11 18:30:35 +00:00
gpt-engineer-app[bot] 09c8fcae88 Add more test agents for pagination
Extend Agents list with additional mock agents (20-21+) to exercise and test pagination controls, including page size options and navigation.
2025-11-11 18:29:40 +00:00
gpt-engineer-app[bot] a97a515517 Adicionar paginação em listagem de agentes
Implementa controle de paginação na tela de Agents:
- adiciona estado itemsPerPage com valor default 9
- integra seletor de itens por página
- utiliza componente de paginação existente para Navegação Previous/Next/ellipses
- mantém busca existente funcionando com paginação

Observação: usa componente Select para escolher a quantidade por página e ajusta paginação ao mudar valor.
2025-11-11 18:26:58 +00:00
gpt-engineer-app[bot] 79a65a9601 Reverted to commit 6c23bea1bc 2025-11-11 15:24:37 +00:00
gpt-engineer-app[bot] af8c013fb9 Atualize Nome do Agente para Input Permanente
Remove edit mode e utilize campo de texto editável diretamente; salvar coletivamente com "Salvar Alterações" junto aos demais campos.
2025-11-11 15:17:33 +00:00
gpt-engineer-app[bot] a18f785bb0 Edit agent name: save on Save Alterações
Update inline name editing to local state only; persist on Save Alterações button. Remove instant save behavior and inline confirm/cancel actions; simplify to editable input with local state updates and final save handled by existing SaveVersionDialog.
2025-11-11 15:12:35 +00:00
gpt-engineer-app[bot] 6c23bea1bc Edit agent name in details
Allow editing the agent name on the AgentDetails page:
- show edit button next to the name
- toggle between view and edit modes with input
- save (Enter or check) and cancel (Esc or X) options
- update name in state and notify user on success
2025-11-11 13:46:36 +00:00
gpt-engineer-app[bot] ae7cb74ba0 Add confirmation modal for agent deactivation
Implement a confirmation modal that appears when the "Desativar" button is clicked. This modal asks the user to confirm the action and informs them that the deactivation will be logged. The "Ativar" action remains a direct toggle.
2025-11-07 20:06:44 +00:00
gpt-engineer-app[bot] b642c5be8b Add clear chat button
Add a button to clear the chat conversation on the Test Agent screen. This button will also trigger a toast notification to confirm the action.
2025-11-07 20:00:01 +00:00
gpt-engineer-app[bot] 7b01dd2e55 Clear chat on agent change
Clear the conversation history when the selected agent changes in the "Testar Agente" screen.
2025-11-07 19:55:54 +00:00
gpt-engineer-app[bot] f1362dbf01 Rename TestPrompt to TestAgent
Update the TestPrompt page to TestAgent. It now features a select dropdown for choosing an agent and a chat interface. The previous prompt and model selection components have been removed.
2025-11-07 19:54:25 +00:00
gpt-engineer-app[bot] 5a9ca2bbf9 Add pagination to agents screen
Implement pagination controls on the agents screen to manage a large number of agents. This includes state management for current page and items per page, logic to slice and display agents, and UI elements for navigation (previous, next, page numbers, ellipsis). The search functionality now resets to the first page.
2025-11-07 19:52:34 +00:00
gpt-engineer-app[bot] f87685e014 Add version save modal to agent details
Implement a modal for saving agent versions on the agent details screen. The modal allows users to input version notes, select the version type (major, minor, or patch) with explanations for each, and includes cancel and save buttons. The save button is disabled until notes are entered.
2025-11-07 19:48:45 +00:00
gpt-engineer-app[bot] 24f114d01c Refatore o modal de histórico de versões
Atualiza o modal de histórico de versões para exibir o modelo de IA e melhorar a visualização do prompt. Adiciona a funcionalidade de expandir/recolher para o prompt de cada versão.
2025-11-07 19:40:37 +00:00
gpt-engineer-app[bot] d57335e499 Add agent status badge and style button
Add a status badge next to the agent name to indicate if the agent is active or inactive. Active agents will display a green badge with a filled circle, while inactive agents will show a gray badge with an outlined circle. The "Activate" button is now styled with a green background, and the "Deactivate" button retains its red styling.
2025-11-07 19:30:47 +00:00
gpt-engineer-app[bot] 876e8d0338 Reorganize agent details layout
Reorganize the agent details page to place the agent title on the left and action buttons (Version History, Activate/Deactivate, Save Changes) on the right. The AI model and system prompt fields now have flexible width to occupy the full screen width. Added functionality to toggle agent status.
2025-11-07 19:24:38 +00:00
gpt-engineer-app[bot] 25da60f7b2 Refactor agent details page
Move AI model select above system prompt and add version history modal.
2025-11-07 19:20:49 +00:00
gpt-engineer-app[bot] f8966d0ae8 Refactor agent cards on home screen
Update agent cards to display title, AI model, status, and agent version. Remove the options button and replace it with a chevron icon to navigate to the agent details screen.
2025-11-07 19:17:03 +00:00
gpt-engineer-app[bot] 64b4c39c92 Refactor agent and prompt management
Restructures the application to integrate prompt management directly into the agent details view. Removes the separate "Prompts" page and its associated components. Agents are now the root route, and clicking an agent navigates to a detail page where its system prompt, AI model, and version history can be managed.
2025-11-07 19:14:00 +00:00
gpt-engineer-app[bot] 954b09f836 Refactor Agents and Prompts routes 2025-10-30 12:48:10 +00:00
gpt-engineer-app[bot] d3c2e31d15 Refactor: Make system responsive 2025-10-29 15:02:56 +00:00
gpt-engineer-app[bot] b9d7db533c Add Agents screen to sidebar 2025-10-29 14:57:43 +00:00
gpt-engineer-app[bot] 753724182d feat: Add AI model selection to test prompt screen 2025-10-29 14:53:12 +00:00
gpt-engineer-app[bot] 2b694a9520 Refactor prompt actions and status display 2025-10-29 14:51:46 +00:00
gpt-engineer-app[bot] 42a8e0064f feat: Add prompt history modal 2025-10-29 14:45:29 +00:00
gpt-engineer-app[bot] 0b01478582 Refactor prompts page to use table 2025-10-29 14:43:54 +00:00
gpt-engineer-app[bot] 7a73be703f feat: Implement prompt versioning and editing 2025-10-29 14:14:58 +00:00
gpt-engineer-app[bot] 2a74f0b498 Remove Agents screen 2025-10-29 14:04:48 +00:00
gpt-engineer-app[bot] a7defc1944 feat: Add search and pagination to Prompts page 2025-10-29 14:01:08 +00:00
gpt-engineer-app[bot] 11a51c6100 feat: Add prompt creation modal with AI assistant 2025-10-29 13:53:02 +00:00
gpt-engineer-app[bot] 2df00b1124 Refactor: Transform prompt test page into chat interface 2025-10-29 13:44:55 +00:00
gpt-engineer-app[bot] 6efb71b59b Create HGTX PromptLab UI 2025-10-29 12:06:30 +00:00
gpt-engineer-app[bot] d712cc7bb5 [skip lovable] Use tech stack vite_react_shadcn_ts_20250728_minor 2025-10-29 12:03:58 +00:00