Add planner-aware memos and unified tool configuration panels
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
This commit is contained in:
parent
acd9b2fe11
commit
808610dcf2
53 changed files with 842 additions and 329 deletions
|
|
@ -1,7 +1,6 @@
|
|||
// Rôle : rend la barre haute du task planner, l'ajout rapide et l'échange texte.
|
||||
// Rôle : rend les contrôles fréquents et l'ajout rapide du planificateur de tâches.
|
||||
import { CategoryAutocompleteInput } from "../../../components/CategoryAutocompleteInput.jsx";
|
||||
import { Icon } from "../../../components/Icon.jsx";
|
||||
import { TextExchangeActions } from "./TextExchangeActions.jsx";
|
||||
import {
|
||||
TASK_TYPES,
|
||||
getTaskTypeLabel
|
||||
|
|
@ -9,17 +8,12 @@ import {
|
|||
|
||||
export function TaskPlannerTopbar({
|
||||
data,
|
||||
context,
|
||||
editing,
|
||||
settingsOpen,
|
||||
categoryOptions,
|
||||
taskDraft,
|
||||
textContent,
|
||||
textExchangeOpen,
|
||||
onAddTask,
|
||||
onHideCompletedToggle,
|
||||
onSettingsToggle,
|
||||
onImport
|
||||
onHideCompletedToggle
|
||||
}) {
|
||||
return (
|
||||
<div className="task-planner-topbar">
|
||||
|
|
@ -36,18 +30,6 @@ export function TaskPlannerTopbar({
|
|||
<Icon name={data.hideCompleted ? "eye-closed" : "eye-open"} />
|
||||
<i aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
className={`task-planner-settings-toggle nds-button ${settingsOpen ? "active" : ""}`}
|
||||
data-size="sm"
|
||||
type="button"
|
||||
onClick={onSettingsToggle}
|
||||
aria-expanded={settingsOpen}
|
||||
aria-label={textContent.settingsTitle || "Réglages du planificateur"}
|
||||
title={textContent.settingsTitle || "Réglages du planificateur"}
|
||||
>
|
||||
<Icon name="settings" />
|
||||
<span>{textContent.settingsButtonLabel || "Paramètres des réinitialisations"}</span>
|
||||
</button>
|
||||
</div>
|
||||
{editing && (
|
||||
<div className="task-planner-add-stack">
|
||||
|
|
@ -61,11 +43,6 @@ export function TaskPlannerTopbar({
|
|||
</form>
|
||||
</div>
|
||||
)}
|
||||
{textExchangeOpen && (
|
||||
<div className="module-text-exchange-panel">
|
||||
<TextExchangeActions type="taskPlanner" data={data} context={context} textContent={textContent} onImport={onImport} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue