Skip to content

Commit 662a655

Browse files
committed
feat(v1.1.0): check the changelog/releases for info
1 parent e9cce44 commit 662a655

62 files changed

Lines changed: 2587 additions & 7402 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies to all project spaces and to individuals representi
3434
Instances of unacceptable behavior may be reported to the project maintainers:
3535

3636
- **Email**: [hey@codemeapixel.dev](mailto:hey@codemeapixel.dev)
37-
- **Discord**: [discord.gg/Vv2bdC44Ge](https://discord.gg/Vv2bdC44Ge)
37+
- **Discord**: [discord.gg/cYauqJfnNK](https://discord.gg/cYauqJfnNK)
3838

3939
All reports will be reviewed and investigated promptly and fairly. Maintainers are obligated to respect the privacy and security of the reporter.
4040

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ When adding new features:
284284
## Questions?
285285

286286
- Check existing [GitHub Issues](https://github.com/CodeMeAPixel/FixFX/issues)
287-
- Join our [Discord](https://discord.gg/Vv2bdC44Ge)
287+
- Join our [Discord](https://discord.gg/cYauqJfnNK)
288288
- Email: [hey@codemeapixel.dev](mailto:hey@codemeapixel.dev)
289289

290290
## License

.github/scripts/update-trusted-hosts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const fs = require('fs');
1111
const path = require('path');
1212

1313
const FIVEM_HOSTING_URL = 'https://fivem.net/server-hosting';
14-
const TRUSTED_HOSTS_FILE = path.join(__dirname, 'trusted-hosts.json');
15-
const SCHEMA_FILE = path.join(__dirname, 'trusted-hosts-schema.json');
14+
const TRUSTED_HOSTS_FILE = path.join(__dirname, '..', '..', 'packages', 'providers', 'trusted-hosts.json');
15+
const SCHEMA_FILE = path.join(__dirname, '..', '..', 'packages', 'providers', 'trusted-hosts-schema.json');
1616

1717
/**
1818
* Fetch the FiveM hosting page and extract provider information

.github/scripts/validate-trusted-hosts.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@
88
const fs = require('fs');
99
const path = require('path');
1010
const Ajv = require('ajv');
11+
const addFormats = require('ajv-formats');
1112

1213
const TRUSTED_HOSTS_FILE = path.join(__dirname, '..', '..', 'packages', 'providers', 'trusted-hosts.json');
1314
const SCHEMA_FILE = path.join(__dirname, '..', '..', 'packages', 'providers', 'trusted-hosts-schema.json');
1415

1516
try {
1617
// Load files
1718
const trustedHosts = JSON.parse(fs.readFileSync(TRUSTED_HOSTS_FILE, 'utf8'));
18-
const schema = JSON.parse(fs.readFileSync(SCHEMA_FILE, 'utf8'));
19+
let schema = JSON.parse(fs.readFileSync(SCHEMA_FILE, 'utf8'));
1920

20-
// Initialize AJV validator
21+
// Remove $schema to avoid AJV trying to fetch it from the web
22+
delete schema.$schema;
23+
24+
// Initialize AJV validator with format support
2125
const ajv = new Ajv();
26+
addFormats(ajv);
2227
const validate = ajv.compile(schema);
2328

2429
// Validate against schema

.github/workflows/knip-ci.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: Knip Validation
22
on:
33
push:
44
branches: [master, develop]
5+
pull_request:
56

67
jobs:
7-
build_test:
8+
knip:
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1112
with:
1213
ref: ${{ github.head_ref }}
1314

@@ -22,17 +23,24 @@ jobs:
2223
- name: Build application
2324
run: bun run build
2425

25-
- name: Validate Export Usage
26-
run: bun run knip:exports
27-
26+
# HIGH CONFIDENCE - Hard fail on unused dependencies
2827
- name: Validate Dependency Usage
29-
run: bun run knip:deps
28+
run: bunx knip:deps
3029

30+
# MEDIUM CONFIDENCE - Report only (warning)
3131
- name: Validate File Usage
32-
run: bun run knip:files
32+
run: bunx knip:files
33+
continue-on-error: true
34+
35+
# LOW CONFIDENCE - Report only (warning)
36+
- name: Validate Export Usage
37+
run: bunx knip:exports
38+
continue-on-error: true
3339

34-
- name: Validate Production Usage
35-
run: bun run knip:prod
40+
# LOW CONFIDENCE - Report only (warning)
41+
- name: Validate Production Dependencies
42+
run: bunx knip:prod
43+
continue-on-error: true
3644

3745
- name: Notify success
38-
run: echo "Build completed successfully!"
46+
run: echo "Knip validation completed!"

.github/workflows/knip-report.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Knip Report
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
knip-report:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
ref: ${{ github.head_ref }}
15+
16+
- name: Install Bun
17+
uses: oven-sh/setup-bun@v1
18+
with:
19+
bun-version: latest
20+
21+
- name: Install dependencies
22+
run: bun install
23+
24+
- name: Build application
25+
run: bun run build
26+
27+
- name: Generate Knip Report
28+
id: knip-report
29+
run: |
30+
{
31+
echo "## 📋 Knip Analysis Report"
32+
echo ""
33+
echo "### Exports"
34+
bunx knip:exports 2>&1 || true
35+
echo ""
36+
echo "### Files"
37+
bunx knip:files 2>&1 || true
38+
echo ""
39+
echo "### Production"
40+
bunx knip:prod 2>&1 || true
41+
} >> $GITHUB_OUTPUT
42+
43+
- name: Comment on PR
44+
if: github.event_name == 'pull_request'
45+
uses: actions/github-script@v7
46+
with:
47+
script: |
48+
github.rest.issues.createComment({
49+
issue_number: context.issue.number,
50+
owner: context.repo.owner,
51+
repo: context.repo.repo,
52+
body: "## 📋 Knip Code Quality Analysis\n\nThis report identifies potentially unused exports, dependencies, and files. **Note:** These are warnings only and may contain false positives, especially for:\n- MDX/documentation components\n- Dynamic imports\n- Framework magic (Next.js, Fumadocs)\n\n### Summary\n- Only **hard fails** occur for unused dependencies (knip:deps)\n- All other checks are informational warnings\n\nTo run locally:\n- `bun run knip:deps` - Check unused dependencies (hard fail)\n- `bun run knip:exports` - Check unused exports (warning)\n- `bun run knip:files` - Check unused files (warning)\n- `bun run knip:prod` - Check production deps (warning)\n\nSee [Knip Documentation](https://knip.dev) for more details."
53+
})

.github/workflows/tsconfig-validation.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,5 @@ jobs:
4040
issue_number: context.issue.number,
4141
owner: context.repo.owner,
4242
repo: context.repo.repo,
43-
body: `## ⚠️ tsconfig.json Validation Failed
44-
45-
This pull request attempts to **remove or modify** critical tsconfig.json configurations. This is not allowed as it will break the site.
46-
47-
### ✅ What's Allowed:
48-
- **Adding** new compiler options
49-
- **Adding** new path aliases
50-
- **Adding** new include/exclude patterns
51-
52-
### ❌ What's Not Allowed:
53-
- Removing existing compiler options
54-
- Modifying existing compiler option values
55-
- Removing path aliases
56-
- Modifying path alias mappings
57-
- Removing include/exclude patterns
58-
59-
Please revert your changes to the existing configuration and only add new options if needed.`
43+
body: "## ⚠️ tsconfig.json Validation Failed\n\nThis pull request attempts to **remove or modify** critical tsconfig.json configurations. This is not allowed as it will break the site.\n\n### ✅ What's Allowed:\n- **Adding** new compiler options\n- **Adding** new path aliases\n- **Adding** new include/exclude patterns\n\n### ❌ What's Not Allowed:\n- Removing existing compiler options\n- Modifying existing compiler option values\n- Removing path aliases\n- Modifying path alias mappings\n- Removing include/exclude patterns\n\nPlease revert your changes to the existing configuration and only add new options if needed."
6044
})

CHANGELOG.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to FixFX will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.1.0] - Unreleased
8+
## [1.1.0] - 2026-01-26
99

1010
### Added
1111

@@ -76,6 +76,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7676
- Configuration options
7777
- Command reference
7878
- Troubleshooting section
79+
- **Comprehensive txAdmin Documentation Suite** - 10 new in-depth guides covering all txAdmin features
80+
- **API Events** (`api-events.mdx`) - Complete CFX events documentation with 17 event types, properties, Lua examples, and best practices
81+
- **Environment Configuration** (`env-config.mdx`) - TXHOST_* environment variables for GSP and advanced deployments
82+
- **Discord Status Embed** (`discord-status.mdx`) - Custom Discord persistent status configuration with placeholders
83+
- **Development Guide** (`development.mdx`) - Setup, workflows, and architecture for txAdmin development
84+
- **In-Game Menu** (`menu.mdx`) - Menu access, ConVars, commands, and troubleshooting guide
85+
- **Recipe Files** (`recipe.mdx`) - Complete deployment recipe documentation with all task actions
86+
- **Logging System** (`logs.mdx`) - Persistent logging with file rotation and configuration
87+
- **Custom Server Logs** (`custom-server-log.mdx`) - Guide for logging custom commands
88+
- **Color Palettes** (`palettes.mdx`) - Theming and palette configuration
89+
- **Translation Support** (`translation.mdx`) - Contributing translations and custom locale setup
90+
- **Guidelines Modal Enhancement** - Improved markdown link parsing in partnership guidelines
91+
- Added regex-based link parsing for `[text](url)` markdown syntax
92+
- Links render as clickable anchors with proper styling
7993

8094
#### GitHub Community Files
8195
- **SECURITY.md** - Vulnerability reporting process and response timeline
@@ -115,6 +129,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
115129
- Accessible keyboard navigation
116130
- Used for hosting panel version sections
117131

132+
#### Hosting Page Improvements
133+
- **Hosting Provider Card Redesign** - Enhanced provider listing with improved UX
134+
- Added loading state skeletons using CSS animations for performance
135+
- Non-blocking state transitions for data fetching
136+
- **Navigation Enhancement** - Improved main navigation configuration
137+
- Hosting menu item with Server icon (green), banner, and description
138+
- Brand menu item with Palette icon (pink), banner, and description
139+
- Proper icon imports and styling consistency
140+
118141
### Fixed
119142
- **EOL filter parameter** - Fixed `includeEol` not being sent when set to "No"
120143
- Now always sends `includeEol` parameter explicitly to backend
@@ -135,6 +158,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
135158
- Arrow now always visible instead of appearing on hover
136159
- Matches Get Started button behavior
137160

161+
- **Guidelines Modal Component Architecture** - Fixed server/client component boundary issues
162+
- Removed context provider wrapper that caused hook usage errors in server components
163+
- Implemented direct client-side state management in hosting page
164+
- Fixed import paths for component libraries
165+
- Removed unnecessary context provider files
166+
167+
- **GitHub URL References** - Fixed erroneous `frontend/` directory in provider documentation links
168+
- Updated GUIDELINES.md to use correct GitHub repository URLs
169+
- Removed local folder structure references from remote URLs
170+
- All links now point to correct paths in main FixFX repository
171+
172+
- **txAdmin Documentation Link Format** - Fixed internal page links in all txAdmin docs
173+
- Removed `.mdx` and `.md` extensions from internal page references
174+
- Updated all GitHub URLs to official `citizenfx/txAdmin` repository
175+
- Updated Discord invite links to official server (`discord.gg/eWhDDVCpPn`)
176+
138177
#### Styling & CSS Enhancements
139178
- **Comprehensive CSS System** - Major expansion of `globals.css` with reusable utilities
140179
- **Custom Scrollbar** - Sleek, minimal scrollbar styling with `.custom-scrollbar`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Contributions are welcome. Please read our [Contributing Guide](.github/CONTRIBU
180180
## Community
181181

182182
- **GitHub Issues**: [Report bugs or request features](https://github.com/CodeMeAPixel/FixFX/issues)
183-
- **Discord**: [discord.gg/Vv2bdC44Ge](https://discord.gg/Vv2bdC44Ge)
183+
- **Discord**: [discord.gg/cYauqJfnNK](https://discord.gg/cYauqJfnNK)
184184
- **Email**: [hey@codemeapixel.dev](mailto:hey@codemeapixel.dev)
185185

186186
## License

app/api/guidelines/route.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { readFile } from "fs/promises";
2+
import { join } from "path";
3+
4+
export async function GET() {
5+
try {
6+
const filePath = join(
7+
process.cwd(),
8+
"packages/providers/GUIDELINES.md"
9+
);
10+
const content = await readFile(filePath, "utf-8");
11+
12+
return Response.json({
13+
success: true,
14+
content,
15+
});
16+
} catch (error) {
17+
console.error("Error reading guidelines:", error);
18+
return Response.json(
19+
{ success: false, error: "Failed to read guidelines" },
20+
{ status: 500 }
21+
);
22+
}
23+
}

0 commit comments

Comments
 (0)