diff --git a/AGENTS.md b/AGENTS.md index 345f89f..f1a8e4d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,15 +1,18 @@ -# Agents +# Agentes -Have a read in `project-context.md` file, it will be the main source of truth for the project. Always keep it up to date with the latest project specs and architecture decisions. +Leia o arquivo `project-context.md`, pois ele é a principal fonte de verdade do projeto. -## UI specs -- All UI needs to be have a glassy-look, with a not-so-dark background -- Buttons needs to appear iOS-like and modern -- All text inputs, displays and content should appear with a modern typefont -- All texts needs to be in Brazilian Portuguese +## Manutenção do project-context +- Mantenha o `project-context.md` sempre atualizado com o estado atual do projeto, sem transformá-lo em histórico de mudanças. +- Sempre que houver alteração em arquitetura, endpoints, contratos de API, variáveis de ambiente, UI/UX, fluxos de produto ou decisões técnicas, atualize o `project-context.md` na mesma entrega. -## Testing -Follow strictly the testing requirements: -- It should NOT have any form of integration testing, nor unit testing, or any kind of testing. -- The only type of testing that should be done is building the project - make sure it compiles, and it's enough. -- Don't create random tests or any kind of files that is related to testing. All testing will be done by a human later on. \ No newline at end of file +## Especificações de UI +- Toda a interface precisa ter aparência de vidro, com um fundo não tão escuro. +- Os botões precisam parecer modernos, no estilo iOS. +- Todos os campos de texto, exibições e conteúdos devem ter uma tipografia moderna. +- Todos os textos precisam estar em português brasileiro. + +## Testes +- Não deve haver nenhuma forma de teste de integração, nem teste unitário, nem qualquer outro tipo de teste. +- O único tipo de validação que deve ser feito é compilar o projeto - basta verificar se ele compila. +- Toda a validação será feita por um humano depois. diff --git a/Mindforge.Web/src/components/SpacedReviewComponent.tsx b/Mindforge.Web/src/components/SpacedReviewComponent.tsx index e8e81b1..227c90e 100644 --- a/Mindforge.Web/src/components/SpacedReviewComponent.tsx +++ b/Mindforge.Web/src/components/SpacedReviewComponent.tsx @@ -98,7 +98,7 @@ export function SpacedReviewComponent() { const [dashboard, setDashboard] = useState(null); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); - const [selectedStatuses, setSelectedStatuses] = useState(['Red', 'Amber']); + const [selectedStatuses, setSelectedStatuses] = useState(['Red', 'Amber', 'Green', 'Grey']); const [selectedLibraryIds, setSelectedLibraryIds] = useState([]); const [startingSession, setStartingSession] = useState(false); const [sessionCards, setSessionCards] = useState([]); @@ -129,6 +129,14 @@ export function SpacedReviewComponent() { const kept = current.filter((libraryId) => available.has(libraryId)); return kept.length > 0 ? kept : allLibraryIds; }); + + setSelectedStatuses((current) => { + if (current.length > 0) { + return current; + } + + return ['Red', 'Amber', 'Green', 'Grey']; + }); } catch (err: any) { setError(err?.message || 'Falha ao carregar status de revisao espacada.'); } finally { @@ -214,7 +222,7 @@ export function SpacedReviewComponent() { } if (selectedRagLibraries.length === 0) { - setError('Nenhum arquivo encontrado com os filtros selecionados.'); + setError('Nenhum arquivo encontrado com os filtros atuais. Ajuste os status ou os arquivos selecionados.'); return; } @@ -400,7 +408,7 @@ export function SpacedReviewComponent() {