Skip to content

Commit

Permalink
revert: remove tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaltation committed Nov 26, 2024
1 parent 9b71b8c commit 860d8c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
8 changes: 2 additions & 6 deletions app/client/ui/DocumentSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {DocPageModel} from 'app/client/models/DocPageModel';
import {urlState} from 'app/client/models/gristUrlState';
import {KoSaveableObservable} from 'app/client/models/modelUtil';
import {AdminSection, AdminSectionItem} from 'app/client/ui/AdminPanelCss';
import {hoverTooltip, showTransientTooltip, withInfoTooltip} from 'app/client/ui/tooltips';
import {hoverTooltip, showTransientTooltip} from 'app/client/ui/tooltips';
import {bigBasicButton, bigPrimaryButton} from 'app/client/ui2018/buttons';
import {cssRadioCheckboxOptions, radioCheckboxOption} from 'app/client/ui2018/checkbox';
import {colors, mediaSmall, theme} from 'app/client/ui2018/cssVars';
Expand Down Expand Up @@ -98,11 +98,7 @@ export class DocSettingsPage extends Disposable {
}),
dom.create(AdminSectionItem, {
id: 'templateMode',
name: withInfoTooltip(
t('Template mode'),
'documentType',
{variant: 'hover'}
),
name: t('Template mode'),
description: t('Change document type'),
value: cssDocTypeContainer(
dom.create(
Expand Down
12 changes: 1 addition & 11 deletions app/client/ui/GristTooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export type Tooltip =
| 'communityWidgets'
| 'twoWayReferences'
| 'twoWayReferencesDisabled'
| 'reasignTwoWayReference'
| 'documentType';
| 'reasignTwoWayReference';

export type TooltipContentFunc = (...domArgs: DomElementArg[]) => DomContents;

Expand Down Expand Up @@ -188,15 +187,6 @@ see or edit which parts of your document.')
),
...args,
),
documentType: (...args: DomElementArg[]) => cssTooltipContent(
dom('div',
t('Change document type can be useful to transform it into a template or a tutorial')
),
dom('div',
cssLink({href: commonUrls.helpDocumentType, target: '_blank'}, t('Learn more.')),
),
...args,
),
};

export interface BehavioralPromptContent {
Expand Down
1 change: 0 additions & 1 deletion app/common/gristUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export const commonUrls = {
helpFilteringReferenceChoices: "https://support.getgrist.com/col-refs/#filtering-reference-choices-in-dropdown",
helpSandboxing: "https://support.getgrist.com/self-managed/#how-do-i-sandbox-documents",
helpAPI: 'https://support.getgrist.com/api',
helpDocumentType: 'https://support.getgrist.com/creating-doc/',
freeCoachingCall: getFreeCoachingCallUrl(),
contactSupport: getContactSupportUrl(),
termsOfService: getTermsOfServiceUrl(),
Expand Down
3 changes: 1 addition & 2 deletions static/locales/en.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,7 @@
"To allow multiple assignments, change the type of the Reference column to Reference List.": "To allow multiple assignments, change the type of the Reference column to Reference List.",
"This limitation occurs when one column in a two-way reference has the Reference type.": "This limitation occurs when one column in a two-way reference has the Reference type.",
"To allow multiple assignments, change the referenced column's type to Reference List.": "To allow multiple assignments, change the referenced column's type to Reference List.",
"Two-way references are not currently supported for Formula or Trigger Formula columns": "Two-way references are not currently supported for Formula or Trigger Formula columns",
"Change document type can be useful to transform it into a template or a tutorial": "Change document type can be useful to transform it into a template or a tutorial"
"Two-way references are not currently supported for Formula or Trigger Formula columns": "Two-way references are not currently supported for Formula or Trigger Formula columns"
},
"DescriptionConfig": {
"DESCRIPTION": "DESCRIPTION"
Expand Down

0 comments on commit 860d8c1

Please sign in to comment.