Commit Graph

74 Commits

Author SHA1 Message Date
fsociety
6eaba91e9e 🚀 **feat(payment): integrate BTC Pay for invoice handling and remove QR code dependencies** 2024-10-24 16:38:20 +02:00
fsociety
1621879217 🐛 fix(profile): disable event display when no events are available in the association profile view. 2024-10-24 15:03:24 +02:00
fsociety
9016663929 feat(markdown): add spatie/laravel-markdown for enhanced markdown rendering and code highlighting 2024-10-23 18:29:02 +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
01d6b506a2 🔧 fix(profile): update wire:poll to wire:poll.2s.keep-alive for better payment listening functionality 2024-10-22 17:21:28 +02:00
fsociety
22e0151be4 🚀 feat(migration): add zap endpoint field to payment events table
🎨 refactor(profile): update payment logic and button display
🔧 fix(nostrZap): change relay URL to secure WebSocket protocol
2024-10-22 17:11:32 +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
93d1372c13 🎨 feat(profile): update profile blade with new message and clean up payment function description 2024-10-07 13:28:01 +02:00
fsociety
5e830a83a7 🚀 feat(profile): update video visibility based on user login state in profile page
🎨 style(app): reorder script includes for better organization in app layout

 feat(plebTable): implement confirmation dialogs for accepting and deleting entries in Pleb table
2024-10-07 12:49:47 +02:00
fsociety
140809c142 🎥 feat(profile): add Nsec.app tutorial video for secure login instructions 2024-10-07 11:06:47 +02:00
fsociety
3cb0584e9c 🔧 refactor(changelog): streamline commit history parsing with improved output format and eliminate redundancy 2024-10-06 15:50:18 +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
a7716152d4 disable zap 2024-10-05 19:39:58 +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
259c012657 feat: dynamic zap endpoint from callback URL in nostrZap.js
This commit fetches the callback URL dynamically instead of using a hardcoded value. This improves the flexibility of the system as the callback URL can now be changed without needing to modify the code.
2024-10-02 14:31:42 +02:00
fsociety
e8820d7c29 feat: add environment-specific relayUrl configuration in nostrZap.js 2024-10-02 14:26:49 +02:00
fsociety
1fb59bd1d6 feat: update payment amount based on environment
Update the amountToPay in the profile.blade.php file for the association. In the production environment, the amount will be 21000 while in other environments it will be 1 for testing purposes. Also, format the printed amount with thousands separator for better readability.
2024-10-02 14:13:11 +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
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
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
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
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