Commit Graph

50 Commits

Author SHA1 Message Date
gpt-engineer-app[bot] 14db385a74 Prevent auto-create on agent select
Remove automatic new conversation creation when selecting an agent; now new conversations are only created by clicking the "Nova Conversa" button.
2025-11-11 20:32:31 +00:00
gpt-engineer-app[bot] 218cfafb26 Adjust delete button hover color
Change the delete button in the conversation history to use a lighter gray hover background for better visual feedback.
2025-11-11 20:14:31 +00:00
gpt-engineer-app[bot] 55cb7c0ae6 Add delete button to history items
Adds a Trash2 icon button to each conversation in the test prompt history to delete conversations via handleDeleteConversation, updating TestPrompt.tsx accordingly.
2025-11-11 20:13:32 +00:00
gpt-engineer-app[bot] 70fb1e9d40 Refactor test agent view
Simplify Testar Agente UI to:
- Keep agent selection at top with a single New Conversation button
- Show all conversation histories across all agents in a unified list
- Remove per-agent filtering in the history sidebar
- Retain basic chat area while consolidating history view for easier testing
2025-11-11 20:08:18 +00:00
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] 1f2f734fd8 Refactor version history modal
Update version history modal to be wider, replace prompt expansion with an eye icon that opens a new modal for viewing and copying the full prompt, and remove hover blue color from history items.
2025-11-07 19:45:06 +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] d2174eede2 Create agent modal
Implement modal for creating agents with name and AI model fields. Upon creation, the user is redirected to the agent details page. The modal now only includes the necessary fields and navigation logic.
2025-11-07 19:35:20 +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] 6ef80b9726 Remove History from sidebar 2025-10-29 14:55:19 +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] fe55c74fc1 Refactor prompt display and versioning 2025-10-29 14:49:29 +00:00
gpt-engineer-app[bot] f379ce17c9 Refactor prompt history modal 2025-10-29 14:47:34 +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] 24206417da Refactor prompt editing modal 2025-10-29 14:39:05 +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] 0b96ab51fb Refactor prompt creation flow 2025-10-29 13:58:45 +00:00
gpt-engineer-app[bot] b9786d6abc Refactor: Adjust prompt creation modal size 2025-10-29 13:57:03 +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] b42f94ecab Refactor: Update sidebar title 2025-10-29 12:53:48 +00:00
gpt-engineer-app[bot] bdb8443a51 Refactor sidebar component 2025-10-29 12:52:59 +00:00
gpt-engineer-app[bot] 64c53ee1ec feat: Add theme toggle and back button 2025-10-29 12:44:51 +00:00
gpt-engineer-app[bot] 05df311b1f Update styles with Inter font 2025-10-29 12:43:08 +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