Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions GEMINI.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Project Guidelines & Automated Checks

## Formatting and Linting
When asked to fix or check formatting/linting issues, or before committing changes, run the automated fix commands directly instead of manually inspecting and fixing errors one by one:
- **Strict Trigger**: Do NOT run formatting, linting, or fix commands (`npm run format`, `composer lint`, `npm run lint`) during intermediate edits or regular conversational turns.
- Only run the automated check commands when:
1. The user explicitly instructs to `"push"` or `"commit"`.
2. The user explicitly asks to check or fix formatting/linting issues.

```bash
npm run format && composer lint && npm run lint
Expand All @@ -16,7 +19,7 @@ npm run format && composer lint && npm run lint
```
2. Switch to that branch.
3. Use atomic commits where applicable.
4. Always run formatting and linting checks before committing:
4. Run formatting and linting checks before committing:
```bash
npm run format && composer lint && npm run lint
```
Expand Down
10 changes: 10 additions & 0 deletions app/Http/Controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers;

use App\Http\Requests\Profile\UpdateProfileRequest;
use App\Models\SupportTicket;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Inertia\Inertia;
Expand All @@ -16,6 +17,15 @@ public function edit(Request $request)
]);
}

public function deleteAccount(Request $request)
{
return Inertia::render('Account/Delete', [
'openTicketsCount' => SupportTicket::where('user_id', $request->user()->id)
->whereIn('status', [SupportTicket::STATUS_OPEN, SupportTicket::STATUS_IN_PROGRESS])
->count(),
]);
}

public function update(UpdateProfileRequest $request)
{
$user = $request->user();
Expand Down
Loading
Loading