Skip to content

Comments

Fix Veranstaltung dropdown appearing empty on form load#424

Draft
Copilot wants to merge 4 commits intodevelopmentfrom
copilot/fix-event-selection-issue
Draft

Fix Veranstaltung dropdown appearing empty on form load#424
Copilot wants to merge 4 commits intodevelopmentfrom
copilot/fix-event-selection-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

The Veranstaltung dropdown in the Ausschreibung creation form showed no options. useAsyncState was fetching data but the component didn't track or surface loading, error, or empty states.

Changes

  • Track async state: Destructure isReady and error from useAsyncState
  • Dynamic placeholder: Show "Lade Veranstaltungen..." while fetching, "Veranstaltung auswählen" when ready
  • Error handling: Display user-friendly message on API failure, log technical details to console
  • Empty state: Show guidance message when no veranstaltungen exist
  • Semantic fix: Changed placeholder from "Veranstaltungsort" (location) to "Veranstaltung auswählen" (select event)

Before:

const { state: veranstaltungen } = useAsyncState(...)

After:

const { state: veranstaltungen, isReady: veranstaltungenReady, error: errorVeranstaltungen } = useAsyncState(...)

watch(errorVeranstaltungen, (error) => {
  if (error) console.error('Error loading veranstaltungen:', error)
})

Template now conditionally renders error/empty state messages based on isReady and error flags.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/brahmsee.digital/brahmsee.digital/node_modules/.pnpm/prisma@5.22.0/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-02-12T21:25:10Z","project_hash":"b6c57c18","cli_path":"/home/REDACTED/work/brahmsee.digital/brahmsee.digital/apps/api/node_modules/prisma/build/index. (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Veranstaltung nicht auswählbar, DRINGEND</issue_title>
<issue_description>### Kurzbeschreibung

No response

Beschreibung

Wenn ich als Gliederungsadmin eine Veranstaltung ertellen möchte (mehr kann ich ja erst mal auch nicht tun), so ist im Pflichtfeld Veranstaltung nichts auswählbar.

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 12, 2026 21:25
Co-authored-by: danielswiatek <9080990+danielswiatek@users.noreply.github.com>
Co-authored-by: danielswiatek <9080990+danielswiatek@users.noreply.github.com>
… text

Co-authored-by: danielswiatek <9080990+danielswiatek@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix event selection not available for administrators Fix Veranstaltung dropdown appearing empty on form load Feb 12, 2026
Copilot AI requested a review from danielswiatek February 12, 2026 21:31
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.

Veranstaltung nicht auswählbar, DRINGEND

2 participants