bu1 ad email config

This commit is contained in:
phaichayon
2026-07-07 14:37:17 +07:00
parent 3b5fede134
commit 62762fc70c
8 changed files with 2183 additions and 52 deletions

501
plans/task-bu-r.0.1.md Normal file
View File

@@ -0,0 +1,501 @@
# Task BU-R.0.1 Workspace & Activity Business Blueprint Completion
Status: Planning
Priority: Critical
Type: Business Discovery / Business Architecture
Depends On:
- BU-R.0 Business Blueprint Freeze
---
# Objective
Complete the remaining business architecture that was intentionally left outside BU-R.0 before beginning Phase R.1 Business Capability Audit.
This phase completes the operational workspace philosophy of ALLA OS by defining:
- Activity Blueprint
- Workspace Interaction Blueprint
- Customer Workspace Blueprint
This task remains documentation-only.
No implementation, schema, API, UI, or migration work is allowed.
---
# Background
BU-R.0 successfully froze the core business architecture.
However several operational concepts still require business definition before implementation or capability audit.
The largest remaining gaps are:
- Activity Lifecycle
- Workspace Interaction
- Customer Workspace
- Daily User Workflow
Without these definitions, future Calendar, Timeline, Notification, Dashboard, and My Day implementations may diverge.
---
# Review Required
Review:
- Relationship & Sales Workspace Blueprint v1
- BU-R.0 Implementation Report
- Existing CRM UI
- Existing Customer UI
- Existing Opportunity Workspace
- Existing Quotation Workspace
- Existing Dashboard
- Existing Calendar discussions
- Existing Follow-up implementation
- Existing Task implementation
- Existing Notification implementation
Review current schema only for understanding.
Do not redesign existing foundations.
---
# Scope
## Part 1 — Activity Blueprint
Freeze Activity as the shared operational business model.
Determine
- Activity Definition
- Activity Ownership
- Activity Lifecycle
- Activity Types
- Activity Priority
- Activity Status
- Activity Assignment
- Activity Completion Rules
- Activity Visibility
- Activity Permission
- Activity Relationships
Determine whether Activity may reference
- Customer
- Contact
- Lead
- Opportunity
- Quotation
- PO
- Internal Only
Determine
- Follow-up Strategy
- Reminder Strategy
- Automation Strategy
Determine
- Calendar Synchronization
- Timeline Synchronization
- Notification Synchronization
Freeze the Activity State Machine.
---
## Part 2 — Workspace Interaction Blueprint
Freeze how each business role operates throughout an entire working day.
Define complete workflows for
Marketing
Sales
Sales Manager
Executive
Determine
Login Experience
Primary Landing Page
Workspace Navigation
My Day
Calendar Usage
Timeline Usage
Notification Usage
Customer Navigation
Lead Workflow
Opportunity Workflow
Quotation Workflow
Determine
Daily User Journey
instead of only entity relationships.
---
## Part 3 — Customer Workspace Blueprint
Freeze Customer as the Relationship Workspace.
Determine Customer Workspace layout.
Example sections
Overview
Contacts
Activities
Timeline
Leads
Opportunities
Quotations
PO
Files
Notes
Relationship Summary
Recent Visits
Upcoming Activities
Determine
Customer Timeline
Customer Relationship Health
Customer Follow-up Health
Customer Project History
Determine
Customer 360 View.
---
## Part 4 — Calendar Workspace Blueprint
Expand the Calendar philosophy.
Determine
Personal Calendar
Team Calendar
Manager Calendar
Executive Calendar
Determine
Calendar Sources
Activities
Meetings
Visits
Site Survey
Reminder
Task
Expected Award Date
Expected Delivery Date
Approval Due
Quotation Expiration
Determine
Calendar Filters
Calendar Colors
Calendar Views
Day
Week
Month
Agenda
---
## Part 5 — My Day Blueprint
Freeze
My Day
as the operational home screen.
Determine
Today's Activities
Overdue Activities
Upcoming Meetings
Pending Approvals
Hot Projects
Today's Follow-up
Urgent Quotations
Manager Tasks
Relationship Alerts
Determine
Priority Ordering
Sorting Rules
Urgency Rules
---
## Part 6 — Manager Workspace Blueprint
Freeze
Manager Workspace
Determine
Team Calendar
Team Activities
Overdue Activities
Idle Opportunities
Forecast
Hot Projects
Approval Queue
Workload Balance
Determine
Daily Management Workflow
---
## Part 7 — Business Event Blueprint
Identify every business event that should create
Timeline
Notification
Reminder
Dashboard Update
Audit Log
Future Automation
Examples
Activity Completed
Lead Assigned
Opportunity Created
Quotation Sent
Quotation Approved
Hot Project Flagged
Expected Award Date Changed
PO Received
---
# Deliverables
Produce
## 1
Activity Blueprint
---
## 2
Workspace Interaction Blueprint
---
## 3
Customer Workspace Blueprint
---
## 4
Calendar Workspace Blueprint
---
## 5
My Day Blueprint
---
## 6
Manager Workspace Blueprint
---
## 7
Business Event Matrix
---
## 8
Activity State Machine
---
## 9
Workspace Navigation Diagram
---
## 10
Customer 360 Diagram
---
## 11
Daily User Journey
Marketing
Sales
Manager
Executive
---
## 12
Updated Relationship & Sales Workspace Blueprint v1
Append these new chapters without changing frozen principles from BU-R.0.
---
# Constraints
This task is documentation only.
DO NOT
- modify schema
- modify migrations
- modify API
- modify services
- modify UI
- modify permissions
- modify database
- modify existing ADR decisions
Preserve current foundation.
Prefer extension over replacement.
---
# Success Criteria
The business operation of every role is fully documented.
Activity becomes the officially governed operational model.
Workspace interaction is fully standardized.
Customer Workspace is finalized.
Calendar philosophy is finalized.
My Day philosophy is finalized.
Manager Workspace is finalized.
Business Event model is frozen.
Blueprint reaches implementation-ready maturity.
Ready for
Phase R.1 Business Capability Audit.

617
plans/task-bu-r.1.md Normal file
View File

@@ -0,0 +1,617 @@
# Task BU-R.1 Business Capability Audit
Status: Planning
Priority: Critical
Type: Business Discovery / Capability Audit
Depends On
- BU-R.0 Business Blueprint Freeze
- BU-R.0.1 Workspace & Activity Business Blueprint Completion
---
# Objective
Audit the current ALLA OS implementation against the frozen Business Blueprint.
This phase must identify which business capabilities already exist, which are partially implemented, which require enhancement, and which should be introduced as new capabilities.
The purpose is to minimize disruption to the existing architecture while ensuring future implementation aligns with the approved business blueprint.
This is a documentation and analysis phase only.
No implementation work is allowed.
---
# Background
BU-R.0 and BU-R.0.1 established the official Business Constitution of ALLA OS.
The current repository already contains a mature CRM foundation including:
- Customer
- Contact
- Lead
- Opportunity
- Quotation
- Approval
- Document
- Organization
- RBAC
- PDF
- Dashboard
The next step is to determine how closely the current implementation aligns with the frozen business architecture.
---
# Review Required
Review all relevant documentation before auditing.
Minimum review
- AGENTS.md
- Project Standards
- Architecture Rules
- UI/UX Rules
- Task Catalog
- CRM Terminology
- Relationship & Sales Workspace Blueprint
- Existing ADRs
- Current Schema
- Current CRM APIs
- Existing Dashboard
- Existing Customer Workspace
- Existing Lead Workspace
- Existing Opportunity Workspace
- Existing Quotation Workspace
- Existing Approval Module
- Existing Notification Module
Review source code only for capability verification.
Do not redesign.
Do not implement.
---
# Audit Scope
---
## Part 1 — Relationship Capability Audit
Review
Customer
Contact
Customer Account Type
Customer Ownership
Contact Sharing
Relationship Health
Customer Timeline
Customer Workspace
Determine
Existing capability
Missing capability
Refactor candidates
Future enhancements
---
## Part 2 — Activity Capability Audit
Review
Follow-up
Meeting
Visit
Phone Call
Reminder
Task
Notification
Internal Task
Determine
Current activity implementation
Duplicate activity concepts
Reusable components
Potential shared Activity model
Activity ownership
Activity lifecycle support
Calendar readiness
Timeline readiness
---
## Part 3 — Lead Capability Audit
Review
Lead lifecycle
Lead ownership
Lead assignment
Lead qualification
Lead conversion
Lead follow-up
Lead dashboard
Determine
Blueprint compliance
Missing capabilities
Legacy behaviour
---
## Part 4 — Opportunity Capability Audit
Review
Opportunity ownership
Forecast
Expected Award Date
Expected Delivery Date
Probability
Hot Project
Pipeline
Outcome
Process Status
Status
Determine
Business alignment
Schema readiness
Service readiness
UI readiness
---
## Part 5 — Commercial Capability Audit
Review
Quotation
Revision
Approval
Pricing
PDF
Customer Package
PO integration
Determine
Blueprint compliance
Missing capabilities
---
## Part 6 — Workspace Capability Audit
Review
Customer Workspace
Sales Workspace
Manager Workspace
Executive Workspace
Calendar
Timeline
My Day
Notification
Dashboard
Determine
Existing workspaces
Navigation gaps
Role support
Operational readiness
---
## Part 7 — Dashboard Capability Audit
Review
Pipeline
Forecast
Hot Project
Follow-up
Overdue Work
Sales KPI
Manager KPI
Executive KPI
Determine
Current implementation
Metric ownership
Business alignment
---
## Part 8 — Notification Capability Audit
Review
Approval Notification
Reminder
Follow-up Notification
Manager Escalation
Assignment Notification
Determine
Current notification model
Missing business events
Automation opportunities
---
## Part 9 — Business Event Audit
Review
Lead Events
Opportunity Events
Quotation Events
Approval Events
Customer Events
Determine
Existing events
Missing events
Timeline support
Calendar support
Automation readiness
---
# Deliverables
Produce
## 1
Business Capability Matrix
For every capability identify
- Existing
- Partial
- Missing
- Legacy
- Refactor Candidate
---
## 2
Capability Coverage Report
Percentage coverage
Customer
Activity
Lead
Opportunity
Quotation
Approval
Dashboard
Calendar
Timeline
Notification
Workspace
---
## 3
Gap Analysis
Current System
vs
Business Blueprint
Categorize
No Change
Enhancement
Refactor
New Capability
---
## 4
Architecture Preservation Report
Identify
Core components that should remain unchanged
Core components requiring extension only
Components requiring controlled refactoring
Potential breaking changes
Backward compatibility concerns
---
## 5
Business Capability Dependency Map
Show dependency between
Customer
Activity
Lead
Opportunity
Quotation
Approval
Dashboard
Calendar
Timeline
Notification
---
## 6
Capability Priority Matrix
Prioritize
Critical
High
Medium
Low
based on business value and implementation impact.
---
## 7
Implementation Readiness Report
Identify
Ready immediately
Requires schema enhancement
Requires service enhancement
Requires UI enhancement
Requires future phase
---
## 8
Recommended Epic Breakdown
Group future implementation into epics.
Example
Epic
Customer Workspace
Epic
Activity Platform
Epic
Calendar Workspace
Epic
Timeline
Epic
Manager Workspace
Epic
My Day
Epic
Notification
Epic
Dashboard
---
# Constraints
This phase is documentation only.
DO NOT
- modify schema
- modify database
- modify migrations
- modify APIs
- modify services
- modify UI
- modify permissions
- modify business logic
No code changes are permitted.
---
# Success Criteria
Every business capability has been audited.
Current implementation is mapped to the approved Business Blueprint.
No duplicate business capability remains unidentified.
The impact of every future feature is understood.
Core architecture preservation strategy is documented.
A prioritized implementation roadmap can be produced without re-discovering business requirements.
Ready for
BU-R.2 Domain & Schema Audit.
# Implementation Result - 2026-07-07
Status: Completed
Completed:
- audited current customer, lead, opportunity, quotation, approval, dashboard, notification, workspace, and security capabilities against the frozen BU-R.0 and BU-R.0.1 blueprint
- classified current implementation into `Existing`, `Partial`, `Missing`, `Legacy`, and `Refactor Candidate` capability states
- documented preservation-safe direction for later phases without changing code or schema
Primary findings:
- customer ownership, contact sharing, opportunity lifecycle, quotation lifecycle, approval runtime, PDF/document delivery, dashboard KPIs, and CRM security are already strong foundations and should be preserved
- follow-up capability is real across lead, opportunity, quotation, and dashboard analytics, but a shared production Activity platform does not yet exist
- customer detail is a strong partial Customer Workspace, but generated timeline, relationship health, and activity-centered workspace sections are still missing
- calendar, My Day, manager workspace, executive workspace, and generated timeline remain mostly future capability rather than current implementation
- notification foundation exists and is production-ready, but business-event coverage is still mostly approval-centric
Recorded outputs:
- [task-bu-r.1-business-capability-audit-2026-07-07.md](/C:/Users/mtpphtaps/Documents/gitea/alla-allaos-fullstack/docs/implementation/task-bu-r.1-business-capability-audit-2026-07-07.md)
Verification:
- documentation-only phase
- no schema, API, service, UI, permission, or business-logic changes made
- no build or test command required