## Component Refactors: - Updated `CharacterHovercard` to improve over mastery and awakening section logic. - Refactored `CharacterModal` to streamline state management (rings, awakening, perpetuity) and object preparation. - Adjusted `CharacterUnit` for consistent over mastery handling. - Simplified `AwakeningSelectWithInput` to use awakening slug values and improve error handling. - Updated `RingSelect` to refine ring value syncing and index logic. - Modified `Party` and `PartyHead` to ensure consistent over mastery processing and proper preview URL construction. - Updated `WeaponModal` to align awakening value handling with the new slug-based approach. ## Styling and Configuration: - Improved grid layout and styling in the `WeaponRep` SCSS module. - Updated `next.config.js` rewrite rules to support new preview and character routes. - Added a new API endpoint (`pages/api/preview/[shortcode].tsx`) for fetching party preview images. ## Type Definitions: - Refined types in `types/GridCharacter.d.ts` and `types/index.d.ts` to reflect updated structures for rings, over mastery, and awakening.
14 lines
282 B
TypeScript
14 lines
282 B
TypeScript
interface GridCharacter {
|
|
id: string
|
|
position: number
|
|
object: Character
|
|
uncap_level: number
|
|
transcendence_step: number
|
|
perpetuity: boolean
|
|
over_mastery: ExtendedMastery[]
|
|
aetherial_mastery?: ExtendedMastery
|
|
awakening: {
|
|
type: Awakening
|
|
level: number
|
|
}
|
|
}
|