Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
679 commits
Select commit Hold shift + click to select a range
9a11057
Merge pull request #3858 from Northeastern-Electric-Racing/#3651-Rule…
Zwendle Jan 5, 2026
dc20ca9
Merge branch 'feature/rules-dashboard' into #3658-EditRulesetPage-add…
Zwendle Jan 5, 2026
ce4bf05
fixed the add rule modal
Aryan0102 Jan 6, 2026
d3f5ba0
#3658 fixed add rule functionality
Zwendle Jan 7, 2026
a223431
#3622 error handling fix + cleaning
cielbellerose Jan 10, 2026
c87b81f
Merge branch 'feature/rules-dashboard' into 3622-rulesdashboard-parsing
cielbellerose Jan 10, 2026
7fc9377
#3658 removing referenced rule functionality for sake of scope :(
Zwendle Jan 12, 2026
beb996c
#3658 linting fix (temporarily removing delete rule related imports i…
Zwendle Jan 12, 2026
f02c778
#3658 removing unnecessary console.log
Zwendle Jan 12, 2026
bc0abbd
#3658 prettier fix
Zwendle Jan 12, 2026
89759da
#3622 linting
cielbellerose Jan 12, 2026
e2a0ba0
#3622 lint
cielbellerose Jan 12, 2026
194907e
#3827 changed modal font styling to match figma better
Zwendle Jan 14, 2026
cb43fab
Merge pull request #3848 from Northeastern-Electric-Racing/3827-proje…
Zwendle Jan 14, 2026
af710bc
Merge branch 'feature/rules-dashboard' into #3778-history-modal
Zwendle Jan 14, 2026
36f2b84
#3868 partial breadcrumb functionality
Zwendle Jan 14, 2026
826fb03
#3869 removed console.log
Zwendle Jan 14, 2026
57a6e8e
#3869 lint fix
Zwendle Jan 14, 2026
d010583
Merge branch 'feature/rules-dashboard' into 3622-rulesdashboard-parsing
cielbellerose Jan 15, 2026
0373f00
initial implmentation
Aryan0102 Jan 15, 2026
99667d4
Merge pull request #3856 from Northeastern-Electric-Racing/#3778-hist…
Zwendle Jan 19, 2026
d6a1ead
working?
Aryan0102 Jan 19, 2026
a347932
prettier
Aryan0102 Jan 19, 2026
4ddcd6e
Merge pull request #3877 from Northeastern-Electric-Racing/view-rulesets
Zwendle Jan 19, 2026
f31c415
Merge branch 'feature/rules-dashboard' into #3725-edit-rules-2
Zwendle Jan 19, 2026
dced682
fixed co-pilot recs
Aryan0102 Jan 19, 2026
9acd415
#3725 fixed visual bugs
Zwendle Jan 19, 2026
2d127a9
Merge branch 'feature/rules-dashboard' into 3622-rulesdashboard-parsing
Aryan0102 Jan 19, 2026
4013943
#3725 fixed comment
Zwendle Jan 19, 2026
dc3ece8
Merge branch 'feature/rules-dashboard' into #3658-EditRulesetPage-add…
Zwendle Jan 20, 2026
ac6b6f0
#3658 uncommented delete modal
Zwendle Jan 20, 2026
050cd76
#3658 test fix
Zwendle Jan 20, 2026
82e647e
#3658 cleaned up AddRuleModal
Zwendle Jan 20, 2026
e812220
#3622 fixed RulesetEditPage
Zwendle Jan 20, 2026
3ae3fc0
#3622 lint fix
Zwendle Jan 20, 2026
1b7275c
Merge pull request #3859 from Northeastern-Electric-Racing/#3658-Edit…
Aryan0102 Jan 20, 2026
c19732c
#3622 small fixes from copilot
Zwendle Jan 20, 2026
e133b90
Merge pull request #3898 from Northeastern-Electric-Racing/#3725-edit…
Zwendle Jan 20, 2026
f47272b
quick little hot fix
Zwendle Jan 20, 2026
57650c7
Merge branch 'feature/rules-dashboard' into 3622-rulesdashboard-parsing
Aryan0102 Jan 20, 2026
51f1e46
fixed teams saving
Aryan0102 Jan 20, 2026
9eeef5f
#3901 added add rule section modal
Zwendle Jan 20, 2026
60e257f
#3901 changed placeholder ruleContent
Zwendle Jan 20, 2026
b282f8c
fixed parent references
Aryan0102 Jan 20, 2026
b16737c
#3825 clip percent of rules assigned
Zwendle Jan 20, 2026
710011e
fix prettier and tsc
Aryan0102 Jan 20, 2026
11df9ff
fixed lint
Aryan0102 Jan 20, 2026
23158ca
Merge pull request #3730 from Northeastern-Electric-Racing/3622-rules…
Aryan0102 Jan 20, 2026
2a4b432
Merge pull request #3903 from Northeastern-Electric-Racing/#3825-save…
Aryan0102 Jan 20, 2026
82dcd31
Merge pull request #3904 from Northeastern-Electric-Racing/#3901-add-…
Aryan0102 Jan 20, 2026
3af6834
Merge branch 'feature/rules-dashboard' into #3869-rules-breadcrumbs
Zwendle Jan 20, 2026
05c89d5
fixed team grouping
Aryan0102 Jan 20, 2026
c3ce323
#3869 test fixes
Zwendle Jan 20, 2026
9b82cec
parent rule fix
Aryan0102 Jan 20, 2026
6a97c48
#3869 fixed breadcrumbs
Zwendle Jan 20, 2026
99d046b
Merge pull request #3876 from Northeastern-Electric-Racing/#3869-rule…
Aryan0102 Jan 20, 2026
c4d7a63
Merge pull request #3905 from Northeastern-Electric-Racing/team-view-fix
Aryan0102 Jan 20, 2026
313fcb8
Merge branch 'develop' into feature/rules-dashboard
cielbellerose Jan 24, 2026
e1cffd7
yarn lock fix
cielbellerose Jan 24, 2026
0ed6b31
Merge branch 'develop' into feature/rules-dashboard
Zwendle Feb 1, 2026
ec37011
hopefully this will get tests to run...?
Zwendle Feb 1, 2026
8c03180
Merge branch 'develop' into feature/rules-dashboard
Zwendle Feb 7, 2026
0fafe47
Merge branch 'develop' into feature/rules-dashboard
cielbellerose Jun 15, 2026
b37f0a9
Restore yarn.lock
cielbellerose Jun 16, 2026
d1df37d
#4284 project rules viewable
cielbellerose Jun 18, 2026
410dd85
#4284 remove rule completion reviewing
cielbellerose Jun 23, 2026
467aad5
#4284 rule completion migration
cielbellerose Jun 23, 2026
a7d0563
#4284 add completion dropdown and spacing between project rules
cielbellerose Jun 24, 2026
6b8aa27
#4284 child rule indentation
cielbellerose Jun 24, 2026
a91af46
#4284 update transformer and comments
cielbellerose Jun 24, 2026
1efea50
#4284 update seed data with real rules
cielbellerose Jun 24, 2026
cf26c61
#4284 project rule seed update
cielbellerose Jun 25, 2026
c017f0f
#4284 add active ruleset name and assign rules link
cielbellerose Jun 25, 2026
1b2b7fa
#4284 team highlighted in assign team view + added team name visibility
cielbellerose Jun 25, 2026
01fdb86
#4284 rules can be in multiple projects for the same team
cielbellerose Jun 25, 2026
272d9c3
#4284 combine migrations + fix type casting
cielbellerose Jul 4, 2026
f9719ee
#4284 fix loading and error ordering
cielbellerose Jul 4, 2026
d099db7
#4284 add pdf parser to yarn lock to hopefully fix failing tests
cielbellerose Jul 4, 2026
e6d5de9
#4284 linting and typescript fixes
cielbellerose Jul 4, 2026
669a562
#4284 .js and test fix
cielbellerose Jul 4, 2026
0d35174
Merge pull request #4289 from Northeastern-Electric-Racing/#4284-fix-…
wavehassman Jul 5, 2026
27bbbef
#4303 flip view tabs
cielbellerose Jul 5, 2026
c24dd76
#4303 add project assignment to team view
cielbellerose Jul 5, 2026
127fcca
#4303 fix team assign labels
cielbellerose Jul 5, 2026
d4d0f95
#4303 unassigning rules removes the project rules w/ warning
cielbellerose Jul 6, 2026
79ec781
#4303 fix bug with unassigned then reassigned project rules
cielbellerose Jul 6, 2026
b254a2d
#4303 reassigned rule not showing up bug fix
cielbellerose Jul 6, 2026
292b39c
#4286 moved rule status logic and added to general view
cielbellerose Jul 6, 2026
cf3d880
#4286 team view formatting
cielbellerose Jul 6, 2026
f86a25e
#4286 small fix
cielbellerose Jul 6, 2026
a67132c
Merge pull request #4307 from Northeastern-Electric-Racing/#4286-rule…
wavehassman Jul 6, 2026
c33a84c
#4303 update assign save logic
cielbellerose Jul 7, 2026
aeffe13
#4303 update project rules to support projects with multiple teams
cielbellerose Jul 8, 2026
ae7dd97
Merge branch 'feature/rules-dashboard' into #4303-fix-team-assign-fli…
cielbellerose Jul 8, 2026
0c8aa3e
#4303 update assign rules link to support multiple teams
cielbellerose Jul 8, 2026
732296a
#4280 unified style for rules dashboard button
cielbellerose Jul 8, 2026
462ed77
#4280 standardize footer dividers and button spacing
cielbellerose Jul 8, 2026
29130bf
#4280 remove team label wrapping + whole row clickable for dropdown
cielbellerose Jul 8, 2026
3e207fa
#4303 update rule assignment selection to always have a path to a top…
cielbellerose Jul 8, 2026
8206d70
#4303 update add project rule modal
cielbellerose Jul 8, 2026
adcad88
#4280 order rule codes numerically
cielbellerose Jul 8, 2026
aa354f8
#4303 linting fix
cielbellerose Jul 8, 2026
404db7b
#4280 theme colors + prettier
cielbellerose Jul 9, 2026
1dedecb
#4303 adding unassigned child fix + parent assignment check
cielbellerose Jul 9, 2026
c83e1ea
#4303 fix tests to work with parent team check
cielbellerose Jul 9, 2026
4616c9c
Merge pull request #4305 from Northeastern-Electric-Racing/#4303-fix-…
wavehassman Jul 9, 2026
917c6e4
Merge branch 'feature/rules-dashboard' into #4280-rules-update-view-r…
cielbellerose Jul 9, 2026
692d0c6
#4280 updated button
cielbellerose Jul 10, 2026
1f2e689
#4280 memoize fix + update project rule naming
cielbellerose Jul 10, 2026
677076a
Merge pull request #4313 from Northeastern-Electric-Racing/#4280-rule…
wavehassman Jul 11, 2026
f0c4f88
#4282 add and delete referenced rule endpoints
cielbellerose Jul 11, 2026
173294a
#4282 referenced rules functionality
cielbellerose Jul 11, 2026
cd983e3
#4282 dropdown formatting
cielbellerose Jul 12, 2026
d75b240
Merge branch 'feature/rules-dashboard' into #4282-rules-add-reference…
cielbellerose Jul 12, 2026
ea44a3d
#4282 referenced rule code fetching improved
cielbellerose Jul 14, 2026
34a635b
#4282 shared expansion-scroll logic
cielbellerose Jul 14, 2026
c41da36
#4282 rule tree navigation comments
cielbellerose Jul 14, 2026
d54e7a7
#4282 typescript fix
cielbellerose Jul 14, 2026
95507d4
#4281 move add/delete ruleset type to admin tools
cielbellerose Jul 14, 2026
51bef45
#4282 seed data + tests
cielbellerose Jul 15, 2026
f42cd20
#4282 try catch and test fixes
cielbellerose Jul 15, 2026
89bb33c
#4282 team view rule content bug fix
cielbellerose Jul 16, 2026
dbcf562
#4282 toast logic fix
cielbellerose Jul 16, 2026
1abc259
#4282 add deleted and not found ref rule checks
cielbellerose Jul 17, 2026
9e7eb08
Merge pull request #4324 from Northeastern-Electric-Racing/#4282-rule…
wavehassman Jul 18, 2026
7506736
#4281 lint + moving modals to admin tools
cielbellerose Jul 18, 2026
3154343
#4281 update formatting for add modal and admin table
cielbellerose Jul 18, 2026
e0efa9e
#4281 delete refresh fix
cielbellerose Jul 18, 2026
22ebd90
#4315 rule content can be empty + remove placeholder
cielbellerose Jul 18, 2026
35541f1
#4315 backend rule code editing
cielbellerose Jul 19, 2026
0634d20
#4315 add tests
cielbellerose Jul 19, 2026
4c72069
#4315 edit rule code frontend and warn modal
cielbellerose Jul 19, 2026
5305a98
#4315 add rule prefilled code
cielbellerose Jul 19, 2026
c06202a
#4315 ensure assign page updates on rule edits
cielbellerose Jul 19, 2026
5cf4180
#4315 empty rule code catch
cielbellerose Jul 19, 2026
e15fa42
#4315 trim before checking duplicate rule code
cielbellerose Jul 19, 2026
dec63b8
#4315 shared duplicate rule code logic
cielbellerose Jul 20, 2026
784d1b1
#4315 toast fix and warn modal fix
cielbellerose Jul 20, 2026
c09c426
#4315 ref rule display fix
cielbellerose Jul 20, 2026
5ee0c11
#4315 fix assignment bug
cielbellerose Jul 20, 2026
2d3721a
#4281 ruleset type table fixes
cielbellerose Jul 20, 2026
78f53c5
#4281 hook invalidate query update
cielbellerose Jul 21, 2026
4b9eb29
#4315 added test + refresh fixes
cielbellerose Jul 21, 2026
6a15a24
#4283 add image dropdown and modal
cielbellerose Jul 21, 2026
3458b51
#4283 image upload
cielbellerose Jul 21, 2026
bbf904a
#4283 image preview
cielbellerose Jul 21, 2026
fe706e4
#4283 toast msg fix
cielbellerose Jul 21, 2026
e73cb83
#4283 removing images
cielbellerose Jul 21, 2026
fcbe2ad
#4283 move toast logic to hook
cielbellerose Jul 21, 2026
689ea67
Merge pull request #4329 from Northeastern-Electric-Racing/#4281-rule…
wavehassman Jul 22, 2026
43eebd6
Merge pull request #4334 from Northeastern-Electric-Racing/#4315-edit…
wavehassman Jul 22, 2026
182c4fc
#4316 expand and collapse logic + button
cielbellerose Jul 22, 2026
ff4faf0
#4316 move button logic up to view page
cielbellerose Jul 23, 2026
4de37dc
#4316 move team logic to util
cielbellerose Jul 23, 2026
7573b8c
Merge branch 'develop' into feature/rules-dashboard
cielbellerose Jul 23, 2026
7edfedc
yarn.lock fix
cielbellerose Jul 23, 2026
e948998
Merge branch 'feature/rules-dashboard' into #4283-rule-images
cielbellerose Jul 23, 2026
a518a4f
#4283 use get image urls updates
cielbellerose Jul 23, 2026
6b29ea1
#4283 image type check
cielbellerose Jul 23, 2026
de0e815
Merge branch 'feature/rules-dashboard' into #4316-expand-all-rules
cielbellerose Jul 23, 2026
21f0887
Merge pull request #4341 from Northeastern-Electric-Racing/#4283-rule…
wavehassman Jul 24, 2026
74a4f63
Merge branch 'feature/rules-dashboard' into #4316-expand-all-rules
cielbellerose Jul 24, 2026
e5fcc49
#4316 expand/collapse for edit view
cielbellerose Jul 24, 2026
5e046de
#4316 project rules view expand button
cielbellerose Jul 24, 2026
21c9f07
#4317 add car field to getRulesetsByRulesetType
cielbellerose Jul 24, 2026
68d1d4e
#4317 one active ruleset per car
cielbellerose Jul 25, 2026
ec15284
Merge pull request #4350 from Northeastern-Electric-Racing/#4316-expa…
wavehassman Jul 26, 2026
851c14f
#4317 added car active ruleset tests
cielbellerose Jul 30, 2026
31abbc6
Merge branch 'feature/rules-dashboard' into #4317-rules-car-filtering
cielbellerose Jul 30, 2026
2801c7b
#4317 test for double car active fail
cielbellerose Jul 30, 2026
c5f62ff
#4317 linting
cielbellerose Jul 30, 2026
2ac6b69
Merge pull request #4358 from Northeastern-Electric-Racing/#4317-rule…
wavehassman Jul 31, 2026
82476b5
#4291 move toc detection to first page user input
cielbellerose Aug 4, 2026
431b84b
#4291 footer text matching as user input
cielbellerose Aug 4, 2026
a199542
#4291 multiple excluded phrases w/ new line
cielbellerose Aug 4, 2026
910436a
#4291 cleaned up excluded phrases stripping logic
cielbellerose Aug 4, 2026
8df873a
#4291 codes with content on new line fix
cielbellerose Aug 4, 2026
28983c9
#4291 ensure no real rule content is dropped
cielbellerose Aug 4, 2026
07fdddf
#4291 subrule parsing fix
cielbellerose Aug 5, 2026
eb57b35
#4291 parsing test coverage and FHE subrule fix
cielbellerose Aug 5, 2026
7fbcb4d
#4291 combine duplicate logic and exclude page number fix
cielbellerose Aug 5, 2026
35f541a
#4352 fetch top level rules, only subrules on dropdown click
cielbellerose Aug 5, 2026
ea9520e
#4352 edit view faster loading
cielbellerose Aug 5, 2026
db1a1a8
#4352 updated assign for top level loading
cielbellerose Aug 5, 2026
4220238
#4352 loading symbol for expand all
cielbellerose Aug 5, 2026
d079b0e
#4352 get all rules endpoint
cielbellerose Aug 6, 2026
8e4bdd5
#4352 remove unused code
cielbellerose Aug 6, 2026
8e04cc3
#4352 remove duplicate ruleset endpoint
cielbellerose Aug 6, 2026
7112d84
#4352 unused endpoints
cielbellerose Aug 10, 2026
d76562a
#4352 ruleset type # updates for car selection
cielbellerose Aug 10, 2026
3d6a17b
#4352 prettier
cielbellerose Aug 10, 2026
07c532c
#4352 add getAllRulesForRuleset tests
cielbellerose Aug 10, 2026
4ef7e08
#4291 FHE subrules logic update
cielbellerose Aug 11, 2026
9721041
#4371 increase image size
cielbellerose Aug 11, 2026
a011852
#4371 add images to team view
cielbellerose Aug 11, 2026
d32c6bb
Merge pull request #4367 from Northeastern-Electric-Racing/#4352-rule…
wavehassman Aug 11, 2026
4d24014
#4370 updated statuses schema, project status endpoint, and history m…
cielbellerose Aug 12, 2026
6492f4c
Merge branch 'feature/rules-dashboard' into #4370-rules-checklists
cielbellerose Aug 12, 2026
cc40f81
#4371 updated comment
cielbellerose Aug 12, 2026
c259c6a
Merge branch 'feature/rules-dashboard' into #4371-rules-increase-imag…
cielbellerose Aug 12, 2026
7516c7f
Merge pull request #4372 from Northeastern-Electric-Racing/#4371-rule…
wavehassman Aug 12, 2026
e8f6419
#4370 get descendant rule undefined fix
cielbellerose Aug 13, 2026
553a8bb
#4370 seed data fix for car filtering
cielbellerose Aug 13, 2026
59dbed1
#4370 status history many to many
cielbellerose Aug 13, 2026
396fd56
#4370 refresh fix
cielbellerose Aug 13, 2026
0b88826
#4370 reset functionality
cielbellerose Aug 15, 2026
04095e7
#4291 subrule logic update
cielbellerose Aug 16, 2026
d7c5b9d
Merge pull request #4365 from Northeastern-Electric-Racing/#4291-rule…
wavehassman Aug 16, 2026
979f0b0
#4370 new parent status calculation logic
cielbellerose Aug 18, 2026
f3d7a74
#4370 prettier and test fixes
cielbellerose Aug 18, 2026
52480d0
#4384 remove rules tab from guest view
cielbellerose Aug 18, 2026
aca2c0a
#4384 remove unprivileged UI for members
cielbellerose Aug 18, 2026
47b4adc
#4384 lead + head can delete rulesets they created
cielbellerose Aug 18, 2026
3ecc4c7
#4384 members update project rule status if in project team
cielbellerose Aug 18, 2026
6c94883
Merge branch '#4370-rules-checklists' into #4384-rules-permission-fixes
cielbellerose Aug 18, 2026
9f91721
#4384 reset button permissions
cielbellerose Aug 19, 2026
befd28c
#4384 reset status gen view + delete ruleset removed for members
cielbellerose Aug 19, 2026
9de41f0
#4370 status logic updates + tests
cielbellerose Aug 21, 2026
3209591
Merge branch '#4370-rules-checklists' into #4384-rules-permission-fixes
cielbellerose Aug 22, 2026
5cbad8e
#4370 backend checks for updating status
cielbellerose Aug 23, 2026
ba93950
Merge branch '#4370-rules-checklists' into #4384-rules-permission-fixes
cielbellerose Aug 23, 2026
869cc4a
#4384 test ts fix
cielbellerose Aug 23, 2026
cec3abe
#4384 test fix
cielbellerose Aug 23, 2026
a88f0c4
Merge pull request #4377 from Northeastern-Electric-Racing/#4370-rule…
wavehassman Aug 23, 2026
bbea208
Merge branch 'feature/rules-dashboard' into #4384-rules-permission-fixes
cielbellerose Aug 24, 2026
a95136a
#4384 leads + heads can edit
cielbellerose Aug 24, 2026
afc212b
#4384 heads can reset in gen view
cielbellerose Aug 24, 2026
ed67147
#4384 create ruleset type perm fix
cielbellerose Aug 26, 2026
2d416ab
#4384 disabled ruleset delete icon and tooltip
cielbellerose Aug 26, 2026
05797ff
#4384 disable ruleset active button for leads and members
cielbellerose Aug 26, 2026
8751ea5
Merge branch 'develop' into feature/rules-dashboard
cielbellerose Aug 26, 2026
26213f4
Merge pull request #4385 from Northeastern-Electric-Racing/#4384-rule…
wavehassman Aug 26, 2026
23c1baa
#3509 seed data fix
cielbellerose Aug 26, 2026
1ef4918
#4399 rule status single click (#4400)
cielbellerose Sep 6, 2026
f8784d8
#4393 rules delete project rules (#4395)
cielbellerose Sep 8, 2026
f649e0e
#4402 rules load only viewed rules (#4457)
cielbellerose Sep 14, 2026
7687b66
#4508 Add selectedEventType zoomLink check (#4510)
Santiordon Sep 14, 2026
e4b72d0
#4408-schema-changes (#4456)
Steph375 Sep 15, 2026
f213048
#4458 executive summary schema changes (#4461)
staysgt Sep 15, 2026
c98e937
auth fix for new members (#4518)
chpy04 Sep 16, 2026
3d2cb2a
#4437 Wrap-up changes (#4525)
Santiordon Sep 20, 2026
4f4789c
#4529 rules formatting fixes (#4530)
cielbellerose Sep 22, 2026
4ad811f
#4535: Added my name to the credits page (#4539)
kidusdesalegn05 Sep 25, 2026
3d3c6ce
api slack send endpoint (#4544)
chpy04 Sep 26, 2026
a0084fb
#4464 rules editing page inline (#4515)
cielbellerose Sep 28, 2026
76473f9
add await (#4556)
wavehassman Sep 30, 2026
3b8d807
Slack notif in project #4374 (#4542)
deepikarul Sep 30, 2026
05d49f1
#4545 rules full rule row clickable (#4553)
cielbellerose Sep 30, 2026
8b93d57
#4320 Add attendance data graph types to statistics tab (#4389)
RemainingDelta Sep 30, 2026
944f19b
Merge branch 'develop' into feature/rules-dashboard
cielbellerose Sep 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import statisticsRouter from './src/routes/statistics.routes.js';
import retrospectiveRouter from './src/routes/retrospective.routes.js';
import partsRouter from './src/routes/parts.routes.js';
import financeRouter from './src/routes/finance.routes.js';
import rulesRouter from './src/routes/rules.routes.js';
import calendarRouter from './src/routes/calendar.routes.js';
import prospectiveSponsorRouter from './src/routes/prospective-sponsor.routes.js';
import attendanceRouter from './src/routes/attendance.routes.js';
Expand Down Expand Up @@ -136,6 +137,7 @@ app.use('/statistics', statisticsRouter);
app.use('/retrospective', retrospectiveRouter);
app.use('/parts', partsRouter);
app.use('/finance', financeRouter);
app.use('/rules', rulesRouter);
app.use('/calendar', calendarRouter);
app.use('/prospective-sponsors', prospectiveSponsorRouter);
app.use('/attendance', attendanceRouter);
Expand Down
1 change: 1 addition & 0 deletions src/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"multer": "^1.4.5-lts.1",
"node-ical": "^0.26.1",
"nodemailer": "^6.9.1",
"pdf-parse-new": "^1.4.1",
"prisma": "^6.2.1",
"shared": "1.0.0",
"twisters": "^1.1.0",
Expand Down
17 changes: 17 additions & 0 deletions src/backend/src/controllers/agent.controllers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NextFunction, Request, Response } from 'express';
import { getRoleInOrganization } from '../utils/mcp-auth.utils.js';
import McpService from '../services/mcp.services.js';
import SlackServices from '../services/slack.services.js';

export default class AgentController {
/**
Expand Down Expand Up @@ -86,4 +87,20 @@ export default class AgentController {
next(error);
}
}

static async sendSlackMessage(req: Request, res: Response, next: NextFunction) {
try {
const { channelId, message } = req.body;
const sentMessage = await SlackServices.sendMessageToChannel(
req.currentUser.userId,
req.organization,
channelId,
message
);

res.status(200).json(sentMessage);
} catch (error: unknown) {
next(error);
}
}
}
Loading
Loading