(core) Two way reference polish

Summary:
- Fixing BulkRemoveRecord bug
- Rewriting copy on the `delete reverse column` dialog
- Rewriting text on the `reassign reference dialog`
- Adding tooltip that explains why 2-way references are not enabled for formula columns

Test Plan: Added tests

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4355
This commit is contained in:
Jarosław Sadziński
2024-09-23 17:52:11 +02:00
parent 8b1d1c5d25
commit 8da04d5a2a
8 changed files with 179 additions and 44 deletions

View File

@@ -134,7 +134,7 @@ describe('TwoWayReference', function() {
// We are now in a modal dialog.
assert.equal(
await driver.findWait('.test-modal-dialog label', 100).getText(),
'Reassign to Owners record Bob.'
'Reassign to Owners record "Bob".'
);
// Reassign it.
@@ -599,7 +599,7 @@ describe('TwoWayReference', function() {
// We should have an option there.
assert.equal(
await driver.findWait('.test-modal-dialog label', 100).getText(),
'Reassign to People record Alice.'
'Reassign to People record "Alice".'
);
// Reassign it.
@@ -729,7 +729,7 @@ const removeTwoWay = () => driver.findWait('.test-remove-reverse-column', 100).c
const configText = async () => {
const text = await driver.findWait('.test-reverse-column-label', 100).getText();
return text.trim().split('\n').join('').replace('COLUMN', '.').replace("TABLE", "");
return text.trim().split('\n').join('').replace('COLUMN', '.').replace("TARGET TABLE", "");
};
const removeModal = {