(core) Enable Record Cards

Summary:
Adds remaining functionality, fixes, and polish to Record Cards and
removes their feature flag, enabling them by default.

Test Plan: Tests deferred; will be included in a follow-up diff.

Reviewers: jarek, paulfitz

Reviewed By: jarek

Subscribers: paulfitz, jarek

Differential Revision: https://phab.getgrist.com/D4121
This commit is contained in:
George Gevoian
2023-11-21 15:16:38 -05:00
parent 84329404a4
commit 707a8c7b32
15 changed files with 227 additions and 88 deletions

View File

@@ -1,6 +1,5 @@
import { allCommands } from 'app/client/components/commands';
import { makeT } from 'app/client/lib/localization';
import { RECORD_CARDS } from 'app/client/models/features';
import { menuDivider, menuIcon, menuItemCmd, menuItemCmdLabel } from 'app/client/ui2018/menus';
import { dom } from 'grainjs';
@@ -22,7 +21,7 @@ export function RowContextMenu({
numRows
}: IRowContextMenu) {
const result: Element[] = [];
if (RECORD_CARDS() && numRows === 1) {
if (numRows === 1) {
result.push(
menuItemCmd(
allCommands.viewAsCard,