feat: add reminders page, BMad skills upgrade, MCP server refactor
- Add reminders page with navigation support - Upgrade BMad builder module to skills-based architecture - Refactor MCP server: extract tools and auth into separate modules - Add connections cache, custom AI provider support - Update prisma schema and generated client - Various UI/UX improvements and i18n updates - Add service worker for PWA support Made-with: Cursor
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { useState, useCallback, useRef } from 'react'
|
||||
import { deepEqual } from '@/lib/utils'
|
||||
|
||||
export interface UndoRedoState<T> {
|
||||
past: T[]
|
||||
@@ -42,7 +43,7 @@ export function useUndoRedo<T>(initialState: T): UseUndoRedoReturn<T> {
|
||||
: newState
|
||||
|
||||
// Don't add to history if state hasn't changed
|
||||
if (JSON.stringify(resolvedNewState) === JSON.stringify(currentHistory.present)) {
|
||||
if (deepEqual(resolvedNewState, currentHistory.present)) {
|
||||
return currentHistory
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user