Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhanced(demo-game): Demo-Game feature extensions (#48)
* Adding dice as ui component * added logo component * adding player display as ui component * some refinements for PlayerDisplay * changing logo back to absolute positions, something is off * adding achievement as component * StorageOverview * Probability chart, tooltip missing, input could be extended * timeline entry * adding timeline, not generic yet * sort game list and beautify * new player list visualization, needs to be moved to ui * demo-game: initial modification of welcome page * demo-game: initial display player * Adding dice as ui component * added logo component * some refinements for PlayerDisplay * changing logo back to absolute positions, something is off * Probability chart, tooltip missing, input could be extended * remove react types in tsconfig * demo-game fixing transformer in cockpit * order on db side when querying games * remove indices when showing list of games * removing redundant key tags in children * wrap game links into buttons * wrap button into link * fix old typo * added todo to welcome page * demo-game: refetchQueries and cleaning cockpit * adding player count and activeSegmentIx in data game for showing info * starting showing transactions * enhanced(ui): UI package extensions with components and calls in demo-game (#47) * Adding dice as ui component * added logo component * Probability chart, tooltip missing, input could be extended * fix css and Logo component * generalize playerDisplay, Logo/Avatar * adding xp bar * Storage Overview adapting height size * adjusted some todos for timeline entry * timeline * Trading * adding price to trading form * adding navbar * sidebar structure * remove duplicate style imports * pin next peer dep in ui package * remove redundant type in formik * customize period and segment names in timeline entry * remove redundant key reference in object * add strings and booleans directly in components (here layout) * direct inference of booleans in timeline entry * some clean up * remove hard-coded number of segments in timeline * refining layout * storage overview fallback if no images are provided * rounded edges for avatar * timeline admin prep * change avatar to button * providing react nodes for icons in storage overview * trading form validation schema with yup * TimelineEntry entryStatus, past, current and future * adding segmentCount to periods in db and for fetching * avoid spread syntax on accumulators * providing types for achievements * cleaning up rest of todos and comments for segment count and filtering --------- Co-authored-by: Roland Schläfli <[email protected]> * adding some missing keys in ui package and cockpit * adding colors to the welcome page * adding locations to demo-game * page layout for demo-game * adding more locations * immutable getGames - let to const * peerDependencies for the ui package * refine ui layout with custom sidebar addons * cleaner reexporting, named export * tradingform adding max, removing min, which is 0 * ui trading from formiknumberfield * timeline entry removing redundant code * direct input string TimelineAdmin * integrating a new design system * integrating shadcn ui in the navbar * fixing react and formik version in peerdependencies of packages * shadcn line graph * adding additonal info to the game list, player count, etc * moving player color, avatar and location to facts * transactions and decision history components * cleaning transaction display component * cards for decision and transactio history, some refactoring * wrap histories * sizing transaction history cards * refactoring game header * applied review suggestions * refined welcome page * adding playerfacts to platform * demo-game welcome page, default bank name and additional todo * fix ordering of games when creating a new one * revert currentGame prisma obj copy * fix admin next button * add admin button segment result --------- Co-authored-by: Roland Schläfli <[email protected]>
- Loading branch information