Commit Graph

62 Commits

Author SHA1 Message Date
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
633ea49002 feat: update amountToPay value from 21 to 21000
This commit updates the value of `amountToPay` from 21 to 21000 in the `profile.blade.php` view. This change is applied to both the initial state setup and the condition where the current association status is active. The description for active members is also updated to reflect this change.
2024-10-02 01:00: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
3e271e932a feat: update zapEndpoint URL and remove unused function
Updated the zapEndpoint URL in the nostrZap.js file to direct towards the updated URL. Additionally, removed an unused function from the profile.blade.php file for cleaner code.
2024-10-01 18:28:50 +02:00
fsociety
661ff8bbc3 feat: update amountToPay in association profile view 2024-10-01 16:54:55 +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
e0bb99fc4f feat: update production relayUrl in nostrZap.js 2024-10-01 14:38:34 +02:00
fsociety
fb2c315c10 feat: add dynamic relay url based on environment 2024-10-01 14:21:06 +02:00
fsociety
0c7c55ac65 feat: add membership information to profile view
Added detailed information about passive and active membership on the profile view page. This includes information about rights, responsibilities, and annual fee.
2024-09-30 20:57:27 +02:00
fsociety
a1f7cef90f feat: add nostr.einundzwanzig.space to NostrFetcherTrait 2024-09-30 20:52:58 +02:00
fsociety
6ac364286d feat: add multiple relay URLs in NostrFetcherTrait
This commit introduces support for multiple relay URLs in the NostrFetcherTrait. The application will now attempt to fetch data from a list of relay URLs instead of just one. This change provides a better failover mechanism in case one of the relay servers is down or unresponsive. The application will now throw a RuntimeException if no data is received from any of the relays.
2024-09-30 20:52:20 +02:00
fsociety
883bd4d1e5 feat: update UI in profile.blade.php
Made several changes to the UI in the profile.blade.php file, including removing unnecessary comments, updating class attributes, and modifying the structure of certain divs and sections for improved readability and maintainability.
2024-09-30 20:28:55 +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
265ed40839 feat: add archived application text field to EinundzwanzigPleb model
This commit introduces a new field `archived_application_text` to the EinundzwanzigPleb model. The application text of a Pleb is now archived before the association status is updated and the application text is set to null. A migration file is also added to update the database schema.
2024-09-30 19:16:06 +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
9b23a7f6e7 feat: Update payment amount and improve layout in profile page
This commit updates the payment amount to be dynamic and improves the layout in the profile page of the association.
2024-09-30 16:43:20 +02:00
fsociety
d3652138c8 feat: update profile view to show pubkey only to non-association members 2024-09-30 16:33:53 +02:00
fsociety
e604c94541 feat: update profile view to show pubkey only to non-association members 2024-09-30 16:30:49 +02:00
fsociety
7e3d95c78b feat(profile.blade.php): update user display and improve responsiveness
Improve the UI by changing the user display from 'nip05' to 'display_name' and 'name'. Update the display of event IDs for payment to be more responsive. Add labels for satoshis and year on smaller screens. Make other minor adjustments for better responsiveness on different screen sizes.
2024-09-30 16:24:16 +02:00
fsociety
1bf9265f21 feat: update layout and fix conditional rendering in detail.blade.php 2024-09-30 16:07:43 +02:00
fsociety
b470532007 feat: update layout and fix conditional rendering in detail.blade.php 2024-09-30 16:06:48 +02:00
fsociety
af644bf2c9 feat(EinundzwanzigPlebTable): update payment calculation logic 2024-09-30 16:02:18 +02:00
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