feat(ux): fix focus swipe animation, button visibility and mobile scroll

This commit is contained in:
Michael committed 2026-02-13 08:35:13 +01:00
1 parent 22e002f47f
commit 9d41a74b36
466 files changed
+6111 -42082

No files matched your search

@@ -1,35 +1,15 @@
# Input Document Discovery Standards
**Purpose:** How workflows discover, validate, and select input documents from prior workflows or external sources.
**Purpose:** Workflow input discovery, validation, and selection from prior workflows or external sources.
---
## Discovery Patterns
### Pattern 1: Prior Workflow Output
**Use when:** Workflow is part of a sequence (e.g., PRD → Architecture → Epics)
**Example:** BMM module pipeline - each of these are a workflow with many steps:
```
brainstorming → research → brief → PRD → UX → architecture → epics → sprint-planning
```
Each workflow checks for output from prior workflow(s).
### Pattern 2: Module Folder Search
**Use when:** Documents stored in known project location
**Example:** Manager review workflow searches `{project_folder}/employee-notes/`
### Pattern 3: User-Specified Paths
**Use when:** User provides document locations
**Example:** Tax workflow asks for financial statement paths
### Pattern 4: Pattern-Based Discovery
**Use when:** Search by file naming pattern
**Example:** Find all `*-brief.md` files in `{planning_artifacts}/`
1. **Prior Workflow Output** - Sequential workflows (e.g., PRD → Architecture → Epics)
2. **Module Folder Search** - Known project locations
3. **User-Specified Paths** - User-provided document locations
4. **Pattern-Based Discovery** - File naming pattern matching (e.g., `*-brief.md`)
---
@@ -41,11 +21,11 @@ Each workflow checks for output from prior workflow(s).
```yaml
---
# Input discovery variables
inputDocuments: [] # Populated with discovered docs
requiredInputCount: 1 # Minimum required to proceed
optionalInputCount: 0 # Additional docs user may provide
moduleInputFolder: '{planning_artifacts}' # Where to search
inputFilePatterns: # File patterns to match
inputDocuments: [] # Discovered docs
requiredInputCount: 1 # Minimum required
optionalInputCount: 0 # Additional optional docs
moduleInputFolder: '{planning_artifacts}'
inputFilePatterns:
- '*-prd.md'
- '*-ux.md'
---
@@ -53,100 +33,66 @@ inputFilePatterns: # File patterns to match
**Discovery Logic:**
```markdown
## 1. Check for Known Prior Workflow Outputs
Search in order:
## 1. Check Known Prior Workflow Outputs
Search order:
1. {module_output_folder}/[known-prior-workflow-output].md
2. {project_folder}/[standard-locations]/
3. {planning_artifacts}/
4. User-provided paths
## 2. Pattern-Based Search
If no known prior workflow: match {inputFilePatterns} in {moduleInputFolder} and {project_folder}/docs/
If no known prior workflow, search by patterns:
- Look for files matching {inputFilePatterns}
- Search in {moduleInputFolder}
- Search in {project_folder}/docs/
## 3. Present Findings
"Found these documents:
- [1] prd-my-project.md (3 days ago)
- [2] ux-research.md (1 week ago)
## 3. Present Findings to User
"Found these documents that may be relevant:
- [1] prd-my-project.md (created 3 days ago)
- [2] ux-research.md (created 1 week ago)
- [3] competitor-analysis.md
Which would you like to use? You can select multiple, or provide additional paths."
Select multiple or provide additional paths."
## 4. Confirm and Load
User confirms selection → Load selected documents
Add to {inputDocuments} array in output frontmatter
Add selections to {inputDocuments} array in output frontmatter
```
---
## Required vs Optional Inputs
### Required Inputs
Workflow cannot proceed without these.
**Example:** Architecture workflow requires PRD
**Required:** Workflow cannot proceed without these.
```markdown
## INPUT REQUIREMENT:
Requires PRD to proceed.
This workflow requires a Product Requirements Document to proceed.
Searching: {bmm_creations_output_folder}/prd-*.md, {planning_artifacts}/*-prd.md
Searching for PRD in:
- {bmm_creations_output_folder}/prd-*.md
- {planning_artifacts}/*-prd.md
- {project_folder}/docs/*-prd.md
[If found:]
"Found PRD: prd-my-project.md. Use this?"
[If not found:]
"No PRD found. This workflow requires a PRD to continue.
Please provide the path to your PRD, or run the PRD workflow first."
[Found:] "Found PRD: prd-my-project.md. Use this?"
[Missing:] "No PRD found. Run PRD workflow first or provide path."
```
### Optional Inputs
Workflow can proceed without these, but user may include.
**Example:** UX workflow can use research docs if available
**Optional:** Workflow can proceed without these.
```markdown
## OPTIONAL INPUTS:
Can incorporate research if available.
This workflow can incorporate research documents if available.
Searching: {bmm_creations_output_folder}/research-*.md, {project_folder}/research/
Searching for research in:
- {bmm_creations_output_folder}/research-*.md
- {project_folder}/research/
[If found:]
"Found these research documents:
- [1] user-interviews.md
- [2] competitive-analysis.md
Include any? (None required to proceed)"
[Found:] "Found research documents. Include any? (None required)"
```
---
## Module Workflow Chaining
**For modules with sequential workflows:**
**Frontmatter in workflow.md:**
```yaml
---
## INPUT FROM PRIOR WORKFLOFS
## INPUT FROM PRIOR WORKFLOWS
### Required Inputs:
- {module_output_folder}/prd-{project_name}.md
### Optional Inputs:
- {module_output_folder}/ux-research-{project_name}.md
- {project_folder}/docs/competitor-analysis.md
---
```
@@ -154,58 +100,41 @@ Include any? (None required to proceed)"
```markdown
## 1. Discover Prior Workflow Outputs
Check for required inputs:
1. Look for {module_output_folder}/prd-{project_name}.md
2. If missing → Error: "Please run PRD workflow first"
3. If found → Confirm with user
Check required: {module_output_folder}/prd-{project_name}.md
- Missing → Error: "Run PRD workflow first"
- Found → Confirm with user
Check for optional inputs:
1. Search {module_output_folder}/ for research-*.md
2. Search {project_folder}/docs/ for *-analysis.md
3. Present findings to user
4. Add selections to {inputDocuments}
Check optional: Search for patterns, present findings, add selections to {inputDocuments}
```
---
## Input Validation
After discovery, validate inputs:
```markdown
## INPUT VALIDATION:
For each discovered document:
1. Load and read frontmatter
2. Check workflowType field (should match expected)
3. Check completeness (stepsCompleted should be complete)
4. Check date (warn if document is very old)
1. Load frontmatter
2. Check workflowType matches expected
3. Check stepsCompleted == complete
4. Check date (warn if old)
[If validation fails:]
"Document prd-my-project.md appears incomplete.
Last step: step-06 (of 11)
Recommend completing PRD workflow before proceeding.
Proceed anyway? [Y]es [N]o"
[Fail:] "Document appears incomplete. Last step: step-06 (of 11). Proceed anyway?"
```
---
## Multiple Input Selection
**When user can select multiple documents:**
```markdown
## Document Selection
"Found these relevant documents:
"Found relevant documents:
[1] prd-my-project.md (3 days ago) ✓ Recommended
[2] prd-v1.md (2 months ago) ⚠ Older version
[3] ux-research.md (1 week ago)
[2] prd-v1.md (2 months ago) ⚠ Older
Enter numbers to include (comma-separated), or 'none' to skip:
> 1, 3
Selected: prd-my-project.md, ux-research.md"
Enter numbers (comma-separated): > 1, 3"
```
**Track in frontmatter:**
@@ -216,10 +145,6 @@ inputDocuments:
type: 'prd'
source: 'prior-workflow'
selected: true
- path: '{output_folder}/ux-research.md'
type: 'research'
source: 'prior-workflow'
selected: true
---
```
@@ -227,8 +152,6 @@ inputDocuments:
## Search Path Variables
Common module variables for input discovery:
| Variable | Purpose |
| ------------------------ | -------------------------- |
| `{module_output_folder}` | Prior workflow outputs |
@@ -259,11 +182,10 @@ inputFilePatterns:
## Validation Checklist
For input discovery:
- [ ] Required inputs defined in step frontmatter
- [ ] Search paths defined (module variables or patterns)
- [ ] User confirmation before using documents
- [ ] Validation of document completeness
- [ ] Clear error messages when required inputs missing
- [ ] Support for multiple document selection
- [ ] Optional inputs clearly marked as optional
- [ ] Optional inputs clearly marked