summaryrefslogtreecommitdiff
path: root/shrine/controllers
AgeCommit message (Collapse)AuthorFilesLines
2026-03-13feat: add letters feature with detail view and listingHEADmainBobby1-1/+4
- Introduced new routes for letters and their details. - Created pages for displaying letter details and listing letters. - Added new types for letters, including participants, messages, and attachments. - Implemented API calls for fetching letters and managing messages (reply, edit, delete). - Enhanced stats to include unread letters and pending districts for staff users. - Updated styles for letters and their components. - Added privacy settings for letters (public and friends). - Modified user model to include letter privacy settings. - Improved error handling and user feedback in the UI.
2026-03-10feat(districts): add district management functionalityBobby1-0/+98
- Introduced new types and interfaces for districts, sites, and citizen summaries. - Implemented district image and icon utilities. - Created controllers for listing districts, submitting sites, and managing site requests. - Added enums for district slugs and site statuses. - Developed services for district site management, including submission, review, and editing. - Implemented thumbnail generation for district sites. - Established repository methods for district site CRUD operations. - Created router paths for district-related endpoints. - Added messages for error handling in district operations. - Enhanced models to support district site features. - Implemented pagination and search functionalities for district site listings.
2026-03-10feat: implement date and month-day pickers, enhance user warning logging, ↵Bobby2-2/+58
and add IP ban management - Added DatePicker and MonthDayPicker components for improved date selection in the UI. - Introduced MiniEditor component for rich text editing capabilities. - Enhanced warning logging in the warning service with detailed messages. - Removed unused RegistrationIP field from AdminUserResponse. - Improved error handling in various utility functions with descriptive messages. - Implemented IP ban management with models, repositories, and a new council page for viewing and lifting bans. - Added validation for jade amounts with a dedicated validator. - Created CSS styles for date pickers to ensure consistent UI presentation.
2026-03-07feat: add modal component and styles, implement config APIBobby1-0/+12
- Created a new Modal component in Solid.js with backdrop handling. - Added modal styles for backdrop, content, header, and body. - Introduced editor styles for a rich text editor interface. - Implemented a new config controller and service in Go to fetch configuration settings. - Defined a ConfigResponse type for structured API responses. - Set up routing for the config endpoint in the Go application.
2026-03-07feat(council): implement user sorting functionality and enhance user list ↵Bobby1-1/+4
display
2026-03-07feat: Implement letter service with CRUD operations and message handlingBobby8-329/+520
- Added letter service to manage letters, including listing, creating, and editing letters and messages. - Implemented functionality for sending and receiving messages within letters. - Introduced pagination for letter listings and message retrieval. - Added attachment upload capabilities for letters. - Created detailed responses for letter and message retrieval. feat: Introduce stats service for user statistics - Added a service to retrieve user statistics, including newest and online citizens. feat: Create ticket service for user support tickets - Implemented ticket management service with functionalities to create, reply, and update tickets. - Added support for ticket categories and their management. feat: Add verification service for user account verification - Implemented functionality to send verification emails for account activation. feat: Develop warning service for user warnings - Added service to issue warnings to users, deactivate warnings, and list user warnings. feat: Create email templates for account status notifications - Added HTML templates for account ban and disable notifications. feat: Define request and response types for account, ticket, letter, and warning services - Created structured request and response types for various services to ensure consistent data handling. feat: Implement utility functions for authentication and sanitization - Added functions for validating user hierarchy and sanitizing HTML input. - Implemented token generation and hashing utilities for secure operations.
2026-03-06feat(council): add user management features including role changes, banning, ↵Bobby1-0/+189
and disabling users - Updated user roles to include 'Owner'. - Enhanced layout to show council options for Owners. - Implemented user listing and detail views for council members. - Added pagination and search functionality for user management. - Created API endpoints for banning, unbanning, disabling, and enabling users. - Introduced new request and response types for user actions. - Added styles for council user management interface.
2026-03-06feat: implement user statistics and heartbeat functionality with UI updatesBobby3-0/+38
2026-03-05feat: enhance user feedback with specific error messages for registration ↵Bobby1-0/+7
and validation
2026-03-05feat: add resend activation functionality and update verification processBobby1-2/+44
2026-03-05feat: add email verification functionality with SMTP supportBobby1-13/+58
2026-03-03feat: implement user authentication and registration with token supportBobby3-17/+97
2026-03-03feat: Implement middleware for HTTP logging and request contextBobby2-0/+61
- Added httpLogger middleware to log HTTP requests with status, method, IP, and duration. - Introduced request middleware to build and store request context. - Created a centralized middleware initialization function. - Enhanced logging functionality with different log levels based on HTTP status codes. feat: Set up routing with error handling - Established a router package to manage application routes. - Implemented a custom error handler to respond with appropriate error messages. - Added sample route for a hello endpoint with authentication requirement. feat: Introduce utility functions for environment variable management - Developed functions to retrieve and parse environment variables with default values. - Implemented a parser to populate configuration structs from environment variables. feat: Create structured logging with zap - Integrated zap logger for structured logging with customizable log levels and formats. - Added color-coded log messages for better visibility in the console. feat: Build request metadata utilities - Created utilities to build and manage request metadata, including query parameters, headers, and route parameters. - Implemented a facade pattern for easier access to request data. feat: Enhance URL management with namespaces - Developed a URL management system to handle route registration with namespaces. - Added functionality to retrieve full paths for registered routes. chore: Initialize database and application structure - Set up initial application structure with main entry point and middleware integration. - Created a database connection handler for graceful shutdown.