f7133807fc
Remove untestable unit tests for PasswordChangeForm and update comment annotations
Felipe Cardoso2025-11-03 00:18:19 +01:00
388ca08724
Add unit tests for settings components and session hooks
Felipe Cardoso2025-11-03 00:12:59 +01:00
54a14047be
Enhance auth flows and improve e2e test reliability
Felipe Cardoso2025-11-03 00:02:27 +01:00
65f209c679
Add forms for profile and password settings; improve tests for settings pages
Felipe Cardoso2025-11-02 23:24:29 +01:00
64a4b3fb11
Improve login form validation and enhance e2e test reliability
Felipe Cardoso2025-11-02 23:23:49 +01:00
1c7f34c078
Mark Phase 3 as complete: performance optimized, achieved Lighthouse 100%, 98.63% test coverage, fixed token refresh race condition, and conditionalized production logs. Updated documentation for Phase 4 readiness.
Felipe Cardoso2025-11-02 23:04:43 +01:00
fe5d152cee
Add conditional logging for development, improve token refresh logic, and remove outdated comments
Felipe Cardoso2025-11-02 22:59:34 +01:00
15f522b9b1
Improve e2e tests for Login and Register forms
Felipe Cardoso2025-11-02 20:16:24 +01:00
fded54e61a
Add comprehensive tests for authentication, settings, and password reset pages
Felipe Cardoso2025-11-02 17:33:57 +01:00
77594e478d
Add tests for ThemeProvider and authStore behavior refinements
Felipe Cardoso2025-11-02 17:23:58 +01:00
ac3fac0426
Add tests for useFormError hook and FormField component
Felipe Cardoso2025-11-02 17:14:12 +01:00
0e554ef35e
Add tests for AuthGuard, Skeleton components, and AdminPageFelipe Cardoso2025-11-02 17:07:15 +01:00
aedc770afb
Update Lighthouse report for /settings/profile and fix runtime errors
Felipe Cardoso2025-11-02 16:59:36 +01:00
54c32bf97f
Introduce AuthLoadingSkeleton and HeaderSkeleton for smoother loading, replace spinner in AuthGuard, update ReactQueryDevtools toggle, enable Docker ports for local development.
Felipe Cardoso2025-11-02 16:56:23 +01:00
1b9854d412
Performance optimizations: Bundle size reduction
Felipe Cardoso2025-11-02 16:16:13 +01:00
911d4a594e
Introduce DevBreadcrumbs component for navigation and replace headers in /dev pages with breadcrumb navigation. Adjust spacing for consistent layout.
Felipe Cardoso2025-11-02 16:07:39 +01:00
86d8e1cace
Remove analysis documents (ANALYSIS_SUMMARY.md, COMPONENT_IMPLEMENTATION_GUIDE.md, DEV_PAGES_QUICK_REFERENCE.md) for /dev/ pages refactor. Content has been fully implemented in codebase.
Felipe Cardoso2025-11-02 16:07:12 +01:00
2c05f17ec5
Fix authStore tests after reverting persist middleware
Felipe Cardoso2025-11-02 14:54:00 +01:00
68e28e4c76
Revert Zustand persist middleware approach and restore AuthInitializer
Felipe Cardoso2025-11-02 14:52:12 +01:00
6d1b730ae7
Add _hasHydrated flag to authStore and update AuthGuard to wait for store hydration, ensuring stability during loading phases in tests and app.
Felipe Cardoso2025-11-02 14:16:56 +01:00
29f98f059b
**Add comprehensive backend documentation for FastAPI setup, configuration, and architecture**
Felipe Cardoso2025-11-02 14:11:34 +01:00
b181182c3b
**Authentication Refactor:** Remove authStore and its associated tests, transitioning to the new authentication model. Add dynamic loading for PasswordResetConfirmForm to optimize performance. Include a theme initialization script in layout.tsx to prevent FOUC.
Felipe Cardoso2025-11-02 14:00:05 +01:00
92b7de352c
**Docs and Code Enhancements:** Add CodeBlock component with copy functionality and syntax highlighting. Introduce /docs page as the central hub for design system documentation. Update MarkdownContent to support improved heading styles, enhanced links, optimized images with Next.js Image, and upgraded table, blockquote, and list styling for better readability and usability.
Felipe Cardoso2025-11-02 13:47:26 +01:00
aff76e3a69
Update implementation plan to reflect Phase 2.5 completion, documenting design system integration, UI consistency, and enhanced test coverage (97.57%).
Felipe Cardoso2025-11-02 13:34:50 +01:00
13771c5354
**Design System Enhancements:** Replace .md links with clean paths in /dev documentation. Migrate anchor tags (<a>) to Next.js <Link> components for internal navigation. Add dynamic [...slug] markdown route for rendering docs. Introduce MarkdownContent for styled markdown rendering with syntax highlighting. Perform general cleanup of unused imports and variables in design system files. Fix minor wording issues.
Felipe Cardoso2025-11-02 13:33:47 +01:00
c3c6a18dd1
**Test Documentation Update:** Simplify test coverage description and clarify security-focused testing features, including CVE-2015-9235 prevention, session hijacking, and privilege escalation.
Felipe Cardoso2025-11-02 13:28:49 +01:00
68e7ebc4e0
- **Middleware & Security Enhancements:** Add request size limit middleware to prevent DoS attacks via large payloads (10MB max). - **Authentication Refactor:** Introduce _create_login_session utility to streamline session creation for login and OAuth flows. - **Configurations:** Dynamically set app name in PostgreSQL connection (application_name) and adjust token expiration settings (expires_in) based on system configuration.
Felipe Cardoso2025-11-02 13:25:53 +01:00
df299e3e45
Add pointer cursor style for interactive elements and exception for disabled states
Felipe Cardoso2025-11-02 13:21:57 +01:00
8e497770c9
Add Dev Hub for interactive design system demos and /dev/forms with validation examples
Felipe Cardoso2025-11-02 13:21:53 +01:00
58b761106b
Add reusable Example, ExampleGrid, and ExampleSection components for live UI demonstrations with code previews. Refactor ComponentShowcase to use new components, improving structure, maintainability, and documentation coverage. Include semantic updates to labels and descriptions.
Felipe Cardoso2025-11-02 13:21:25 +01:00
e734acf31d
**Design System Documentation:** Add comprehensive project progress documentation summarizing Phase 1 completion, including created files, cleanup, and review results. Outline Phase 2 interactive demo plans and next steps. Reflect structure, content philosophy, and AI optimization guidelines.
Felipe Cardoso2025-11-02 12:42:42 +01:00
76d36e1b12
- **Authentication & Lifespan Updates:** Add @asynccontextmanager for application lifecycle management, including startup/shutdown handling and daily session cleanup scheduling. Reduce token expiration from 24 hours to 15 minutes for enhanced security. Streamline superuser field validation via schema, removing redundant defensive checks.
Felipe Cardoso2025-11-02 12:38:09 +01:00
6d9b98943c
Update documentation and tests for coverage, email integration, and authentication
Felipe Cardoso2025-11-02 12:32:08 +01:00
30cbaf8ad5
Add documentation for component creation and design system structure
Felipe Cardoso2025-11-02 12:32:01 +01:00
13f830ed6d
Remove E2E tests for authenticated navigation and theme toggle
Felipe Cardoso2025-11-02 12:30:57 +01:00
c051bbf0aa
Add security tests for configurations, permissions, and authentication
Felipe Cardoso2025-11-02 11:55:58 +01:00
b39b7b4c94
Add E2E tests for authenticated navigation and theme toggle
Felipe Cardoso2025-11-02 07:56:31 +01:00
9f88736d13
Add comprehensive tests for schemas, validators, and exception handlers
Felipe Cardoso2025-11-02 07:56:23 +01:00
ccd535cf0e
Add # pragma: no cover to defensive code sections in validators and CRUD operations
Felipe Cardoso2025-11-02 07:42:24 +01:00
30dca45097
Increase Jest coverage thresholds to enforce higher test quality
Felipe Cardoso2025-11-02 07:35:50 +01:00
a460e0e4f2
Add unit tests for core components and layouts
Felipe Cardoso2025-11-02 07:35:45 +01:00
08511ae07b
Add comprehensive tests for database utilities and operations
Felipe Cardoso2025-11-02 07:00:35 +01:00
1439380126
Add Component Showcase and development preview page
Felipe Cardoso2025-11-02 06:58:27 +01:00
378b04d505
Update semantic color tokens across components for improved consistency
Felipe Cardoso2025-11-02 06:55:18 +01:00
af260e4748
Add theme toggle with light, dark, and system support
Felipe Cardoso2025-11-02 06:53:46 +01:00
30f0ec5a64
Document initial design system guidelines and implementation details
Felipe Cardoso2025-11-02 06:49:43 +01:00
04110cbf1c
Refactor Tailwind CSS setup and introduce OKLCH-based design system
Felipe Cardoso2025-11-02 06:49:34 +01:00
461d3caf31
Add comprehensive tests for security headers, permissions, CRUD operations, and organizations
Felipe Cardoso2025-11-02 06:10:04 +01:00
789a76071d
Refactor auth store tests to use createMockUser helper for improved readability and reusability
Felipe Cardoso2025-11-02 05:59:30 +01:00
4536c607eb
Add settings layout and page structure for authenticated routes
Felipe Cardoso2025-11-02 05:59:20 +01:00
bf04c98408
Add Header and Footer components for authenticated page layouts.
Felipe Cardoso2025-11-02 05:59:08 +01:00
4885df80a7
Integrate AuthInitializer component to restore authentication state on app load and enhance User type to align with OpenAPI spec.
Felipe Cardoso2025-11-02 05:59:00 +01:00
29ff97f726
Suppress non-essential console output in tests unless VERBOSE=true; adjust Playwright config to respect verbosity settings and use appropriate reporter.
Felipe Cardoso2025-11-02 05:41:16 +01:00
406c3bcc82
Update coverage report with resolved tracking issue and 88% overall coverage
Felipe Cardoso2025-11-02 05:27:24 +01:00
1aab73cb72
Adjust .coveragerc to support concurrency options and skip test environment checks
Felipe Cardoso2025-11-02 05:27:13 +01:00
f77f2700f2
Simplify token response in authentication route by returning the entire Token object instead of manually formatting a subset.
Felipe Cardoso2025-11-02 04:53:09 +01:00
f354ec610b
Add clean-slate target to Makefile for removing containers and volumes
Felipe Cardoso2025-11-02 04:36:35 +01:00
e25b010b57
Include user information and token expiration in authentication responses
Felipe Cardoso2025-11-02 04:36:29 +01:00
0b0d1d2b06
Update POSTGRES_DB value in .env.template to use a lowercase name
Felipe Cardoso2025-11-02 04:11:59 +01:00
bc53504cbf
Remove redundant /api/v1 suffix from API URL configuration and update related test
Felipe Cardoso2025-11-02 04:11:41 +01:00
d75a8de91b
Add validation to prevent privilege escalation via is_superuser field and enhance related tests
Felipe Cardoso
2025-11-01 16:15:03 +01:00
a82e5ea0e6
Add extensive tests for user, admin, and organization API endpoints
Felipe Cardoso
2025-11-01 15:59:29 +01:00
189ad948ac
Mark dead code in users API related to is_superuser checks with # pragma: no cover
Felipe Cardoso
2025-11-01 15:54:58 +01:00
e2a8656f81
Improve navigation and URL validation in Playwright authentication tests
Felipe Cardoso
2025-11-01 15:49:28 +01:00
ce5ed70dd2
Adjust Playwright authentication tests for Firefox compatibility
Felipe Cardoso
2025-11-01 14:31:10 +01:00
230210f3db
Add comprehensive tests for user API endpoints
Felipe Cardoso
2025-11-01 14:31:03 +01:00
a9e972d583
Add extensive tests for handling CRUD and API error scenarios
Felipe Cardoso
2025-11-01 13:12:36 +01:00
a95b25cab8
Enhance Playwright test coverage and refactor e2e authentication tests
Felipe Cardoso
2025-11-01 13:12:15 +01:00
976fd1d4ad
Add extensive CRUD tests for session and user management; enhance cleanup logic
Felipe Cardoso
2025-11-01 12:18:29 +01:00
293fbcb27e
Update default superuser password in init_db for improved security
Felipe Cardoso
2025-11-01 12:14:55 +01:00
f117960323
Add Playwright end-to-end tests for authentication flows and configuration
Felipe Cardoso
2025-11-01 06:30:28 +01:00
a1b11fadcb
Add init_db script for async database initialization and extensive tests for session management
Felipe Cardoso
2025-11-01 06:10:01 +01:00
b8d3248a48
Refactor password reset flow and improve ESLint integration
Felipe Cardoso
2025-11-01 06:04:35 +01:00
a062daddc5
Remove CRUD test modules for unused and deprecated features
Felipe Cardoso
2025-11-01 05:48:20 +01:00
efcf10f9aa
Remove unused async database and CRUD modules
Felipe Cardoso
2025-11-01 05:47:43 +01:00
ee938ce6a6
Add extensive form tests and enhanced error handling for auth components.
Felipe Cardoso
2025-11-01 05:24:26 +01:00
035e6af446
Add comprehensive tests for session cleanup and async CRUD operations; improve error handling and validation across schemas and API routes
Felipe Cardoso
2025-11-01 05:22:45 +01:00
c79b76be41
Remove and reorder unused imports across the project for cleaner and more consistent code structure
Felipe Cardoso
2025-11-01 04:50:43 +01:00
61173d0dc1
Refactor authentication and session management for optimized performance, enhanced security, and improved error handling
Felipe Cardoso
2025-11-01 04:50:01 +01:00
ea544ecbac
Refactor useAuth hooks for improved type safety, error handling, and compliance with auto-generated API client
Felipe Cardoso
2025-11-01 04:25:44 +01:00
3ad48843e4
Update tests for security and validation improvements
Felipe Cardoso
2025-11-01 04:00:51 +01:00
544be2bea4
Remove deprecated authStore and update implementation plan progress tracking
Felipe Cardoso
2025-11-01 03:53:45 +01:00
3fe5d301f8
Refactor authentication services to async password handling; optimize bulk operations and queries
Felipe Cardoso
2025-11-01 03:53:22 +01:00
819f3ba963
Add tests for useAuth hooks and AuthGuard component; Update .gitignore
Felipe Cardoso
2025-11-01 01:31:22 +01:00
9ae89a20b3
Refactor error handling, validation, and schema logic; improve query performance and add shared validators
Felipe Cardoso
2025-11-01 01:31:10 +01:00
c58cce358f
Refactor form error handling with type guards, enhance API client configuration, and update implementation plan
Felipe Cardoso
2025-11-01 01:29:17 +01:00
38eb5313fc
Improve error handling, logging, and security in authentication services and utilities
Felipe Cardoso
2025-11-01 01:13:19 +01:00
4de440ed2d
Improve error handling, logging, and security in authentication services and utilities
Felipe Cardoso
2025-11-01 01:13:02 +01:00
cc98a76e24
Add timeout cleanup to password reset confirm page and improve accessibility attributes
Felipe Cardoso
2025-11-01 01:01:56 +01:00
925950d58e
Add password reset functionality with form components, pages, and tests
Felipe Cardoso
2025-11-01 00:57:57 +01:00
dbb05289b2
Add pytest-xdist to requirements for parallel test execution
Felipe Cardoso
2025-11-01 00:05:41 +01:00
f4be8b56f0
Remove legacy test files for auth, rate limiting, and users
Felipe Cardoso
2025-11-01 00:02:17 +01:00
31e2109278
Add auto-generated API client and update authStore tests
Felipe Cardoso
2025-10-31 23:24:19 +01:00
b4866f9100
Remove old configuration, API client, and redundant crypto mocks
Felipe Cardoso
2025-10-31 23:04:53 +01:00
092a82ee07
Add async-safe polyfills, Jest custom config, and improved token validation
Felipe Cardoso
2025-10-31 22:41:18 +01:00
92a8699479
Convert password reset and auth dependencies tests to async
Felipe Cardoso
2025-10-31 22:31:01 +01:00
8a7a3b9521
Replace crypto tests with comprehensive unit tests for authStore, storage, and configuration modules
Felipe Cardoso
2025-10-31 22:25:50 +01:00
6d811747ee
Enhance input validation and error handling in authStore
Felipe Cardoso
2025-10-31 22:10:48 +01:00
76023694f8
Add SSR-safe checks and improve error handling for token storage and encryption
Felipe Cardoso
2025-10-31 22:09:20 +01:00