gristlabs_grist-core/app/client/ui
Alex Hall c470c4041b (core) Use visibleCol instead of displayCol with createFormatter
Summary:
Some things (like rendering cells) use the `visibleCol` for `createFormatter`, while other things (like `CopySelection`) used the `displayCol`. For references, the display column has type Any and doesn't know about the original formatting. This resulted in formatting being lost when copying from reference columns even though formatting was preserved when copying from the original (visible) column which looked identical. This diff fixes this and ensures that `createFormatter` is always used with the `visibleCol`. This was agreed on in https://grist.slack.com/archives/C0234CPPXPA/p1639571321043000

Additionally:

- Replaces the functions `createVisibleColFormatter` computed properties `visibleColFormatter` as suggested by a `TODO`.
- Extracts common code from `createVisibleColFormatter` in `ColumnRec` and `ViewFieldRec`

Test Plan: Fixed a test in CopyPaste which displayed the previous inconsistent behaviour.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3189
2021-12-16 22:19:36 +02:00
..
AccountWidget.ts (core) Add additional org items to AppHeader 2021-11-05 08:19:51 -07:00
AddNewButton.ts
ApiKey.ts
App.css
App.ts
AppHeader.ts (core) Add additional org items to AppHeader 2021-11-05 08:19:51 -07:00
AppUI.ts (core) Add additional org items to AppHeader 2021-11-05 08:19:51 -07:00
BillingForm.ts (core) Add some polish to the billing page, particularly for sign-up. 2021-11-04 14:23:53 -04:00
BillingPage.ts (core) Add some polish to the billing page, particularly for sign-up. 2021-11-04 14:23:53 -04:00
BillingPageCss.ts
BillingPlanManagers.ts
BottomBar.ts
buttons.ts
CodeHighlight.ts
ColumnFilterMenu.ts (core) Use visibleCol instead of displayCol with createFormatter 2021-12-16 22:19:36 +02:00
CustomSectionConfig.ts (core) Exposing custom widgets on the UI 2021-12-01 18:21:06 +01:00
CustomThemes.ts
DocHistory.ts
DocMenu.ts (core) Update grainjs, fix some code affected by stronger types. 2021-12-07 17:31:03 -05:00
DocMenuCss.ts
DocTour.ts (core) Use auto popup placement for DocTour on mobile 2021-12-16 16:06:15 +02:00
Document.css
DocumentSettings.ts (core) mark engine setting as experimental 2021-11-04 20:17:24 -04:00
errorPages.ts
ExampleCard.ts
ExampleInfo.ts
FieldConfig.ts (core) Fix "Column Label and ID" widget to avoid getting truncated on some browsers 2021-12-06 10:21:10 -05:00
FieldMenus.ts
FileDialog.ts
FilterBar.ts (core) Allow filtering hidden columns 2021-11-22 10:26:08 -08:00
forms.ts
googleAuth.ts
GridOptions.ts
GridViewMenus.ts
HomeImports.ts
HomeIntro.ts
HomeLeftPane.ts
LeftPanelCommon.ts (core) Update HelpScout beacon to work with embedded documentation articles. 2021-12-09 22:22:55 -05:00
MakeCopyMenu.ts (core) Error message on Duplicate Document 2021-11-09 19:12:57 +01:00
MenuToggle.ts
modals.ts
mouseDrag.ts
MultiSelector.ts
NotifyUI.ts (core) Update HelpScout beacon to work with embedded documentation articles. 2021-12-09 22:22:55 -05:00
OnBoardingPopups.ts
PagePanels.ts
Pages.ts
PageWidgetPicker.ts
PinnedDocs.ts
ProfileDialog.ts
resizeHandle.ts
RightPanel.ts (core) Update grainjs, fix some code affected by stronger types. 2021-12-07 17:31:03 -05:00
RowContextMenu.ts
selectBy.ts
sendToDrive.ts
shadowScroll.ts
ShareMenu.ts
SiteSwitcher.ts (core) Add additional org items to AppHeader 2021-11-05 08:19:51 -07:00
TemplateDocs.ts
Tools.ts
tooltips.ts
TopBar.ts
TopBarCss.ts
transientInput.ts
transitions.ts
TreeViewComponent.ts
TreeViewComponentCss.ts
TriggerFormulas.ts (core) Formula UI redesign 2021-11-05 13:07:30 +01:00
UserImage.ts
UserItem.ts
UserManager.ts (core) Show ACL link in UserManager conditionally 2021-11-17 08:43:14 -08:00
ViewLayoutMenu.ts
viewport.ts
ViewSectionMenu.ts (core) Allow filtering hidden columns 2021-11-22 10:26:08 -08:00
VisibleFieldsConfig.ts
WelcomePage.ts
welcomeTour.ts
widgetTypes.ts