Getting Started
- Get a copy of the Aegis source code.
- Set up the development setup.
- Create a branch for your contribution.
- Make your changes.
- Submit a pull request.
Branch Strategy
Aegis uses a branching model with the following branches:
| Branch | Purpose | Merges Into |
|---|---|---|
main | Production-ready releases | — |
develop | Integration branch for next release | main |
feature/* | New features | develop |
fix/* | Bug fixes | develop |
hotfix/* | Critical production fixes | main and develop |
docs/* | Documentation updates | develop |
Branch Naming
Use descriptive branch names with the appropriate prefix:
Copied!Gitfeature/add-accordion-blockfix/slider-navigation-a11yhotfix/critical-php-errordocs/update-pattern-reference
Creating a Branch
Copied!Shell# Start from the develop branchgit checkout developgit pull origin develop# Create your feature branchgit checkout -b feature/your-feature-name
Making Changes
Coding Standards
All contributions must follow the project coding standards:
- PHP — WordPress PHP Coding Standards (enforced via PHPCS).
- JavaScript — WordPress JavaScript Coding Standards (enforced via ESLint).
- CSS — WordPress CSS Coding Standards (enforced via stylelint).
- No abbreviations or contractions in user-facing text.
See Code Quality for detailed linting information.
Commit Messages
Write clear, descriptive commit messages:
Copied!Markdownfeat: add countdown block with configurable target date- Register countdown block with block.json metadata- Add editor component with date picker control- Add frontend JavaScript for timer animation- Add responsive styles for mobile viewports- Add unit tests for countdown logic
Commit Prefixes
| Prefix | Usage |
|---|---|
feat: | New feature |
fix: | Bug fix |
docs: | Documentation only |
style: | Code style (formatting, no logic change) |
refactor: | Code restructuring (no feature/fix) |
test: | Adding or updating tests |
chore: | Build process, dependencies, tooling |
perf: | Performance improvement |
a11y: | Accessibility improvement |
Testing Your Changes
Before submitting a PR:
Copied!Shell# Run lintingnpm run lint# Run testscomposer run testnpm run test# Run accessibility testsnpm run test:a11y# Build production assetsnpm run build
All commands must pass without errors.
Submitting a Pull Request
PR Process
- Push your branch:
bash git push -u origin feature/your-feature-name
- Open a pull request against the
developbranch.
- Fill in the PR template with:
- Summary of changes.
- Related issue number (if applicable).
- Testing steps.
- Screenshots (for visual changes).
PR Title
Keep PR titles concise and descriptive (under 70 characters):
Copied!Gitfeat: add countdown block with date pickerfix: resolve slider navigation focus issuedocs: update template reference table
PR Description Template
Copied!Markdown## SummaryBrief description of what this PR does.## Related IssuesCloses #123## Changes- Added countdown block registration- Added editor component with date picker- Added frontend timer animation- Added unit tests## Testing1. Start the local environment2. Insert a Countdown block3. Set a target date in the future4. View the frontend and verify the timer counts down## Screenshots(Include screenshots for visual changes)## Checklist- [ ] Code follows project coding standards- [ ] Tests pass locally- [ ] No accessibility regressions (pa11y-ci / `npm run test:a11y` — threshold 0)- [ ] Documentation updated (if applicable)- [ ] Build completes without errors
Code Review
All PRs go through code review:
- Automated checks — CI runs linting, tests, and accessibility checks.
- Maintainer review — A project maintainer reviews the code.
- Feedback — Address any requested changes by pushing additional commits.
- Approval — Once approved, the PR is merged.
Review Criteria
| Criterion | Description |
|---|---|
| Code quality | Follows coding standards, well-structured |
| Functionality | Works as intended, no regressions |
| Performance | Does not degrade page load performance |
| Accessibility | Accessibility-ready foundation targeting WCAG 2.2 AA; no a11y regressions |
| Testing | Appropriate tests included |
| Documentation | Code is documented, user docs updated if needed |
Types of Contributions
Bug Fixes
- Check existing bug reports for duplicates.
- Create an issue describing the bug (if one does not exist).
- Reference the issue in your PR.
- Include a test that verifies the fix.
New Features
- Open a feature request issue first to discuss the proposal.
- Wait for maintainer feedback before investing significant effort.
- Follow the established architecture patterns.
- Include tests and documentation.
Documentation
Documentation PRs use the docs/* branch prefix. Source pages live under docs/ (not a separate .wiki/ checkout). See Contributing Documentation for folder layout, sidebar wiring, link conventions, and scope rules (theme vs plugin vs Pro).
Typical updates:
- Pages in
docs/(plus_sidebar.md/home.mdwhen adding pages). - Root contributor files (
README.md,DESIGN.md,INSTRUCTIONS.md,readme.txt). - Code comments (PHPDoc, JSDoc) when APIs change.
Translations
Translations are managed through WordPress.org or direct contributions:
- Generate a fresh theme
.potfile:npm run translate. Plugin strings:npm run translateinwp-content/plugins/aegis-dash. Pro: regeneratelanguages/aegis-pro.pot. - Create a
.pofile for your locale. - Submit the translation via PR or the WordPress translation platform.
Reporting Issues
When reporting bugs:
- Search existing bug reports first. Send new reports to Atmostfear Entertainment through Getting Support: the community forum for free users, or a support ticket for Pro.
- Include:
- WordPress version.
- PHP version.
- Aegis version.
- Steps to reproduce.
- Expected behavior.
- Actual behavior.
- Screenshots or screen recordings (if visual).
Community Guidelines
- Be respectful and constructive.
- Follow the WordPress Community Code of Conduct.
- Help others when you can.
- Ask questions if something is unclear.
Next Steps
-
Contributing Documentation — Write and maintain docs under
docs/. - Development Setup — Set up your local environment.
- Code Quality — Understand coding standards.
- Testing — Run the test suite.
- Architecture — Understand the codebase structure.