Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Screening tool adjustments #776

Merged
merged 8 commits into from
Feb 11, 2025
Merged

Conversation

JeangelLF
Copy link
Contributor

@JeangelLF JeangelLF commented Feb 10, 2025

Ticket

Resolves (partially) https://github.com/corona-school/project-user/issues/1425

What was done?

  • Added a new tab for drafts
  • Each course state is in a separate tab
  • Show the first lecture date/instructor in the course card (only for screeners)
  • Increased the course limits from 10 to 50
  • Remove SuS / HuH-Empfehlung prefix when showing suggestions
  • Add a save button to only save the pupil screening comment

@Jonasdoubleyou Jonasdoubleyou temporarily deployed to user-app-feat-screening-inmhur February 10, 2025 16:25 Inactive
@JeangelLF JeangelLF marked this pull request as ready for review February 11, 2025 12:24
@JeangelLF JeangelLF temporarily deployed to user-app-feat-screening-inmhur February 11, 2025 12:24 Inactive
Jonasdoubleyou
Jonasdoubleyou previously approved these changes Feb 11, 2025
}
}
`);

const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be easier to query all courses at once, then .filter on the state for the tabs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the tricky part would be the pagination for the different states? Like, I can fetch 100 courses but if most of them are rejected it wouldn't be useful for the other tabs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, or turn courseState into a state and refetch when switching tabs?

Alternatively you could also do multiple courseSearch in the same query (with a GraphQL alias)

src/widgets/AppointmentCard.tsx Show resolved Hide resolved
@JeangelLF JeangelLF temporarily deployed to user-app-feat-screening-inmhur February 11, 2025 14:27 Inactive
@JeangelLF JeangelLF merged commit e6979dc into main Feb 11, 2025
2 of 3 checks passed
@JeangelLF JeangelLF deleted the feat/screening-tool-adjustments branch February 11, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants