article: just some renaming

This commit is contained in:
Julien Calixte
2025-08-04 20:19:07 +02:00
parent 4c006befae
commit be04b37651
5 changed files with 155 additions and 139 deletions

View File

@@ -1,12 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import FlowArticle from '@/modules/pull-system/FlowArticle.vue' import PullSystemArticle from '@/modules/pull-system/PullSystemArticle.vue'
import { StarportCarrier } from 'vue-starport' import { StarportCarrier } from 'vue-starport'
</script> </script>
<template> <template>
<main id="main-app"> <main id="main-app">
<StarportCarrier> <StarportCarrier>
<FlowArticle /> <PullSystemArticle />
</StarportCarrier> </StarportCarrier>
</main> </main>
</template> </template>

View File

@@ -0,0 +1,12 @@
import { Work } from '@/modules/5s/types/workshop'
import { defineStore } from 'pinia'
type State = {
works: Work[]
}
export const useDayStore = defineStore('day', {
state: (): State => ({
works: []
})
})

View File

@@ -2,7 +2,7 @@
// Outils globaux (16) // Outils globaux (16)
// ---------------------- // ----------------------
import { Deliverable, Tool } from '@/modules/5s/types/activity' import { Deliverable, Tool, Work } from '@/modules/5s/types/workshop'
export const tools: Tool[] = [ export const tools: Tool[] = [
{ name: 'Drill', alias: 'power drill', cooldown: 2 }, { name: 'Drill', alias: 'power drill', cooldown: 2 },
@@ -28,133 +28,136 @@ export const tools: Tool[] = [
// Outils utilisés : 0, 2, 3, 4, 5, 8, 10 // Outils utilisés : 0, 2, 3, 4, 5, 8, 10
// ---------------------- // ----------------------
export const gardening: Deliverable[] = [ export const gardening: Work = {
{ name: 'gardening',
name: 'Vegetable Patch', deliverables: [
activities: [ {
{ name: 'Vegetable Patch',
name: 'Soil Preparation', activities: [
tasks: [ {
{ name: 'Soil Preparation',
name: 'Loosen soil and compost', tasks: [
tools: [tools[10], tools[4]] {
} name: 'Loosen soil and compost',
] tools: [tools[10], tools[4]]
}, }
{ ]
name: 'Plot Planning', },
tasks: [ {
{ name: 'Plot Planning',
name: 'Mark row layout', tasks: [
tools: [tools[2], tools[3]] {
} name: 'Mark row layout',
] tools: [tools[2], tools[3]]
} }
] ]
}, }
{ ]
name: 'Compost Bin Assembly', },
activities: [ {
{ name: 'Compost Bin Assembly',
name: 'Cut Panels', activities: [
tasks: [ {
{ name: 'Cut Panels',
name: 'Drill and shape wood panels', tasks: [
tools: [tools[0], tools[5]] {
} name: 'Drill and shape wood panels',
] tools: [tools[0], tools[5]]
} }
] ]
}, }
{ ]
name: 'Shrub Pruning', },
activities: [ {
{ name: 'Shrub Pruning',
name: 'Dead Branch Removal', activities: [
tasks: [ {
{ name: 'Dead Branch Removal',
name: 'Cut branches cleanly', tasks: [
tools: [tools[8]] {
} name: 'Cut branches cleanly',
] tools: [tools[8]]
} }
] ]
}, }
{ ]
name: 'Raised Garden Bed', },
activities: [ {
{ name: 'Raised Garden Bed',
name: 'Frame Layout', activities: [
tasks: [ {
{ name: 'Frame Layout',
name: 'Measure garden bed size', tasks: [
tools: [tools[2], tools[3]] {
} name: 'Measure garden bed size',
] tools: [tools[2], tools[3]]
}, }
{ ]
name: 'Frame Assembly', },
tasks: [ {
{ name: 'Frame Assembly',
name: 'Join corners with clamps', tasks: [
tools: [tools[0], tools[5]] {
} name: 'Join corners with clamps',
] tools: [tools[0], tools[5]]
}, }
{ ]
name: 'Soil Filling', },
tasks: [ {
{ name: 'Soil Filling',
name: 'Add compost and soil', tasks: [
tools: [tools[10]] {
} name: 'Add compost and soil',
] tools: [tools[10]]
} }
] ]
}, }
{ ]
name: 'Herb Garden Planters', },
activities: [ {
{ name: 'Herb Garden Planters',
name: 'Trough Installation', activities: [
tasks: [ {
{ name: 'Trough Installation',
name: 'Fix containers to wall', tasks: [
tools: [tools[0], tools[4]] {
} name: 'Fix containers to wall',
] tools: [tools[0], tools[4]]
} }
] ]
}, }
{ ]
name: 'Watering Routine', },
activities: [ {
{ name: 'Watering Routine',
name: 'Daily Watering', activities: [
tasks: [ {
{ name: 'Daily Watering',
name: 'Irrigate each section', tasks: [
tools: [tools[9]] {
} name: 'Irrigate each section',
] tools: [tools[9]]
} }
] ]
}, }
{ ]
name: 'Garden Signposts', },
activities: [ {
{ name: 'Garden Signposts',
name: 'Label Creation', activities: [
tasks: [ {
{ name: 'Label Creation',
name: 'Write and install plant tags', tasks: [
tools: [tools[3], tools[0]] {
} name: 'Write and install plant tags',
] tools: [tools[3], tools[0]]
} }
] ]
} }
] ]
}
]
}
// ---------------------- // ----------------------
// CABINETMAKING (7 outils max) // CABINETMAKING (7 outils max)

View File

@@ -21,7 +21,7 @@ export type Deliverable = {
activities: NonEmptyArray<Activity> activities: NonEmptyArray<Activity>
} }
export type Domain = { export type Work = {
name: string name: string
deliverables: NonEmptyArray<Deliverable> deliverables: NonEmptyArray<Deliverable>
} }

View File

@@ -11,7 +11,6 @@ import PushSystemIcon from '@/icons/PushSystemIcon.vue'
import FeatureItem from '@/modules/pull-system/feature/FeatureItem.vue' import FeatureItem from '@/modules/pull-system/feature/FeatureItem.vue'
import QualityIssue from '@/modules/pull-system/feature/QualityIssue.vue' import QualityIssue from '@/modules/pull-system/feature/QualityIssue.vue'
import { useSimulationStore } from '@/modules/pull-system/simulation/simulation-store' import { useSimulationStore } from '@/modules/pull-system/simulation/simulation-store'
import { getRound } from '@/utils'
import { computed } from 'vue' import { computed } from 'vue'
const feature: Feature = { const feature: Feature = {
@@ -24,12 +23,14 @@ const feature: Feature = {
} }
const simulationStore = useSimulationStore() const simulationStore = useSimulationStore()
const leadTimeDeltaFloat = computed( const meanLeadTimeDeltaFloat = computed(
() => () =>
parseFloat(simulationStore.meanLeadTime('push')) - parseFloat(simulationStore.meanLeadTime('push')) -
parseFloat(simulationStore.meanLeadTime('pull')) parseFloat(simulationStore.meanLeadTime('pull'))
) )
const leadTimeDelta = computed(() => leadTimeDeltaFloat.value.toFixed(2)) const meanLeadTimeDelta = computed(() =>
meanLeadTimeDeltaFloat.value.toFixed(2)
)
const SIMULATION_THRESHOLD = 20 const SIMULATION_THRESHOLD = 20
@@ -236,10 +237,8 @@ const createdAt = new Date('2025-01-08').toLocaleDateString(undefined, {
<p v-if="displaySimulationConclusion"> <p v-if="displaySimulationConclusion">
Now were pretty confident! As quality issues increase in the Now were pretty confident! As quality issues increase in the
<PushSystemIcon /> push system, defects and corrections accumulate, <PushSystemIcon /> push system, defects and corrections accumulate,
leading to approximately leading to <span class="numeric">{{ meanLeadTimeDelta }}</span> days of
<span class="numeric">{{ leadTimeDelta }}</span> days of delay<template delay<template v-if="meanLeadTimeDeltaFloat > 12">!!</template
v-if="leadTimeDeltaFloat > 12"
>!!</template
><template v-else>.</template> ><template v-else>.</template>
</p> </p>
<p v-else class="waiting-simulations"> <p v-else class="waiting-simulations">
@@ -275,7 +274,9 @@ const createdAt = new Date('2025-01-08').toLocaleDateString(undefined, {
teams to overproduce. Product teams prepare extra features, designers teams to overproduce. Product teams prepare extra features, designers
create unnecessary screens, and developers rush through coding. This create unnecessary screens, and developers rush through coding. This
"just in case" mindset results in wasted effort and latent defects that "just in case" mindset results in wasted effort and latent defects that
require rework, slowing productivity. require rework, slowing productivity. Worse, as there are always work to
do in stock, we can just throw bad parts and move on a new piece,
increasing bad quality.
</p> </p>
<p> <p>
Counterintuitively, Counterintuitively,