187 Commits

Author SHA1 Message Date
fsociety
7c6ce0eb7d feat: update profile page layout and filters
- Refactored the layout of the profile page for better readability
- Updated the filters in the payment section to include 'currentPubkey' and 'content' fields
- Made minor changes to the styling and text content
- Improved the handling of payment-related information
- Fixed some indentation issues for better code readability.
2024-09-30 15:59:48 +02:00
fsociety
5eb8307691 feat: update payment event handling in profile view
Updated the way payment events are handled in the profile view. Now, the first payment event id is retrieved directly from the paymentEvents relationship instead of the payment_event attribute. Also, instead of refreshing the currentPleb model after creating a payment event, it is now loaded with the paymentEvents relationship.
2024-09-30 15:51:29 +02:00
fsociety
c47fc8792e feat: update payment status handling in profile view
Removed the 'paid' state and replaced its usage with 'currentYearIsPaid' state in profile view. This change improves the accuracy of payment status tracking. Also, added a line to refresh the 'currentPleb' object after creating a PaymentEvent and set 'qrCode' to null when the current year is paid.
2024-09-30 15:32:43 +02:00
fsociety
65fb920150 feat: add payment tracking to user profiles
- Added a check to update the 'paid' status of a user's paymentEvents if the current year's payment has been made
- Updated the user profile view to display past payments
- Added 'paymentEvents' to the query in EinundzwanzigPlebTable.php to fetch the current year's payments
- Added a 'payment' column to the table in EinundzwanzigPlebTable.php to display the amount of the user's current year's payment
2024-09-30 15:22:33 +02:00
fsociety
0bdd890dd3 feat: add multiple payment events to user profile
- Added logic to handle multiple payment events in a user's profile
- Created a new PaymentEvent model and associated it with the EinundzwanzigPleb model
- Added a new migration for creating the payment_events table in the database
- Updated the profile.blade.php view to display all payment events for a user
2024-09-30 15:14:50 +02:00
fsociety
1d0c816192 feat: filter payment tags in profile view
This commit introduces a filter for payment tags in the association profile view. This filter ensures that only the payments with the current public key are shown. Minor adjustments are also made in the JSON_THROW_ON_ERROR and the comparison of year and amount in the currentYearIsPaid method.
2024-09-30 14:52:52 +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
ee86f2ec37 feat: update membership follow requirement text in association profile view 2024-09-30 00:01:59 +02:00
fsociety
73fc654ac9 feat(election): update candidate search and layout in election page 2024-09-29 23:41:29 +02:00
fsociety
bf9a5fbd39 feat(EinundzwanzigPlebTable): update columns and filters
This commit updates the column configuration and filters in the EinundzwanzigPlebTable component. The changes include making some columns visible in export, removing the searchable feature from some columns, and removing all filters. The WithExport trait has also been added to the component.
2024-09-29 23:24:08 +02:00
fsociety
eb57a7a5fb feat: update icon for Impressum link in app layout 2024-09-29 22:54:45 +02:00
fsociety
07194f3c06 feat: add Impressum link to app layout and clean up imports in PlebTable 2024-09-29 22:53:28 +02:00
fsociety
1bd6860949 feat: update navigation labels in association layout 2024-09-29 22:44:28 +02:00
fsociety
242bb3ce9a feat: add logic to create EinundzwanzigPleb if not exists in GetProfile API 2024-09-29 22:36:12 +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
4c4cef57b1 feat: update visibility rule for edit button in EinundzwanzigPlebTable 2024-09-29 20:42:49 +02:00
fsociety
64d710c3d6 feat: update README and add maintainer information
This commit updates the README file by removing previous Laravel content and adds information about maintainers in a new 'maintainers.yaml' file. It also includes a new "Issues/Feedback" link on the application's layout page.
2024-09-29 20:17:22 +02:00
fsociety
250beed581 feat(routes): add default redirect to association profile 2024-09-29 19:57:57 +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
5ba881dd60 feat: add changelog view and navigation link
This commit introduces a new changelog view that fetches and displays the git commit history. It also adds a navigation link to this changelog in the application layout.
2024-09-29 19:44:40 +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
dd2b5bf3c2 change db config 2024-09-29 18:28:29 +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
fsociety
a0ef037b2d first copies from portal 2024-09-04 19:37:46 +02:00
fsociety
b38f3f8bed Install Pest 2024-08-29 13:36:57 +02:00
fsociety
0769adfba3 Set up a fresh Laravel app 2024-08-29 13:36:49 +02:00