Migrate site controls to Nebula design system
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
e3d0925eb1
commit
817e21567b
127 changed files with 5380 additions and 2363 deletions
|
|
@ -110,7 +110,9 @@ function TaskDescriptionPanel({ task, tasks, parentMap, parentId, textContent, o
|
|||
<span>{textContent.categoryLabel || "Catégorie"}</span>
|
||||
<input
|
||||
{...categoryEdit.getInputProps({
|
||||
className: "nds-inline-input",
|
||||
disabled: !categoryEditable,
|
||||
type: "text",
|
||||
placeholder: textContent.categoryPlaceholder || "Nom de catégorie",
|
||||
"aria-label": `${textContent.categoryLabel || "Catégorie"} ${task.title}`
|
||||
})}
|
||||
|
|
@ -120,7 +122,8 @@ function TaskDescriptionPanel({ task, tasks, parentMap, parentId, textContent, o
|
|||
<span>{textContent.descriptionLabel || "Description"}</span>
|
||||
<textarea
|
||||
{...descriptionEdit.getInputProps({
|
||||
className: "task-planner-description",
|
||||
className: "task-planner-description nds-textarea",
|
||||
"data-size": "sm",
|
||||
placeholder: textContent.descriptionPlaceholder || "Description",
|
||||
"aria-label": `${textContent.descriptionLabel || "Description"} ${task.title}`
|
||||
})}
|
||||
|
|
@ -138,6 +141,8 @@ function TaskResetSettings({ task, data, textContent, onUpdateTask }) {
|
|||
<span>{textContent.taskDailyResetTimeLabel || "Heure quotidienne"}</span>
|
||||
<div className="task-planner-reset-control">
|
||||
<input
|
||||
className="nds-time"
|
||||
data-size="xs"
|
||||
type="time"
|
||||
value={task.dailyResetTime || data.resetTime}
|
||||
onChange={(event) => onUpdateTask(task.id, (current) => {
|
||||
|
|
@ -149,6 +154,8 @@ function TaskResetSettings({ task, data, textContent, onUpdateTask }) {
|
|||
aria-label={`${textContent.taskDailyResetTimeLabel || "Heure quotidienne"} ${task.title}`}
|
||||
/>
|
||||
<button
|
||||
className="task-planner-reset-button nds-icon-button"
|
||||
data-size="xs"
|
||||
type="button"
|
||||
onClick={() => onUpdateTask(task.id, (current) => {
|
||||
const nextTask = { ...current };
|
||||
|
|
@ -171,6 +178,8 @@ function TaskResetSettings({ task, data, textContent, onUpdateTask }) {
|
|||
<label className="task-planner-reset-override">
|
||||
<span>{textContent.taskWeeklyResetDayLabel || "Jour hebdo"}</span>
|
||||
<select
|
||||
className="nds-select"
|
||||
data-size="xs"
|
||||
value={task.weeklyResetDay ?? ""}
|
||||
onChange={(event) => onUpdateTask(task.id, (current) => {
|
||||
const nextTask = { ...current };
|
||||
|
|
@ -212,6 +221,8 @@ function LinksEditor({ label, relations, task, tasks, parentMap, relationTargets
|
|||
<div className="task-planner-relations">
|
||||
<span>{label}</span>
|
||||
<select
|
||||
className="nds-select"
|
||||
data-size="sm"
|
||||
value=""
|
||||
onChange={(event) => {
|
||||
onAddLinkTarget(task.id, event.target.value);
|
||||
|
|
@ -228,6 +239,8 @@ function LinksEditor({ label, relations, task, tasks, parentMap, relationTargets
|
|||
<span>{getTaskTitle(tasks, relation.toTaskId)}</span>
|
||||
<label title={prerequisiteLabel}>
|
||||
<input
|
||||
className="nds-checkbox"
|
||||
data-size="sm"
|
||||
type="checkbox"
|
||||
checked={relation.prerequisite}
|
||||
onChange={(event) => onSetPrerequisite(task.id, relation.toTaskId, event.target.checked)}
|
||||
|
|
@ -235,7 +248,7 @@ function LinksEditor({ label, relations, task, tasks, parentMap, relationTargets
|
|||
/>
|
||||
<span>{prerequisiteLabel}</span>
|
||||
</label>
|
||||
<button type="button" onClick={() => onRemoveLinkTarget(task.id, relation.toTaskId)} title={removeLabel} aria-label={`${removeLabel} ${getTaskTitle(tasks, relation.toTaskId)}`}>
|
||||
<button className="nds-icon-button" data-size="xs" data-variant="danger" type="button" onClick={() => onRemoveLinkTarget(task.id, relation.toTaskId)} title={removeLabel} aria-label={`${removeLabel} ${getTaskTitle(tasks, relation.toTaskId)}`}>
|
||||
<Icon name="close" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue