Skip to content

feat(profile): add filter by subject in profile activity - #389

Open
rodrigolinhas wants to merge 4 commits into
bluelearn-org:mainfrom
rodrigolinhas:feat/profile-subject-filter
Open

feat(profile): add filter by subject in profile activity#389
rodrigolinhas wants to merge 4 commits into
bluelearn-org:mainfrom
rodrigolinhas:feat/profile-subject-filter

Conversation

@rodrigolinhas

Copy link
Copy Markdown
Contributor

Summary

Allows users to filter profile guide activity by subject, following Bluelearn's established query-parameter filtering architecture, schema conventions, and UI patterns.

Closes #383

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Build / tooling / CI
  • Other: _________

Verification

  • pnpm -r typecheck passes
  • pnpm -r build passes
  • Manually verified in a browser (for UI / behavior changes)
  • Followed the app layout conventions
  • No new dependencies, or new dependencies are justified and AGPL-compatible
  • Change does not violate any non-negotiable principle
  • Documentation only, no changes to the codebase, so no tests required

- Add subject slug array filter to profileActivitySearchSchema
- Add subjects array (slug + name) to profileActivityItemSchema

Signed-off-by: Rodrigo Linhas <rodrigolinhas18@gmail.com>
getProfileActivity() now batch-fetches guide_revision_subjects for all
guide revision rows in a single query and attaches slug+name pairs to
each row. Objective and review rows receive an empty subjects array.

Signed-off-by: Rodrigo Linhas <rodrigolinhas18@gmail.com>
- Extend filterActivity() to accept and apply a subject slug filter
  (OR semantics: a row passes if any of its subjects matches)
- Add getActivitySubjectOptions() to derive unique sorted subject
  choices from the unfiltered activity array
- Widen ChoiceColumnFilter to accept 'subject' field alongside
  'type'/'status'
- Add Subject column to the desktop table header and Subject chip to
  the mobile filter bar; both are hidden when no subjects are available
- Render subject badge chips in desktop table cells and mobile cards
- Update hasFilters to include the subject dimension
- Expand colSpan of the empty-state row from 6 to 7

Signed-off-by: Rodrigo Linhas <rodrigolinhas18@gmail.com>
@rodrigolinhas rodrigolinhas changed the title feat(profile): add filter by subject in profile activity (#383) feat(profile): add filter by subject in profile activity Sep 3, 2026
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.

[Feature] Add a filter by subject in Profile

1 participant