Commit Graph

77 Commits

Author SHA1 Message Date
Andras Bacsai c1bcc41546 init of cloud providers 2025-10-08 20:47:50 +02:00
Andras Bacsai 3f71f7becf Merge pull request #6628 from heavygee/fix/team-invitation-email-case-sensitivity
Fix team invitation email case sensitivity bug
2025-09-25 09:29:24 +02:00
Andras Bacsai c97874eb45 fix(team): clear stripe_subscription_id on subscription end
- Updated the subscriptionEnded method to set stripe_subscription_id to null when a subscription ends, ensuring proper handling of subscription state.
2025-09-23 11:00:10 +02:00
GitHub Actions c1c149968e Fix team invitation email case sensitivity bug
- Add email normalization to TeamInvitation model using setEmailAttribute()
- Add HasFactory trait to Team model for testing support
- Create TeamFactory for testing
- Add tests to verify email normalization works correctly
- Fixes issue where mixed case emails in invitations would cause lookup failures
- Resolves #6291

The bug occurred because:
1. User model normalizes emails to lowercase
2. TeamInvitation model did not normalize emails
3. When invitation was created with mixed case, it was stored as-is
4. User lookup failed due to case mismatch during invitation acceptance
5. This caused users to not be able to see teams they were invited to

This fix ensures both models normalize emails consistently.
2025-09-16 15:31:48 +01:00
Andras Bacsai 38c0641734 feat(validation): centralize validation patterns for names and descriptions
- Introduced `ValidationPatterns` class to standardize validation rules and messages for name and description fields across the application.
- Updated various components and models to utilize the new validation patterns, ensuring consistent sanitization and validation logic.
- Replaced the `HasSafeNameAttribute` trait with `HasSafeStringAttribute` to enhance attribute handling and maintain consistency in name sanitization.
- Enhanced the `CleanupNames` command to align with the new validation rules, allowing for a broader range of valid characters in names.
2025-08-19 12:14:48 +02:00
Andras Bacsai e958b3761d feat(cleanup): add command for sanitizing name fields across models
- Introduced `CleanupNames` command to sanitize name fields by removing invalid characters, ensuring only letters, numbers, spaces, dashes, underscores, and dots are retained.
- Implemented options for dry run, model-specific cleaning, database backup, and forced execution.
- Updated `Init` command to call the new `cleanup:names` command.
- Enhanced project and environment validation to enforce name sanitization rules.
- Added `HasSafeNameAttribute` trait to relevant models for consistent name handling.
2025-08-19 11:04:23 +02:00
Andras Bacsai 32326bb7dd feat(subscription): enhance subscription management with loading states and Stripe status checks 2025-04-14 10:31:13 +02:00
Andras Bacsai e7f32a1c44 refactor(notifications): standardize getRecipients method signatures 2025-03-24 17:55:10 +01:00
Andras Bacsai 07cbec7ddc feat(billing): Add Stripe past due subscription status tracking 2025-03-01 12:43:12 +01:00
🏔️ Peak e73c9b5f98 fix: system-wide GitHub apps (#5114)
- fix(ui): system-wide GitHub Apps are not shown in the create a new Application dialog
- fix: query logic error that shows all system-wide apps, regardless of whether they are public or private.
- fix: clicking on a system-wide GitHub app from a team other than the one that created it resulted in a 404 error.
2025-02-11 17:07:57 +01:00
peaklabs-dev db5786efc9 fix: instance wide GitHub apps are not available on other teams then the source team 2025-01-13 12:14:36 +01:00
Andras Bacsai 1fe4dd722b Revert "rector: arrrrr"
This reverts commit 16c0cd10d8.
2025-01-07 15:31:43 +01:00
Andras Bacsai 16c0cd10d8 rector: arrrrr 2025-01-07 14:52:08 +01:00
Andras Bacsai 2b8c559662 refactor: server limit
remove envs from constants related to server limit
2024-12-28 14:10:26 +01:00
peaklabs-dev 5571aa4530 feat: use new ServerReachabilityChanged event instead of isDirty 2024-12-16 14:06:16 +01:00
peaklabs-dev 866abfb1d4 fix: typo in pushover user key 2024-12-11 19:31:25 +01:00
peaklabs-dev 92fec9582c fix: make pushover settings more clear
- Rename User to User Key
- Rename Token to API Token
- fix: helper and docs links
2024-12-11 19:18:39 +01:00
Zao Soula ef35429533 feat(notification): add Pushover 2024-12-11 18:13:16 +01:00
peaklabs-dev bd36149f09 feat: use new notification stuff inside team model
- Use new notification relationships
- Use trait
- Make sure that when a new team is created, notification settings are also created
- reorder team model for better readability
2024-12-09 12:33:27 +01:00
Marvin von Rappard 7bdac8b42f Merge branch 'next' into main 2024-11-14 12:54:04 +01:00
Marvin von Rappard eb0686fe20 feat: slack notifications 2024-11-12 22:37:55 +01:00
peaklabs-dev 1c5ddab30d use one constants file 2024-11-12 15:18:48 +01:00
Andras Bacsai 1faa8be615 fix: cloud + stripe related 2024-11-11 22:18:15 +01:00
Andras Bacsai 904ffc894d fix: server limit check 2024-11-05 16:35:56 +01:00
Andras Bacsai 5ce6c3ded1 refactor server limit check job + email notifications view 2024-11-05 11:22:23 +01:00
Lucas Michot 1ec224fde1 Inline many variables. 2024-10-31 18:20:11 +01:00
Lucas Michot d557a22b91 Remove all ray() calls 2024-10-28 13:51:23 +01:00
Andras Bacsai 3cb6ba1a9d Refactor code to improve server limit retrieval in Team model 2024-10-28 10:08:52 +01:00
Andras Bacsai 2e9ce3ed2a feat: add notification settings to server_disk_usage 2024-10-22 14:47:01 +02:00
Andras Bacsai 2d3a6a4528 openapi work work 2024-07-09 10:45:10 +02:00
Andras Bacsai 9c821e2480 init openapi generator 2024-07-06 14:34:15 +02:00
Thijmen d86274cc37 Fix styling 2024-06-10 20:43:34 +00:00
Andras Bacsai 98b6aec203 feat: admin view for deleting users 2024-05-21 14:29:06 +02:00
Andras Bacsai db8ffe50ac fix: isMember 2024-04-05 18:47:07 +02:00
Andras Bacsai 36c31dcd67 Add role-based authorization for updating teams 2024-04-05 16:48:06 +02:00
Andras Bacsai 8b7e1e4169 Refactor code and update UI components 2024-03-22 11:34:15 +01:00
Andras Bacsai 129a644781 ui: make notifications separate view
fix: popup if no notifications are set
2024-03-07 12:58:04 +01:00
Andras Bacsai 2ffc3f497b fix: should note delete personal teams 2024-03-05 09:19:15 +01:00
Andras Bacsai 860c537f81 Add server limit override for development environment 2024-03-01 11:41:28 +01:00
Andras Bacsai c8c7a415ea Add new Livewire component and update subscription actions 2024-02-25 22:08:44 +01:00
Andras Bacsai c3cfb8d23b Refactor getRecepients method and fix serverLimitReached method in Team model 2024-02-25 18:22:24 +01:00
Andras Bacsai 297b314904 feat: custom server limit 2024-02-23 15:45:53 +01:00
Andras Bacsai fb478c79b3 feat: shared environments 2024-01-23 17:13:23 +01:00
Andras Bacsai 24fa56762e fix: database backups 2023-10-10 13:10:43 +02:00
Andras Bacsai 4b2ffb456f fix: team error 2023-09-15 17:30:26 +02:00
Andras Bacsai 019670d5d1 fix: smtp view 2023-09-15 11:28:44 +02:00
Andras Bacsai 6da4e78374 feat: trial 2023-09-12 11:19:21 +02:00
Andras Bacsai acd78ae196 feat: Telegram topics separation 2023-09-08 14:15:28 +02:00
Andras Bacsai f9a2ff6d90 feat: add discord notifications 2023-09-06 14:31:38 +02:00
Andras Bacsai ae8bd69106 able to use resend for pro+ users 2023-08-31 15:00:59 +02:00