• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CMU-313 / nodebb-fall-2025-level-up / 18045739287

26 Sep 2025 06:10PM UTC coverage: 78.537% (+0.008%) from 78.529%
18045739287

push

github

web-flow
Feature: Add front-end support for private posts (#6)

* fix: simplify redirectToPost const in src/controllers/posts.js:16

* Fix: Refactored src/user/follow.js

* refactor(profile): simplify isGroupTitleValid by extracting helpers

Extracted parseGroupTitles for JSON/array handling and validateGroupTitles
for validation logic. This reduces complexity in isGroupTitleValid and
improves readability, testability, and adaptability.

* fix(api): Removal of extra arguments causing smells in src/controllers/user.js

* fix(user): handle unchanged/empty groupTitle and reject only invalid title

* feat(composer): add UI option for private topics

Introduce a "Private" checkbox in the topic composer to allow users to
mark new topics as private to staff. This option is only shown when
creating a new topic, not when replying or editing posts.

* feat(composer): persist private post checkbox state across drafts

Adds client-side logic in composer.enhance to save and restore the
"private-to-staff" checkbox state. The setting is stored in
composer.posts[uuid] when toggled and restored on draft reload,
ensuring that draft posts maintain their privacy setting.

* fix: include package.json in version control

---------

Co-authored-by: Misty <mistyf@andrew.cmu.edu>
Co-authored-by: Lucas Hazard <lhazard@andrew.cmu.edu>
Co-authored-by: Alejandro Estrada <alejandro@Alejandros-MacBook-Pro-2.local>
Co-authored-by: Chuksll <ichuksok@andrew.cmu.edu>

11144 of 16028 branches covered (69.53%)

Branch coverage included in aggregate %.

23 of 24 new or added lines in 1 file covered. (95.83%)

19 existing lines in 4 files now uncovered.

24704 of 29617 relevant lines covered (83.41%)

1490.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.67
/src/controllers/posts.js


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc