Add captainhotel file#7
Open
Nisheeka1604 wants to merge 1 commit into
Open
Conversation
7f1d429 to
747fe7c
Compare
GaneshAdimalupu
suggested changes
Mar 5, 2026
Member
There was a problem hiding this comment.
- Sanitize all user input before injecting into HTML (critical)
- Add Escape key listener to close the modal
- Seed generateMiniBooks / generateShelfBooks from roomId for stable room appearance
- Consider at minimum sessionStorage for guest state persistence
The file is well-written and clearly built with care — the XSS issue is the only blocker for merging.
Member
|
@Nisheeka1604 Can you tell me why do we have at the root level ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chore: Monorepo setup, lint, format, and pre-commit hooks
Summary
Adds a proper monorepo layout and developer tooling for FOSS Hack 2026.
Changes
Monorepo
/healthand CORSUser,NowPage)Code quality
next lintin apps/webeslint --fixandprettier --writeon staged files onlyCI
main: install, lint, format checkDocs & config
docs/getting-started.md— install, run API + web, env, scriptsdocs/contributing.md— dev setup, lint/format, PR guidelinesCONTRIBUTING.md— points to docs.env.example— PORT, DATABASE_URL, JWT_SECRET, NEXT_PUBLIC_API_URLHow to test
Run
npm run lintandnpm run format:checkat root to verify CI.Checklist