Special topics rows on the Courses page have misaligned columns

Aberta Para iniciantes
#481 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 7 dias

@zapataa0 já está trabalhando nisso.

Desde 25/11/2026.

  • #482 de @zapataa0 — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
82/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
flask, html, python
Domínio
frontend

Direção de pesquisa

Abra app/templates/snips/courseElements/adminCourseTable.html e compare o <td> de Course Materials da linha de curso regular, perto da linha 142, com as linhas de special topics por volta das linhas 304-312, que pulam de faculty_credit diretamente para LAST EDITED BY. Adicione ali a célula Resources que está faltando, espelhando o texto de fallback da linha regular quando nada estiver definido, e verifique se a ordem das células do cabeçalho corresponde. Depois, execute o CAS localmente, acesse Courses -> Spring 2022 -> African and African American Studies e confirme que uma linha de special topics ainda não aprovada se alinha com o cabeçalho.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Problem

On the Courses page (/courses/<term>/<program>), special topics rows have their columns shifted one to the left starting at the Resources column. Regular course rows look fine.

For example, on Spring 2022 / AFR, the row for "AFR 286 African Presence in Latin America" (status: Submitted) shows:

  • steeles (the last editor) under Resources instead of Last Edited
  • the edit/delete icons under Last Edited instead of the last column

This only happens for special topics that are not approved yet (e.g. Submitted). Approved special topics display correctly, because once approved they're stored in the Course table and use the regular row template (see the comment in app/controllers/main_routes/course.py: "We exclude the approved courses, because they'll be stored in the 'Course' table already"). So the bug is only in the special topics row template.

cas-special-topics-bug

Cause

In app/templates/snips/courseElements/adminCourseTable.html, regular course rows have a Course Materials <td> between Faculty Load and Last Edited (around line 142), but the special topics rows skip it and go straight from faculty_credit to LAST EDITED BY (around lines 304-312). So each special topics row has one fewer cell than the header.

Possible fix

Add a Resources <td> to the special topics rows between Faculty Load and Last Edited. If special topics don't have course materials stored, it could just show "Unspecified" like the regular rows do when nothing is set.

To reproduce

  1. Run CAS locally (dev container)
  2. Go to Courses -> Spring 2022 -> African and African American Studies
  3. Scroll to a special topics row that is not Approved yet (e.g. one with a "Submitted" badge) and compare its columns to the header
Linguagem predominante
JavaScript
Estrelas
0
Forks
3
Merge médio
8d 5h
PRs com merge (30d)
6

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de BCStudentSoftwareDevTeam/cas

Todas as issues de BCStudentSoftwareDevTeam/cas

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.