Skip to content

Feature/non regression tests#1

Open
AkliKais wants to merge 2 commits into
heka-ai:mainfrom
AkliKais:feature/non-regression-tests
Open

Feature/non regression tests#1
AkliKais wants to merge 2 commits into
heka-ai:mainfrom
AkliKais:feature/non-regression-tests

Conversation

@AkliKais

@AkliKais AkliKais commented Apr 9, 2026

Copy link
Copy Markdown

No description provided.

AkliKais and others added 2 commits April 9, 2026 08:50
…ature

Documentation improvements:
- Enhanced CLAUDE.md with systematic documentation guidelines
- Added CHANGES.log for tracking all modifications chronologically
- Created ARCHITECTURE.md for system architecture documentation
- Defined when/what/how to document changes

GitHub Apps configuration:
- Added GitHub Actions CI workflow for frontend and backend tests
- Configured Dependabot for npm, pip, and GitHub Actions dependencies
- Created install-github-app skill with setup guides and examples

Restocking feature:
- Added new Restocking view for demand-based order creation
- Implemented POST /api/restock endpoint for restocking orders
- Enhanced Orders view to display submitted restocking orders
- Added navigation link and routing for restocking functionality

Files added:
- .claude/skills/install-github-app/SKILL.md
- .github/workflows/ci.yml
- .github/dependabot.yml
- ARCHITECTURE.md
- CHANGES.log
- client/src/views/Restocking.vue

Files modified:
- .gitignore (allow CHANGES.log)
- CLAUDE.md (documentation guidelines)
- client/src/App.vue (navigation)
- client/src/api.js (restocking API)
- client/src/main.js (routing)
- client/src/views/Orders.vue (restocking orders display)
- server/main.py (restocking endpoint)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added extensive test coverage to prevent breaking changes and enable
confident refactoring.

Backend Tests (test_non_regression.py):
- Critical User Flows: Complete workflows for inventory, orders, dashboard, restocking
- Data Consistency: Verify counts, calculations, and aggregations match across endpoints
- Filter Combinations: Test all warehouse, category, status, and time filters
- Edge Cases: Empty results, 404s, special characters, case-insensitivity
- Business Logic: Revenue goals, low stock thresholds, spending totals, trends
- API Security: Input validation, injection protection
- Performance: Dataset queries and aggregation timing
- Total: 60+ backend tests

Frontend Tests (test_non_regression.spec.js):
- Critical Navigation: All page loads and navigation flows
- Dashboard: Metrics display and filter updates
- Inventory: Table display and filtering
- Orders: Display, details, status filtering
- Restocking: Demand display, calculations, submission
- Filter Integration: Persistence and multi-filter combinations
- Data Display: Currency, dates, status badge consistency
- Error Handling: API errors, empty results
- Responsive Design: Mobile and tablet viewports
- Performance: Load times and filter updates
- Total: 30+ frontend tests

Documentation (NON_REGRESSION_TESTS.md):
- Explains what non-regression tests are and why they matter
- Documents test coverage and running instructions
- Includes best practices and maintenance guidelines
- Provides examples of good vs poor tests

Purpose: Create automated safety net that catches regressions before
they reach production, enables confident code changes, and documents
expected system behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AkliKais

AkliKais commented Apr 9, 2026

Copy link
Copy Markdown
Author

@claude review this MR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant