Skip to content

feat(reaction-roles): editable form, emoji picker, formatting, media, export/import - #1544

Merged
LucasSantana-Dev merged 15 commits into
mainfrom
feat/reaction-roles-form-overhaul
Jun 23, 2026
Merged

LucasSantana-Dev merged 15 commits into
mainfrom
feat/reaction-roles-form-overhaul

fix(reaction-roles): inline snowflake guards at discord request sinks

6ef5286
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 23, 2026 in 47s

Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 26 in packages/frontend/src/components/ui/FormattingToolbar.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOq-o_c5dRqGtzk&open=AZ70kAOq-o_c5dRqGtzk&pullRequest=1544

Check failure on line 88 in packages/frontend/src/utils/reactionRolesExport.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 25 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPu-o_c5dRqGtzx&open=AZ70kAPu-o_c5dRqGtzx&pullRequest=1544

Check failure on line 153 in packages/backend/src/routes/roles.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70pJEjXFDWlQGU5egM&open=AZ70pJEjXFDWlQGU5egM&pullRequest=1544

Check failure on line 856 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of the "void" operator.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzw&open=AZ70kAPU-o_c5dRqGtzw&pullRequest=1544

Check warning on line 310 in packages/frontend/src/components/ui/EmojiPicker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOx-o_c5dRqGtzm&open=AZ70kAOx-o_c5dRqGtzm&pullRequest=1544

Check warning on line 51 in packages/frontend/src/components/reactionRoles/ImportDialog.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Blob#text()` over `FileReader#readAsText(blob)`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAO5-o_c5dRqGtzo&open=AZ70kAO5-o_c5dRqGtzo&pullRequest=1544

Check warning on line 30 in packages/frontend/src/components/reactionRoles/ImportDialog.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAO5-o_c5dRqGtzn&open=AZ70kAO5-o_c5dRqGtzn&pullRequest=1544

Check warning on line 769 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzu&open=AZ70kAPU-o_c5dRqGtzu&pullRequest=1544

Check warning on line 173 in packages/backend/src/routes/roles.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAFl-o_c5dRqGtzf&open=AZ70kAFl-o_c5dRqGtzf&pullRequest=1544

Check warning on line 252 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzq&open=AZ70kAPU-o_c5dRqGtzq&pullRequest=1544

Check warning on line 34 in packages/frontend/src/components/ui/AutoGrowTextarea.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOj-o_c5dRqGtzj&open=AZ70kAOj-o_c5dRqGtzj&pullRequest=1544

Check warning on line 33 in packages/frontend/src/components/ui/AutoGrowTextarea.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.parseFloat` over `parseFloat`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOj-o_c5dRqGtzi&open=AZ70kAOj-o_c5dRqGtzi&pullRequest=1544

Check warning on line 146 in packages/frontend/src/components/reactionRoles/ImportDialog.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAO5-o_c5dRqGtzp&open=AZ70kAO5-o_c5dRqGtzp&pullRequest=1544

Check warning on line 851 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzv&open=AZ70kAPU-o_c5dRqGtzv&pullRequest=1544

Check warning on line 104 in packages/backend/src/routes/roles.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAFl-o_c5dRqGtze&open=AZ70kAFl-o_c5dRqGtze&pullRequest=1544

Check warning on line 466 in packages/shared/src/services/ReactionRolesService/index.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOb-o_c5dRqGtzh&open=AZ70kAOb-o_c5dRqGtzh&pullRequest=1544

Check failure on line 400 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzr&open=AZ70kAPU-o_c5dRqGtzr&pullRequest=1544

Check warning on line 471 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzs&open=AZ70kAPU-o_c5dRqGtzs&pullRequest=1544

Check warning on line 42 in packages/shared/src/services/ReactionRolesService/index.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this union type with a type alias.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOb-o_c5dRqGtzg&open=AZ70kAOb-o_c5dRqGtzg&pullRequest=1544

Check warning on line 766 in packages/frontend/src/pages/ReactionRoles.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAPU-o_c5dRqGtzt&open=AZ70kAPU-o_c5dRqGtzt&pullRequest=1544

Check warning on line 23 in packages/backend/src/routes/roles.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make sure the content length limit is safe here.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAFl-o_c5dRqGtzd&open=AZ70kAFl-o_c5dRqGtzd&pullRequest=1544

Check warning on line 131 in packages/frontend/src/components/ui/EmojiPicker.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=LucasSantana-Dev_Lucky&issues=AZ70kAOx-o_c5dRqGtzl&open=AZ70kAOx-o_c5dRqGtzl&pullRequest=1544