Add OMS WMS ERP platform
Validators (Pushes and Pull Requests) / UI & Storage Validation (pull_request) Failing after 12s
Validators (Pushes and Pull Requests) / Database & Schema Validation (pull_request) Successful in 13s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (pull_request) Failing after 28s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / CI Workflow Lint (pull_request) Failing after 10s
Validators (Pushes and Pull Requests) / Security & Secrets (pull_request) Successful in 12s
Validators (Pushes and Pull Requests) / Notify PR Results (pull_request) Successful in 2s
Frontend CI Pipeline / ci-frontend-8-steps (pull_request) Failing after 2m50s
Validators (Pushes and Pull Requests) / UI & Storage Validation (pull_request) Failing after 12s
Validators (Pushes and Pull Requests) / Database & Schema Validation (pull_request) Successful in 13s
Validators (Pushes and Pull Requests) / Core Validators & Database Setup (pull_request) Failing after 28s
Validators (Pushes and Pull Requests) / WBS & Audit Validations (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / .NET Contracts (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / Calibration & Performance (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / Operational Report & Decision Packet (pull_request) Has been skipped
Validators (Pushes and Pull Requests) / CI Workflow Lint (pull_request) Failing after 10s
Validators (Pushes and Pull Requests) / Security & Secrets (pull_request) Successful in 12s
Validators (Pushes and Pull Requests) / Notify PR Results (pull_request) Successful in 2s
Frontend CI Pipeline / ci-frontend-8-steps (pull_request) Failing after 2m50s
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3'
|
||||
import RoleField from './RoleField.vue'
|
||||
|
||||
const meta: Meta<typeof RoleField> = {
|
||||
title: 'Fields/Domain/RoleField',
|
||||
component: RoleField
|
||||
}
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof RoleField>
|
||||
|
||||
const Template = (args: any) => ({
|
||||
components: { RoleField },
|
||||
setup() {
|
||||
return { args }
|
||||
},
|
||||
template: `
|
||||
<div>
|
||||
<RoleField
|
||||
v-bind="args"
|
||||
@update:modelValue="args.modelValue = $event"
|
||||
/>
|
||||
<div v-if="args.modelValue" class="mt-3">
|
||||
<strong>Roles:</strong>
|
||||
<p>Selected: {{ args.modelValue.selectedRoleIds.join(', ') }}</p>
|
||||
<p v-if="args.modelValue.primaryRoleId">Primary: {{ args.modelValue.primaryRoleId }}</p>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
||||
export const Empty: Story = {
|
||||
render: Template,
|
||||
args: {
|
||||
modelValue: null
|
||||
}
|
||||
}
|
||||
|
||||
export const Operator: Story = {
|
||||
render: Template,
|
||||
args: {
|
||||
modelValue: {
|
||||
selectedRoleIds: ['operator'],
|
||||
primaryRoleId: 'operator'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const ManagerWithOperator: Story = {
|
||||
render: Template,
|
||||
args: {
|
||||
modelValue: {
|
||||
selectedRoleIds: ['manager', 'operator'],
|
||||
primaryRoleId: 'manager'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const AdminFull: Story = {
|
||||
render: Template,
|
||||
args: {
|
||||
modelValue: {
|
||||
selectedRoleIds: ['admin', 'manager', 'operator'],
|
||||
primaryRoleId: 'admin'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const MultipleRoles: Story = {
|
||||
render: Template,
|
||||
args: {
|
||||
modelValue: {
|
||||
selectedRoleIds: ['operator', 'auditor', 'warehouse'],
|
||||
primaryRoleId: 'operator'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user