Skip to content

feat: add organization model and task relationship - #175

Merged
Abd-Standard merged 1 commit into
Core-Foundry:mainfrom
coderolisa:feat/add-organization-foundation
Aug 30, 2026
Merged

feat: add organization model and task relationship#175
Abd-Standard merged 1 commit into
Core-Foundry:mainfrom
coderolisa:feat/add-organization-foundation

Conversation

@coderolisa

Copy link
Copy Markdown
Contributor

Closes #156

Implements the foundational data model for organization profiles:

  • Add Organization interface with id, name, description, website fields
  • Add organization-store module for CRUD operations
  • Change TaskRecord.organization (string) to organizationId (reference)
  • Add organizationId filter to task queries
  • Add comprehensive tests (16 tests) for organization persistence and task linkage

Checklist

General

  • Branch is up to date with main
  • PR title follows Conventional Commits format (e.g. feat: add reputation system)
  • PR description is complete with issue reference (Closes #<issue-number>)
  • One logical change per PR (no unrelated changes bundled in)

Testing

  • Tests added or updated to cover the changes
  • All tests pass (cargo test for contracts, npm run build for frontend)
  • No compiler warnings (cargo clippy -- -D warnings)

Documentation

  • Public API changes are documented with /// doc comments (Rust) or JSDoc (TypeScript)
  • CONTRIBUTING.md, README.md, or other docs updated if needed
  • CONTRACT_API.md updated if contract interface changed

Code Quality

  • Code follows the project style (cargo fmt / ESLint)
  • No any types introduced in TypeScript
  • No hardcoded secrets, keys, or environment-specific values

Smart Contract (if applicable)

  • require_auth() called on all state-changing operations
  • Events emitted for all state changes
  • Storage keys don't collide with existing keys
  • Deadline and input validation is complete
  • No unintended token transfer paths introduced

Frontend (if applicable)

  • Components are under 150 lines
  • UI is responsive and accessible
  • Screenshots or recordings included for visual changes

Implements the foundational data model for organization profiles:
- Add Organization interface with id, name, description, website fields
- Add organization-store module for CRUD operations
- Change TaskRecord.organization (string) to organizationId (reference)
- Add organizationId filter to task queries
- Add comprehensive tests (16 tests) for organization persistence and task linkage

This establishes the 10% foundation for organization support without
implementing UI layer per contribution scope.

Co-authored-by: Kiro AI <kiro@example.com>
@Abd-Standard
Abd-Standard merged commit abc0716 into Core-Foundry:main Aug 30, 2026
2 of 3 checks passed
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.

Add Organization Profiles for Grant Providers

2 participants