Skip to content

Commit

Permalink
Merge branch 'main' into CHARTS-8320-workbook-page-redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
imsitnikov authored Jan 25, 2024
2 parents 992dfcf + 95cfa2a commit 00c51fd
Show file tree
Hide file tree
Showing 125 changed files with 3,574 additions and 2,063 deletions.
14 changes: 0 additions & 14 deletions .lintstagedrc

This file was deleted.

3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"*.{css,scss}": [
"stylelint --fix --quiet",
"prettier --write"
],
"src/i18n-keysets/**/!({keyset,context}).json": [
"node scripts/i18n-keysets-sort.js"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Start project in dev mode:
# Start backend for datalens:
git clone [email protected]:datalens-tech/datalens.git
cd datalens
docker compose up
docker compose -f docker-compose-dev.yml up

# Start datalens ui in dev mode:
git clone [email protected]:datalens-tech/datalens-ui.git
Expand Down
56 changes: 34 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@doc-tools/transform": "^2.18.3",
"@gravity-ui/app-layout": "^1.2.0",
"@gravity-ui/browserslist-config": "^4.3.0",
"@gravity-ui/chartkit": "^4.15.0",
"@gravity-ui/chartkit": "^4.17.0",
"@gravity-ui/dashkit": "^6.7.2",
"@gravity-ui/date-utils": "^1.3.1",
"@gravity-ui/expresskit": "^1.1.2",
Expand Down Expand Up @@ -114,7 +114,7 @@
"@gravity-ui/ui-logger": "^1.1.0",
"@gravity-ui/uikit": "^5.19.0",
"@microsoft/fetch-event-source": "^2.0.1",
"@playwright/test": "^1.32.2",
"@playwright/test": "^1.40.0",
"@stripe/react-stripe-js": "^1.8.1",
"@stripe/stripe-js": "^1.30.0",
"@testing-library/jest-dom": "^5.16.2",
Expand Down
28 changes: 28 additions & 0 deletions scripts/i18n-keysets-sort.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Weblate create PR with changed and approved keysets with sorted keys
* That's why we need to decrease diff
*/

const {spawnSync} = require('child_process');
const {readFileSync, writeFileSync} = require('fs');

const keysetFiles = process.argv.slice(2);
keysetFiles.forEach((filePath) => {
const fileContent = readFileSync(filePath).toString();
try {
const keysets = JSON.parse(fileContent);
const res = {};
Object.keys(keysets)
.sort()
.forEach((key) => {
res[key] = keysets[key];
});
writeFileSync(filePath, JSON.stringify(res, null, 2));

spawnSync('git', ['add', filePath]);
process.exitCode = 0;
} catch (e) {
console.error(e);
process.exitCode = 1;
}
});
4 changes: 2 additions & 2 deletions src/i18n-keysets/collections/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"action_create-workbook": "Создать воркбук",
"action_delete": "Удалить",
"action_edit": "Редактировать",
"action_move": "Переместить",
"action_reset-all": "Снять все",
"action_select": "Выбрать",
"action_select-all": "Выбрать все",
"action_reset-all": "Снять все",
"action_move": "Переместить",
"label_add-demo-workbook": "Добавить пример воркбука",
"label_add-learning-materials-workbook": "Добавить учебные материалы",
"label_delete-collection": "Удаление коллекции",
Expand Down
23 changes: 23 additions & 0 deletions src/i18n-keysets/connections.yadocs.view/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"button_add": "Add",
"button_apply": "Add",
"button_auth": "Authentication",
"button_cancel": "Cancel",
"button_update": "Update data",
"label_403-not-authotized-description": "Log in to your Yandex account or change the file access type and try adding it again",
"label_access-type": "Access type",
"label_add-document": "Add document",
"label_add-input-help": "It is forbidden to add links to or download files restricted by password. Use private files that are available after authentication.",
"label_add-input-private": "Path to file",
"label_add-input-private-note": "Example: /path/to/document",
"label_add-input-public": "Link to file",
"label_add-input-public-note": "Example: https://disk.yandex.ru/i/id",
"label_auto-update": "Update automatically",
"label_auto-update-help": "Data in the tables will be updated no more than once every 30 minutes",
"label_form-tile": "Yandex Documents",
"label_logout-dialog-description": "Sheets from files with restricted access will no longer be displayed",
"label_logout-dialog-title": "Are you sure you want to revoke your token?",
"label_radio-value-private": "Private",
"label_radio-value-public": "Public",
"label_workspace-placeholder": "To create a connection, add links to files in Yandex Documents. Supported formats: {{formats}}."
}
23 changes: 23 additions & 0 deletions src/i18n-keysets/connections.yadocs.view/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"button_add": "Добавить",
"button_apply": "Добавить",
"button_auth": "Аутентификация",
"button_cancel": "Отмена",
"button_update": "Обновить данные",
"label_403-not-authotized-description": "Войдите в свой аккаунт на Яндексе или измените тип доступа к файлу и попробуйте добавить его снова",
"label_access-type": "Доступ к файлу",
"label_add-document": "Добавить документ",
"label_add-input-help": "Добавлять ссылки на файлы, доступ к которым ограничен с помощью пароля, а также скачивать такие файлы запрещено. Используйте приватные файлы, доступные после аутентификации.",
"label_add-input-private": "Путь до файла",
"label_add-input-private-note": "Пример: /path/to/document",
"label_add-input-public": "Ссылка на файл",
"label_add-input-public-note": "Пример: https://disk.yandex.ru/i/id",
"label_auto-update": "Обновлять автоматически",
"label_auto-update-help": "Данные в таблицах будут обновляться не чаще, чем один раз за 30 минут.",
"label_form-tile": "Яндекс Документы",
"label_logout-dialog-description": "Содержимое файлов с приватным доступом перестанет отображаться",
"label_logout-dialog-title": "Вы действительно хотите отозвать свой токен?",
"label_radio-value-private": "Приватный",
"label_radio-value-public": "Публичный",
"label_workspace-placeholder": "Чтобы создать подключение, добавьте ссылки на файлы в Яндекс Документах. Поддерживаемые форматы: {{formats}}."
}
1 change: 1 addition & 0 deletions src/i18n-keysets/dash.popup-widgets-order.view/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"button_cancel": "Cancel",
"button_make-default": "By default",
"label_control": "Selector",
"label_group_control": "Group Selector",
"label_info": "Widgets order for mobile version",
"label_no-items": "No widgets added yet",
"label_text": "Text",
Expand Down
4 changes: 4 additions & 0 deletions src/i18n-keysets/dash.popup-widgets-order.view/keyset.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"en": "APPROVED",
"ru": "APPROVED"
},
"label_group_control": {
"en": "APPROVED",
"ru": "APPROVED"
},
"label_info": {
"en": "APPROVED",
"ru": "APPROVED"
Expand Down
1 change: 1 addition & 0 deletions src/i18n-keysets/dash.popup-widgets-order.view/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"button_cancel": "Отменить",
"button_make-default": "По умолчанию",
"label_control": "Селектор",
"label_group_control": "Групповой селектор",
"label_info": "Порядок виджетов в мобильной версии",
"label_no-items": "Виджеты еще не добавлены",
"label_text": "Текст",
Expand Down
7 changes: 4 additions & 3 deletions src/i18n-keysets/sql/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"label_duplicate": "Duplicate",
"label_empty-chart": "The visualization will appear here as soon as you write the SQL query and press Run in the bottom-left corner",
"label_empty-chart_il": "The visualization will appear here as soon as you select a connection, write an SQL query, and click Run in the bottom-left corner.",
"label_failed-connection-text": "Failed to load connection",
"label_new-chart-type-text": "Select chart type to start:",
"label_new-connection-text": "Select connection to start:",
"label_new-connection-text": "To start, select a connection",
"label_params": "Params",
"label_placeholder-default-value": "Default value",
"label_placeholder-name": "Name",
"label_ql-auto-execution-chart": "Automatically apply changes",
"label_query": "Query",
"label_run": "Run",
"label_select-connection": "Select",
Expand All @@ -52,6 +54,5 @@
"label_visualization-pie": "Pie chart",
"label_visualization-scatter": "Scatter chart",
"label_visualization-treemap": "Tree chart",
"text_default-name": "New QL-сhart",
"label_ql-auto-execution-chart": "Automatically apply changes"
"text_default-name": "New QL-сhart"
}
4 changes: 4 additions & 0 deletions src/i18n-keysets/sql/keyset.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@
"en": "APPROVED",
"ru": "APPROVED"
},
"label_failed-connection-text": {
"en": "APPROVED",
"ru": "APPROVED"
},
"label_params": {
"en": "APPROVED",
"ru": "APPROVED"
Expand Down
7 changes: 4 additions & 3 deletions src/i18n-keysets/sql/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
"label_duplicate": "Дублировать",
"label_empty-chart": "Визуализация появится, как только вы напишете SQL-запрос и нажмете кнопку «Запустить» в левом нижнем углу",
"label_empty-chart_il": "Чтобы построить визуализацию, выберите подключение, напишите SQL-запрос и нажмите кнопку «Запустить» в левом нижнем углу.",
"label_failed-connection-text": "Не удалось загрузить подключение",
"label_new-chart-type-text": "Выберите тип чарта, чтобы начать:",
"label_new-connection-text": "Выберите подключение, чтобы начать:",
"label_new-connection-text": "Выберите подключение, чтобы начать",
"label_params": "Параметры",
"label_placeholder-default-value": "Значение по умолчанию",
"label_placeholder-name": "Имя",
"label_ql-auto-execution-chart": "Автоматически применять изменения",
"label_query": "Запрос",
"label_run": "Запустить",
"label_select-connection": "Выбрать",
Expand All @@ -52,6 +54,5 @@
"label_visualization-pie": "Круговая диаграмма",
"label_visualization-scatter": "Точечная диаграмма",
"label_visualization-treemap": "Древовидная диаграмма",
"text_default-name": "Новый QL-чарт",
"label_ql-auto-execution-chart": "Автоматически применять изменения"
"text_default-name": "Новый QL-чарт"
}
3 changes: 0 additions & 3 deletions src/i18n-keysets/temp/en.json

This file was deleted.

3 changes: 0 additions & 3 deletions src/i18n-keysets/temp/ru.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/server/components/features/features-list/DcAirflowEnabled.ts

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Feature} from '../../../../shared';
import {createFeatureConfig} from '../utils';

export default createFeatureConfig({
name: Feature.DashBoardGlobalParams,
name: Feature.HideOldRelations,
state: {
development: true,
production: true,
Expand Down
5 changes: 5 additions & 0 deletions src/server/modes/charts/plugins/datalens/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ function getActionParamsEvents(
click: [{handler: {type: 'setActionParams'}, scope: 'row'}],
};
}
case WizardVisualizationId.PivotTable: {
return {
click: [{handler: {type: 'setActionParams'}, scope: 'cell'}],
};
}
case WizardVisualizationId.Line:
case WizardVisualizationId.Area:
case WizardVisualizationId.Column:
Expand Down
Loading

0 comments on commit 00c51fd

Please sign in to comment.