mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-15 05:46:05 +02:00
Removed button from Integration page
This commit is contained in:
@@ -80,7 +80,7 @@ cd frontend && npm install && npm run build && cd ..
|
||||
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
Access the app at http://localhost:8000.
|
||||
Access the app at http://localhost:8000. Once the backend is running, the interactive API docs are available at http://localhost:8000/docs.
|
||||
|
||||
Source checkouts expect a normal frontend build in `frontend/dist`.
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Advanced Setup And Troubleshooting
|
||||
|
||||
Once the backend is running, FastAPI serves interactive API docs at `/docs` on the same host and port as the web UI. For a default local launch, that is http://localhost:8000/docs.
|
||||
|
||||
## Remediation & Advanced Environment Variables
|
||||
|
||||
These are intended for diagnosing or working around radios that behave oddly, or enabling advanced functionality.
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
Suspense,
|
||||
type ReactNode,
|
||||
} from 'react';
|
||||
import { BookOpen, ChevronDown, Info } from 'lucide-react';
|
||||
import { ChevronDown, Info } from 'lucide-react';
|
||||
import { Input } from '../ui/input';
|
||||
import { Label } from '../ui/label';
|
||||
import { Button } from '../ui/button';
|
||||
@@ -3316,12 +3316,6 @@ export function SettingsFanoutSection({
|
||||
<Button type="button" size="sm" onClick={() => setCreateDialogOpen(true)}>
|
||||
Add Integration
|
||||
</Button>
|
||||
<Button asChild size="sm" variant="secondary">
|
||||
<a href="./docs" target="_blank" rel="noopener noreferrer">
|
||||
<BookOpen className="mr-1.5 h-4 w-4" aria-hidden="true" />
|
||||
API Docs
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<CreateIntegrationDialog
|
||||
|
||||
@@ -127,18 +127,6 @@ beforeEach(() => {
|
||||
});
|
||||
|
||||
describe('SettingsFanoutSection', () => {
|
||||
it('shows an API docs link beside the add integration button', async () => {
|
||||
renderSection();
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByRole('button', { name: 'Add Integration' })).toBeInTheDocument();
|
||||
});
|
||||
const apiDocsLink = screen.getByRole('link', { name: 'API Docs' });
|
||||
|
||||
expect(apiDocsLink).toHaveAttribute('href', './docs');
|
||||
expect(apiDocsLink).toHaveAttribute('target', '_blank');
|
||||
});
|
||||
|
||||
it('shows add integration dialog with all integration types', async () => {
|
||||
renderSection();
|
||||
const dialog = await openCreateIntegrationDialog();
|
||||
|
||||
Reference in New Issue
Block a user