prune: remove bird features & fix BoardGameToolbox import
This commit is contained in:
202
src/data/bird.ts
202
src/data/bird.ts
@@ -1,202 +0,0 @@
|
|||||||
export const birds = [
|
|
||||||
'Varied Thrush',
|
|
||||||
'Rock Dove',
|
|
||||||
'California Quail',
|
|
||||||
'Yellow-faced Grassquit',
|
|
||||||
'American Dipper',
|
|
||||||
'Tufted Puffin',
|
|
||||||
"Le Conte's Thrasher",
|
|
||||||
"Cassin's Vireo",
|
|
||||||
'Buff-bellied Hummingbird',
|
|
||||||
'Red Crossbill',
|
|
||||||
'Little Ringed Plover',
|
|
||||||
'American Avocet',
|
|
||||||
'Little Curlew',
|
|
||||||
'Tree Swallow',
|
|
||||||
'Three-toed Woodpecker',
|
|
||||||
'Bahama Mockingbird',
|
|
||||||
'Wandering Albatross',
|
|
||||||
'Hepatic Tanager',
|
|
||||||
'Ashy Storm-Petrel',
|
|
||||||
'Hoary Redpoll',
|
|
||||||
'Lazuli Bunting',
|
|
||||||
'Common House-Martin',
|
|
||||||
'Varied Bunting',
|
|
||||||
'Pygmy Nuthatch',
|
|
||||||
'American Coot',
|
|
||||||
'Shiny Cowbird',
|
|
||||||
'Rufous-capped Warbler',
|
|
||||||
'Eastern Wood-Pewee',
|
|
||||||
'Common Snipe',
|
|
||||||
'Northern Pygmy-Owl',
|
|
||||||
'Wood Stork',
|
|
||||||
'Gray-spotted Flycatcher',
|
|
||||||
'Bahama Woodstar',
|
|
||||||
'Black-backed Wagtail',
|
|
||||||
'Bean Goose',
|
|
||||||
'Buff-breasted Sandpiper',
|
|
||||||
'Northern Shoveler',
|
|
||||||
'Cinnamon Teal',
|
|
||||||
'Ruffed Grouse',
|
|
||||||
'Orchard Oriole',
|
|
||||||
'Black-footed Albatross',
|
|
||||||
'Mottled Duck',
|
|
||||||
'Red-headed Woodpecker',
|
|
||||||
'Double-crested Cormorant',
|
|
||||||
'Little Gull',
|
|
||||||
'Rufous Hummingbird',
|
|
||||||
'American Tree Sparrow',
|
|
||||||
'Black Swift',
|
|
||||||
'Fish Crow',
|
|
||||||
'Yellow-nosed Albatross',
|
|
||||||
'Ruddy Ground-Dove',
|
|
||||||
'White-winged Scoter',
|
|
||||||
'Black-capped Vireo',
|
|
||||||
'Chestnut-sided Warbler',
|
|
||||||
'Turkey Vulture',
|
|
||||||
'Mississippi Kite',
|
|
||||||
'Sage Thrasher',
|
|
||||||
'Whiskered Screech-Owl',
|
|
||||||
'Yucatan Vireo',
|
|
||||||
'Mountain Chickadee',
|
|
||||||
"Lewis's Woodpecker",
|
|
||||||
'Passenger Pigeon',
|
|
||||||
"Sabine's Gull",
|
|
||||||
'Black-billed Magpie',
|
|
||||||
'Florida Scrub-Jay',
|
|
||||||
'Plumbeous Vireo',
|
|
||||||
'Hoary Redpoll',
|
|
||||||
'Dusky Warbler',
|
|
||||||
"Couch's Kingbird",
|
|
||||||
'Double-striped Thick-knee',
|
|
||||||
'Canvasback',
|
|
||||||
'Warbling Vireo',
|
|
||||||
'Western Scrub-Jay',
|
|
||||||
'Green-winged Teal',
|
|
||||||
'Spot-breasted Oriole',
|
|
||||||
'American Bittern',
|
|
||||||
'White-winged Dove',
|
|
||||||
'Fieldfare',
|
|
||||||
'Barn Swallow',
|
|
||||||
'Golden-crowned Kinglet',
|
|
||||||
'Alder Flycatcher',
|
|
||||||
'Spotted Rail',
|
|
||||||
'Great Egret',
|
|
||||||
'Peregrine Falcon',
|
|
||||||
'Pacific-slope Flycatcher',
|
|
||||||
'Far Eastern Curlew',
|
|
||||||
'Whiskered Auklet',
|
|
||||||
'Yellow-billed Magpie',
|
|
||||||
'Eurasian Woodcock',
|
|
||||||
'Hepatic Tanager',
|
|
||||||
'Buff-bellied Hummingbird',
|
|
||||||
'Indigo Bunting',
|
|
||||||
"Gambel's Quail",
|
|
||||||
'Northern Waterthrush',
|
|
||||||
'Eurasian Wryneck',
|
|
||||||
"Audubon's Oriole",
|
|
||||||
'Gilded Flicker',
|
|
||||||
'Red-tailed Hawk',
|
|
||||||
'Zenaida Dove',
|
|
||||||
'Common Black-Hawk',
|
|
||||||
'Swamp Sparrow',
|
|
||||||
'Bahama Swallow',
|
|
||||||
'Jack Snipe',
|
|
||||||
"Le Conte's Thrasher",
|
|
||||||
'House Wren',
|
|
||||||
'Osprey',
|
|
||||||
'Savannah Sparrow',
|
|
||||||
'Eurasian Wigeon',
|
|
||||||
'Mexican Jay',
|
|
||||||
'Yellow Wagtail',
|
|
||||||
'Green Sandpiper',
|
|
||||||
'Greater Shearwater',
|
|
||||||
'Black-legged Kittiwake',
|
|
||||||
'Elegant Tern',
|
|
||||||
'Tufted Duck',
|
|
||||||
'Gray-headed Chickadee',
|
|
||||||
'Spotted Sandpiper',
|
|
||||||
'Barn Swallow',
|
|
||||||
'Bank Swallow',
|
|
||||||
'Scarlet Ibis',
|
|
||||||
'Spotted Redshank',
|
|
||||||
'Lark Bunting',
|
|
||||||
'American Golden-Plover',
|
|
||||||
'House Sparrow',
|
|
||||||
'Laysan Albatross',
|
|
||||||
'Whooper Swan',
|
|
||||||
'Marbled Murrelet',
|
|
||||||
"Townsend's Solitaire",
|
|
||||||
'Flesh-footed Shearwater',
|
|
||||||
'European Storm-Petrel',
|
|
||||||
'Manx Shearwater',
|
|
||||||
'Fieldfare',
|
|
||||||
'Least Bittern',
|
|
||||||
'Eskimo Curlew',
|
|
||||||
'Buff-collared Nightjar',
|
|
||||||
'White-breasted Nuthatch',
|
|
||||||
'Lanceolated Warbler',
|
|
||||||
'Bridled Tern',
|
|
||||||
'Yellow Wagtail',
|
|
||||||
'Jack Snipe',
|
|
||||||
'Western Tanager',
|
|
||||||
'Common Goldeneye',
|
|
||||||
'Greater Scaup',
|
|
||||||
'Belted Kingfisher',
|
|
||||||
'Rustic Bunting',
|
|
||||||
'Olive-sided Flycatcher',
|
|
||||||
'Bahama Mockingbird',
|
|
||||||
'White-tailed Ptarmigan',
|
|
||||||
'Lesser Scaup',
|
|
||||||
'Common Murre',
|
|
||||||
'Siberian Rubythroat',
|
|
||||||
'Siberian Rubythroat',
|
|
||||||
'Eared Trogon',
|
|
||||||
'Swallow-tailed Kite',
|
|
||||||
'Sulphur-bellied Flycatcher',
|
|
||||||
'Bohemian Waxwing',
|
|
||||||
'Common Sandpiper',
|
|
||||||
'Altamira Oriole',
|
|
||||||
'Mountain Plover',
|
|
||||||
'Common Ground-Dove',
|
|
||||||
'Great Gray Owl',
|
|
||||||
'Common Tern',
|
|
||||||
'Great Black-backed Gull',
|
|
||||||
'Horned Lark',
|
|
||||||
'Tricolored Heron',
|
|
||||||
'California Towhee',
|
|
||||||
'Fulvous Whistling-Duck',
|
|
||||||
'Hoary Redpoll',
|
|
||||||
'Plumbeous Vireo',
|
|
||||||
'Caribbean Elaenia',
|
|
||||||
'Purple Martin',
|
|
||||||
'American Crow',
|
|
||||||
'Key West Quail-Dove',
|
|
||||||
'Jungle Nightjar',
|
|
||||||
'Common Redpoll',
|
|
||||||
'Dusky Warbler',
|
|
||||||
'Neotropic Cormorant',
|
|
||||||
'Chestnut-backed Chickadee',
|
|
||||||
'Black Catbird',
|
|
||||||
'Redhead',
|
|
||||||
'American Tree Sparrow',
|
|
||||||
"Le Conte's Sparrow",
|
|
||||||
'Neotropic Cormorant',
|
|
||||||
'Wood Duck',
|
|
||||||
'Plumbeous Vireo',
|
|
||||||
'Bahama Mockingbird',
|
|
||||||
'Greater White-fronted Goose',
|
|
||||||
'Elegant Trogon',
|
|
||||||
'Jack Snipe',
|
|
||||||
'American Black Duck',
|
|
||||||
'Killdeer',
|
|
||||||
'Brown Jay',
|
|
||||||
'Pine Warbler',
|
|
||||||
'Nashville Warbler',
|
|
||||||
'Winter Wren',
|
|
||||||
'Blue Jay',
|
|
||||||
'Snowy Egret',
|
|
||||||
'Gray Bunting',
|
|
||||||
"Steller's Jay",
|
|
||||||
'Wood Warbler'
|
|
||||||
]
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useBoardGameStore } from '@/modules/5s/board-game-store'
|
import { useBoardGameStore } from '@/modules/5s/board-game-store'
|
||||||
import BoardGamePerformance from '@/modules/5s/BoardGamePerformance.vue'
|
import BoardGamePerformance from '@/modules/5s/BoardGamePerformance.vue'
|
||||||
import BoardGameToolbox from '@/modules/5s/Toolbox.vue'
|
import BoardGameToolbox from '@/modules/5s/BoardGameToolbox.vue'
|
||||||
import { _5S, is5S } from '@/modules/5s/types/5s'
|
import { _5S, is5S } from '@/modules/5s/types/5s'
|
||||||
import { onMounted, ref, toValue } from 'vue'
|
import { onMounted, ref, toValue } from 'vue'
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
import { newsAppFeatures } from '@/data/app-feature'
|
|
||||||
import type {
|
import type {
|
||||||
Feature,
|
Feature,
|
||||||
FeatureStatus
|
FeatureStatus
|
||||||
} from '@/modules/pull-system/feature/feature'
|
} from '@/modules/pull-system/feature/feature'
|
||||||
import type { FeatureStep } from '@/modules/pull-system/feature/feature-steps'
|
import type { FeatureStep } from '@/modules/pull-system/feature/feature-steps'
|
||||||
import {
|
import { mobileAppFeatures } from '@/modules/pull-system/feature/feature.fixture'
|
||||||
birdFeatures,
|
|
||||||
mobileAppFeatures
|
|
||||||
} from '@/modules/pull-system/feature/feature.fixture'
|
|
||||||
import type { Strategy } from '@/modules/pull-system/lean/strategy'
|
import type { Strategy } from '@/modules/pull-system/lean/strategy'
|
||||||
import type { FeatureState } from '@/store-type'
|
import type { FeatureState } from '@/store-type'
|
||||||
import {
|
import {
|
||||||
@@ -74,9 +70,8 @@ const mayBeInProgress = ({
|
|||||||
return feature.status
|
return feature.status
|
||||||
}
|
}
|
||||||
|
|
||||||
export const newBacklog = (type: 'bird' | 'mobile-app', limit?: number) => {
|
export const newBacklog = (limit?: number) => {
|
||||||
const initialFeatures =
|
const initialFeatures = [...mobileAppFeatures]
|
||||||
type === 'bird' ? [...birdFeatures] : [...mobileAppFeatures]
|
|
||||||
return limit !== undefined
|
return limit !== undefined
|
||||||
? popNElement(shuffleArray(initialFeatures), limit)
|
? popNElement(shuffleArray(initialFeatures), limit)
|
||||||
: shuffleArray(initialFeatures)
|
: shuffleArray(initialFeatures)
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ export const useFeatureStore = defineStore('feature', {
|
|||||||
meta: resetMeta()
|
meta: resetMeta()
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
async initBoard(type: 'bird' | 'mobile-app', limit?: number) {
|
async initBoard(limit?: number) {
|
||||||
this.backlog = newBacklog(type, limit)
|
this.backlog = newBacklog(limit)
|
||||||
this.steps = featureSteps
|
this.steps = featureSteps
|
||||||
const initialSteps = featureSteps.filter(
|
const initialSteps = featureSteps.filter(
|
||||||
(step) => step.title !== 'Release' && step.title !== 'Development'
|
(step) => step.title !== 'Release' && step.title !== 'Development'
|
||||||
|
|||||||
@@ -1,26 +1,7 @@
|
|||||||
import { newsAppFeatures } from '@/data/app-feature'
|
import { newsAppFeatures } from '@/data/app-feature'
|
||||||
import { birds } from '@/data/bird'
|
|
||||||
import { Feature } from '@/modules/pull-system/feature/feature'
|
import { Feature } from '@/modules/pull-system/feature/feature'
|
||||||
import { randomInteger } from '@/utils'
|
import { randomInteger } from '@/utils'
|
||||||
|
|
||||||
export const features: Feature[] = birds.map((name) => ({
|
|
||||||
name,
|
|
||||||
complexity: randomInteger(1, 5),
|
|
||||||
leadTime: 0,
|
|
||||||
status: 'doing',
|
|
||||||
step: Infinity,
|
|
||||||
qualityIssue: 0
|
|
||||||
}))
|
|
||||||
|
|
||||||
export const birdFeatures: readonly Feature[] = birds.map((name) => ({
|
|
||||||
name,
|
|
||||||
complexity: randomInteger(1, 5),
|
|
||||||
leadTime: 0,
|
|
||||||
status: 'doing',
|
|
||||||
step: Infinity,
|
|
||||||
qualityIssue: 0
|
|
||||||
}))
|
|
||||||
|
|
||||||
export const mobileAppFeatures: readonly Feature[] = newsAppFeatures.map(
|
export const mobileAppFeatures: readonly Feature[] = newsAppFeatures.map(
|
||||||
(name) => ({
|
(name) => ({
|
||||||
name,
|
name,
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export const useSimulationStore = defineStore('dashboard', {
|
|||||||
actions: {
|
actions: {
|
||||||
async simulate(strategy: Strategy) {
|
async simulate(strategy: Strategy) {
|
||||||
const steps = featureSteps
|
const steps = featureSteps
|
||||||
const backlog = await instance.newBacklog('mobile-app')
|
const backlog = await instance.newBacklog()
|
||||||
const features = await instance.initBoard(steps, backlog, true)
|
const features = await instance.initBoard(steps, backlog, true)
|
||||||
|
|
||||||
const newState = await instance.simulate(
|
const newState = await instance.simulate(
|
||||||
|
|||||||
Reference in New Issue
Block a user