Changed the grid column configuration from 3 to 2 in the election page view. This will help in better alignment and spacing of the elements within the grid.
The association election admin and user views now perform an additional check to ensure the relay service is responding correctly. This should prevent unexpected crashes when the service is unavailable or returning errors.
Update error checking in both admin and user election views. Now correctly checks the type of the response object rather than directly comparing with a string. This should provide more accurate error feedback.
This commit includes the following changes:
- Added error handling in the election views to check if the relay server responds with an error message
- Included custom error pages for different HTTP status codes (401, 402, 403, 404, 419, 429, 500, 503)
- Created a new layout for the error pages
This commit replaces hardcoded relay server URL with a configuration variable in services.php. The relay URL is now fetched from the environment variable NOSTR_RELAY. This change has been made in the files Election:year.blade.php and admin/Election:year.blade.php under association/election directory.