Commit Graph

18 Commits

Author SHA1 Message Date
fsociety
5b0f55ba95 🚫 fix(permissions): update unauthorized access alerts for member and election management pages 2024-10-07 14:26:49 +02:00
fsociety
1d5079bfa0 feat: handle logout events in nostr-login
This commit introduces handling for logout events in nostr-login across various pages. When a user logs out, the current public key and other related information are reset to null. The nostrLogin.js file has also been updated to dispatch a 'nostrLoggedOut' event when this occurs. Additionally, the nostr-login package has been added to the project dependencies.
2024-10-06 13:38:49 +02:00
fsociety
e937176d52 feat: update event ID in election blade files
The event ID for loading Nostr events in the election blade files for both admin and general user views have been updated to 32122.
2024-10-02 12:43:49 +02:00
fsociety
c21a46a870 feat: add boardVotes and showLog functionalities
This commit includes the addition of a 'boardVotes' functionality in the electionAdminCharts.js file, and a 'showLog' functionality in the nostrApp.js file. This update provides enhanced interactivity and data handling for the charts and logs respectively.
2024-10-02 12:40:42 +02:00
fsociety
ccf4b7abeb feat: add multiple allowed public keys for admin access
This commit introduces a change in the authorization mechanism for the admin sections of the association members and election pages. Instead of checking for a single allowed public key, the system now checks for an array of allowed public keys, enhancing the flexibility of the admin access control.
2024-10-01 20:55:07 +02:00
fsociety
4568d9e402 feat: add voting feature toggle
This commit introduces a new feature toggle 'voting' to enable/disable voting. It also includes minor formatting adjustments in election admin blade files.
2024-09-30 20:27:18 +02:00
fsociety
f91313b6f5 feat: add Nostr profile fetcher and update election admin view
- Added a new console command `nostr:profile` which fetches a Nostr profile given a public key.
- Updated the election admin view to fetch the profile if it doesn't exist in the database.
- Introduced a new state variable `isAllowed` to handle authorization in the election admin view.
- Redirect users with no admin access to the association profile page.
2024-09-30 18:47:42 +02:00
fsociety
5988408bcc feat: increase grid columns in election admin view
Modified the grid layout in the election admin view to have 12 columns instead of 3. This change will allow for greater flexibility in arranging elements on the page.
2024-09-29 22:28:57 +02:00
fsociety
5623671bad feat: update layout and fix bugs in election related pages
This commit includes various updates to improve the layout and user experience on election related pages. It includes changes in grid layout for better responsiveness, updates to text sizing and wrapping for better readability, and fixes bugs related to null values and unique key generation.
2024-09-29 22:27:07 +02:00
fsociety
8b87669eb6 feat: remove error check in response for election pages
Remove the error check in the response of the election pages in the admin and user interface. This was causing unnecessary aborts.
2024-09-29 22:12:57 +02:00
fsociety
cc53372fa5 feat: improve error handling for election event loading 2024-09-29 21:26:36 +02:00
fsociety
58f35bd8d6 feat: add additional error check in association election views
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.
2024-09-29 21:21:34 +02:00
fsociety
bfbcd11407 feat: improve error handling in election views
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.
2024-09-29 21:19:31 +02:00
fsociety
5ad40f8214 feat: update secretary role title in election pages
Update the title of the secretary role from 'Sekretär (Akurat)' to 'Revisionsstelle' in both election administration and election view pages.
2024-09-29 20:46:15 +02:00
fsociety
0dd577e9d5 feat: Add error handling for relay server response and custom error pages
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
2024-09-29 19:51:13 +02:00
fsociety
a4052b1ed5 feat: replace hardcoded relay URL with config variable
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.
2024-09-29 19:38:26 +02:00
fsociety
736dcbfe1b real-time-admin-dashboard added 2024-09-29 16:29:06 +02:00
fsociety
ef0650f4d5 real-time-admin-dashboard added 2024-09-29 16:18:44 +02:00