Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gafetinov/upgrade for diadoc #39

Merged
merged 7 commits into from
Dec 5, 2023
Merged

Conversation

gafetinov
Copy link
Contributor

@gafetinov gafetinov commented Nov 27, 2023

Апгрейд для Диадока:

  • Добавил множественный выбор тасок(это появится и в EDI)
  • Добавил мапку для названий статусов
  • Добавил настройку для того, чтобы скрывать пустые поля в таблице с taskMeta
  • Добавил проп для кастмизации справки поиска


const CustomSettingsContext = createContext<ICustomSettings>(defaultValue);

export const CustomSettingsProvider = ({

This comment was marked as resolved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

его и таскать везде проще, он уже много где прокинут, не нужен будет новый контекст

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не захотелось их в один класс потому что это независящие друг от друга штуки.
И в edi они не нужны, если их в класс положить, то придется все равно в edi прописывать эти методы после обновления. А так можно просто обновиться и не париться.
А по поводу контекста, хотелось убрать лишние прокидывания пропсов

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

независящие, но они в целом про одно и то же: кастомизацию для ui очереди задач

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в целом и так сойдет конечно

const executionTime = ticksToMilliseconds(executionDurationTicks);
console.log(executionTime);

This comment was marked as resolved.

renderRow("ExpirationModificationTime", expirationModificationTicks, renderDate),
renderRow("LastModificationTime", lastModificationTicks, renderDate),
renderRow("Attempts", attempts.toString()),
renderRow("ParentTaskId", parentTaskId, parentTaskId => (

This comment was marked as resolved.

};

const handleCheckAll = () => {
if (isAllTasksChosen) {

This comment was marked as resolved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

для галочки "Выбрать все на странице"

<tr key={"ParentTaskId"}>
<td>{"ParentTaskId"}</td>
<td data-tid={"ParentTaskId"}>
<RouterLink to={`../${parentTaskId}`}>{parentTaskId}</RouterLink>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут если parentTaskId == null, то не надо рендерить же <RouterLink, раньше так было

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поправил

@gafetinov gafetinov merged commit 8093543 into master Dec 5, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants