Commit 6c80168
authored
feat(symbols): Pass project platform to builtin symbol sources API (frontend) (#104116)
## Summary
Frontend changes to support platform-restricted builtin symbol sources.
This PR updates the Debug Files settings page to pass the project's
platform to the builtin symbol sources API endpoint, enabling
platform-based filtering of available symbol sources.
## Changes
### Frontend
- **projectDebugFiles/index.tsx**: Pass `project.platform` query
parameter to the builtin symbol sources API
## Context
This is the **frontend companion** to backend PR #102013 that adds:
- Platform restrictions for builtin symbol sources (e.g., Nintendo
Switch private servers)
- Organization-level access control via `enabledConsolePlatforms`
- Automatic default symbol sources for game engines (Unity, Unreal,
Godot)
## Implementation
The change is minimal - it adds the `platform` query parameter when
fetching builtin symbol sources:
```tsx
platform: project.platform || undefined,
```
This allows the backend to filter symbol sources based on:
1. Platform match (if source has `platforms` restriction)
2. Organization access (for platform-restricted sources)
## Deployment
**Can be merged independently** - This change is backward compatible:
- If backend doesn't have filtering yet: Parameter is ignored, no issues
- If backend has filtering: Platform-based filtering works immediately
---
**Related**: Backend PR #102013 (independent, can merge in any order)1 parent fc5f5fd commit 6c80168
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
93 | 102 | | |
94 | 103 | | |
95 | 104 | | |
| |||
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
0 commit comments