Commit Graph

38 Commits

Author SHA1 Message Date
fsociety
421d60e42b feat(election): add access control for election details and voting options based on user permissions. 2024-10-25 13:30:39 +02:00
fsociety
c7c744d626 🆕 feat(pages): change x-if to x-show for conditional rendering in admin and project support views 2024-10-25 13:06:44 +02:00
fsociety
89e50269c5 🎨 feat(seo): update SEO metadata for project support and profile pages
 feat(seo): set site name, favicon, and fallback descriptions in SEO config

🛠️ fix(election): correct indentation and formatting in election view files
2024-10-25 12:10:49 +02:00
fsociety
77c4f0158e 🎨 refactor: update x-show to x-if for conditionally rendering elements in Blade templates. 2024-10-25 11:34:25 +02:00
fsociety
c6b3593341 🚀 feat(project-support): add project proposal form and listing pages with image uploads and voting functionality 2024-10-23 18:10:14 +02:00
fsociety
85cccd1c11 🎨 fix(election): handle potential null values for end_time and candidates in election views 2024-10-23 16:15:18 +02:00
fsociety
ce1cffc66a 🎨 style(navigation): reduce icon sizes in navigation components for better layout consistency
🔧 fix(ApplicationForm): change validation rule for reason to nullable string
📝 update(profile): simplify membership status messages and remove unnecessary fields
🎨 style(election): adjust import formatting for better readability
🎨 style(association): reduce icon sizes in association navigation links for consistency
2024-10-22 15:59:33 +02:00
fsociety
f1e6be1dd8 🐛 fix(election): update alt attribute for image to improve accessibility in election view 2024-10-16 16:44:23 +02:00
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
af0195ecd4 feat: update UI elements in election page
Updated the UI elements in the election page. Changed the header text and button styling for better readability and consistency.
2024-10-02 14:37:50 +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
ee0598515a feat: Add presidency election feature to election view
This commit adds a new feature to the election view which allows users to vote for the presidency. It also modifies the confirmation message for board member candidates.
2024-10-02 11:05:05 +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
c0e4a4bb98 feat: change conditional checks for association status and public key
Swapped the conditional check for association status and public key in both admin.blade.php and index.blade.php. This change ensures that the correct condition is evaluated in the respective files.
2024-10-01 14:42:13 +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
290d8b3d78 feat: hide log events section in election page 2024-09-30 18:32:51 +02:00
fsociety
d32b13989d feat: hide log events on small screens in election view 2024-09-30 17:34:06 +02:00
fsociety
241cc9659f feat: add permission checks for election views
- Add permission checks to the election index and election year views.
- Show election views only to users with a certain association status.
- Update nostrApp.js to entangle the 'isAllowed' state.
2024-09-30 17:09:25 +02:00
fsociety
e0a34d9376 feat: add QR code generator and Nostr event handling
- Added the `simplesoftwareio/simple-qrcode` package to the project
- Created a new JavaScript file `nostrZap.js` to handle Nostr events
- Added the `nostrZap` function to the Alpine.js data property in `app.js`
- Updated the `services.php` configuration file to include the `nostr` environment variable
- Created a new database migration to add a `payment_event` field to the `einundzwanzig_plebs` table
- Made adjustments in the `Election:year.blade.php` view file to handle potential null values
- Updated `composer.lock` and `package.json` with the new dependencies
2024-09-30 14:46:30 +02:00
fsociety
73fc654ac9 feat(election): update candidate search and layout in election page 2024-09-29 23:41:29 +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
2f8ef6c662 feat: update grid column configuration in election page
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.
2024-09-29 21:32:54 +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
c2f0014a8e add members table 2024-09-29 18:21:09 +02:00
fsociety
e76a60c600 close election 2024-09-29 16:51:35 +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
fsociety
354680f702 voting system with nostr added 2024-09-29 01:02:04 +02:00