(core) Focusing the creator panel on the table wiget for charts and custom views

Summary:
When a chart page/section is added and the creator panel is already open, focus is set to a "table" tab.
When a custom view is added as a page/section, the same thing happens, but there is also a behavioral tooltip shown
for the custom URL.

Test Plan: Updated and added.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3857
This commit is contained in:
Jarosław Sadziński
2023-04-14 12:09:50 +02:00
parent cc0e1154d0
commit 40ea6bb2bc
11 changed files with 134 additions and 7 deletions

View File

@@ -238,7 +238,7 @@ export class CustomSectionConfig extends Disposable {
// Does widget has custom configuration.
private _hasConfiguration: Computed<boolean>;
constructor(private _section: ViewSectionRec, _gristDoc: GristDoc) {
constructor(private _section: ViewSectionRec, private _gristDoc: GristDoc) {
super();
const api = _gristDoc.app.topAppModel.api;
@@ -411,7 +411,12 @@ export class CustomSectionConfig extends Disposable {
async value => this._url.set(value),
dom.attr('placeholder', t("Enter Custom URL")),
testId('url')
)
),
this._gristDoc.behavioralPromptsManager.attachTip('customURL', {
popupOptions: {
placement: 'left-start',
}
})
),
]),
dom.maybe(prompt, () =>