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
1 change: 1 addition & 0 deletions dist/2564.fd5c45e1a46b96b1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/5036.a356a975647e3bb5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<body class="mat-typography">
<df-root></df-root>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js"></script>
<script src="runtime.96cdcc55757dc056.js" type="module"></script><script src="polyfills.acd6a468b9e08280.js" type="module"></script><script src="main.d8d4e8ba9afa4252.js" type="module"></script></body>
<script src="runtime.04c7bbe7528aa297.js" type="module"></script><script src="polyfills.acd6a468b9e08280.js" type="module"></script><script src="main.a8aea8bd0d10987a.js" type="module"></script></body>
</html>
1 change: 1 addition & 0 deletions dist/runtime.04c7bbe7528aa297.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion src/app/adf-data-explorer/df-data-explorer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { TranslocoModule } from '@ngneat/transloco';
import { ActivatedRoute } from '@angular/router';
import { BehaviorSubject, Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
Expand Down Expand Up @@ -72,7 +73,8 @@ export class DfDataExplorerComponent
private dataExplorerService: DataExplorerService,
private themeService: DfThemeService,
private elementRef: ElementRef,
private ngZone: NgZone
private ngZone: NgZone,
private route: ActivatedRoute
) {}

ngOnInit(): void {
Expand Down Expand Up @@ -120,6 +122,15 @@ export class DfDataExplorerComponent
next: dbs => {
this.databases = dbs;
this.loadingDbs = false;
// ?service=<name> opens straight on that database: the post-create
// handoff from the API wizard lands here with the new API selected.
const requested = this.route.snapshot.queryParamMap.get('service');
const match = requested
? dbs.find(db => db.name === requested)
: undefined;
if (match) {
this.onDatabaseSelected(match);
}
},
error: err => {
this.errorDbs = normalizeError(err).message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2202,19 +2202,13 @@ export class DfServiceDetailsComponent implements OnInit {
relativeTo: this.activatedRoute,
});
} else if (this.isDatabase) {
// Meridian Phase 1 proof-of-life: a new database API lands on its
// Overview (the Live API Card with a runnable curl), not the
// api-docs scavenger hunt. `../{id}` is the sibling :id route.
const newId = response?.resource?.[0]?.id;
if (newId != null) {
this.router.navigate(['../', newId], {
relativeTo: this.activatedRoute,
});
} else {
this.router.navigate([
`/api-connections/api-docs/${formattedName}`,
]);
}
// A new database API lands on Data Explorer with that API
// selected: live rows from the connection just entered, not
// the config form it was created from (2026-07 landed on the
// service Overview; before that, API Docs).
this.router.navigate(['/api-connections/data-explorer'], {
queryParams: { service: data.name },
});
} else if (this.isMcp) {
// A new MCP server lands on its own editor's Connect tab with
// the endpoint URL and first-run checklist — never API Docs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,15 @@ export class DfSecurityConfigComponent implements OnInit {
});

// Dialog will handle navigation to API docs when closed
} else if (this.isDatabase) {
// A secured database API lands on Data Explorer with that API
// selected: the rows it just exposed, not its documentation.
this.router.navigate(['/api-connections/data-explorer'], {
queryParams: { service: result.formattedName },
replaceUrl: true,
});
} else {
// Navigate to API docs directly for experienced users
// Other service types keep landing on API docs
this.router
.navigateByUrl(
`/api-connections/api-docs/${result.formattedName}`,
Expand Down
Loading