The token validation checks were redundant as the validation is already
handled by the captcha wrapper component. This change simplifies the
password reset flow while maintaining security.
* feat(auth): implement withCaptcha HOC for consistent reCAPTCHA
This commit refactors the reCAPTCHA implementation across the application
by introducing a Higher Order Component (withCaptcha) that encapsulates
captcha verification logic. The changes:
- Create a reusable withCaptcha HOC in withRecaptcha.tsx
- Refactor Login, ResetPasswordRequest, and CreatePassword components
- Extract SSOLogin into a separate component
- Improve error handling and user feedback
- Standardize loading and verification states across forms
- Make captcha implementation more maintainable and consistent
* feat(auth): support msaas edition for enterprise features
Add msaas to the isEnterprise check alongside ee edition to properly
display enterprise features. Use userStore.isEnterprise in SSOLogin
component instead of directly checking authDetails.edition for
consistent
enterprise status detection.
Refactors metrics list view to use server-side pagination and sorting
instead of client-side implementation. This improves performance for
large datasets by reducing client workload and network payload size.
Key changes:
- Add pagination API endpoint in MetricService
- Update MetricStore to handle server pagination
- Refactor ListView component to use server-side sorting
- Remove client-side sorting and pagination logic
Removes the default tooltips that appear when hovering over sortable
column headers by setting showSorterTooltip={false} on Table components.
Also fixes indentation in text components and function parameters for
better code readability.
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
Replace the string-based icon reference 'arrow-repeat' with the React
component <RefreshCcw size={18} /> from lucide-react. Also fix indentation
in the category mapping section for better code organization.
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
Change header title from "Spot List" to "Spots" to improve UI consistency
and make the heading more concise.
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
- Replace latestList with latestSessionCount to better track new sessions
- Move debouncing logic to PrivateRoutes for improved consistency
- Fix session count checking with proper API integration
- Clean up code formatting and remove unnecessary function calls
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
- Replace separate delay and disabled props with conditional title
- Ensure tooltip only shows content when not disabled
- Maintain consistent tooltip behavior across the application
- Prevent potential rendering errors on disabled tooltips
- Improve code maintainability for tooltip components
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
- Fix TypeScript error with SessionItem JSX component
- Convert SessionItem to use modern React hooks and patterns
- Implement useCallback and useMemo for better rendering performance
- Properly handle optional chaining for conditional properties
- Remove console.log statements from search store
- Fix useEffect dependencies to prevent unnecessary rerenders
- Cleanup unused imports and commented code
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
- Fix TypeScript error with SessionItem component by providing proper props
- Remove unused isSessionsRoute variable
- Remove commented out code for better clarity
- Fix formatting and indentation throughout the file
- Update setTimeout formatting to match project style
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
- Convert from function to React.memo for better performance
- Replace hardcoded year with dynamic current year calculation
- Update styling classes to use Tailwind format
- Add hover states to improve UX
- Add rel="noopener noreferrer" for security best practices
- Change container from div to semantic footer element
Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>