Skip to content

Fixed Dark Mode and Added Delete modal#52

Merged
ujsquared merged 4 commits into
p-society:mainfrom
burgerphilic18:frontend-fixes
May 27, 2026
Merged

Fixed Dark Mode and Added Delete modal#52
ujsquared merged 4 commits into
p-society:mainfrom
burgerphilic18:frontend-fixes

Conversation

@burgerphilic18

Copy link
Copy Markdown
Contributor

No description provided.

burgerphilic18 and others added 4 commits May 10, 2026 15:39
Signed-off-by: Spandan Hota <spandanhota2005@outlook.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Spandan Hota <spandanhota2005@outlook.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a comprehensive theming system by replacing hardcoded colors with CSS variables across the landing page and forum components, supporting multiple color themes and dark mode. It introduces a new DeleteConfirmationModal component for safer deletions of posts and threads and adds URL auto-linking to the markdown renderer. Additionally, various responsive design improvements and CSS transitions were added. A suggestion was made to refine the URL regex in the markdown component to avoid capturing trailing punctuation.

}

const mentionRegex = /(^|[^a-zA-Z0-9_])@([a-zA-Z0-9_]{3,32})/g;
const urlRegex = /(https?:\/\/[^\s<>"\)]+)/g;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The current urlRegex captures trailing punctuation like periods or commas at the end of a sentence (e.g., in Check this: https://google.com.). Consider using a regex that ensures the URL does not end with common punctuation marks unless they are followed by more URL characters.

Suggested change
const urlRegex = /(https?:\/\/[^\s<>"\)]+)/g;
const urlRegex = /(https?:\/\/[^\s<>"\)]+[^.,!:;?\s])/g;

@ujsquared

Copy link
Copy Markdown
Contributor

Sorry for the delay! Buzz deserves better maintainers 😢

@ujsquared
ujsquared merged commit 1db6713 into p-society:main May 27, 2026
0 of 2 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.

2 participants