Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AI] Prevent AI usage from production (#26)
* [Resolver] Add mandala chart related resolver (#21) * ✨ Add mandala model * ♻️ Change way to export * ✨ Add default value * ✨ Add mandala chart resolver * ✨ Save title and description on mandala chart document, not cell * ✨ Add dto for creating mandala chart * ✨ Add dto for updating mandala chart * ✨ Add dto for deleting mandala chart * 🔥 Remove message field from success type * ✨ Add dto for Getting mandala chart * ✨ Add resolver for mandala chart * ♻️ Fix type error * ✨ Change goals to goal per one mandala cell * ✨ Add getting user id decorator for resolver * ✨ Add return type of failure * ✨ Get userId from cookie on saving * ✨ Add private field and fix wrong type * ✨ Imbed mandala cell into mandala chart * ✨ Add private fields on input * ✨ Change update input * 🐛 Remove true in for loop on validation function * ✨ Replace impossible decorator to middleware * 🔧 Fix eslintrc error * ✨ Set temporary ignore * 🐛 Fix error on type graphql MichalLytek/type-graphql#1401 * ♻️ Change error without login * ✨ Apply userId middleware * ✨ Set proper error type * [Graphql] Apply changed type of mandala chart on web (#22) * 🔥 Remove grid * ✨ Set mock data for dev * ✨ Show placeholder * ✨ Add isGridValid * 🚚 Move screenshot button * ✨ Add load and save button * ✨ Add buttons * ✨ Apply i18n * 🚚 Move mandala chart section to reuse * 💄 Change gap between grid * 💄 Change text style of the center square * 💄 Add style on displaying mandala chart * ✨ Seperate default value * 🚚 Move ai recommendation query hook * 🚚 Seperate switch * ✨ Change update mandala chart input type * ♻️ Add more var * 🚧 Change whole grid value type * 🚧 Change displaying full view mandala chart type with graphql type * 🚧 Change use ai recommendation type with graphql type * ✨ Changed type for mandala chart * 🐛 Fix handle manually function * 🐛 Fix handle ai function * 🐛 Fix set ai mode * 💄 Set opacity * 🐛 Fix wrong dev value * 🔥 Remove test value * 🔥 Remove dev value * 🐛 Fix opacity * ✨ Add keyboard event * [Web] Add mandala chart list page (#23) * ✨ Add getUserMandalaCharts query * ✨ Send filtered mandala charts * ✨ Make mandala chart description nullable * ✨ Get mandala charts * ✨ Add variables to query 🔥 Remove unnecessary console * 💄 Add icon * 💄 Add lock icon * ✨ Add created at and modified at date * ✨ Make last modified at non essential * ✨ Add created updated information * ✨ Set sign in ✨ Connect to sign in page when click loading saved charts button * ✨ Apply delete mutation * ✨ Add no content * 💄 Change style * ✨ Set link to mandala chart page * [Save] Add save and load feature (#24) * 🚚 Copy index page to chart page * 🔥 Remove no mandala charts * ♻️ Change props * ✨ Add query on the chart page * ✨ Skip if no chart id exist * 🔥 Remove unnecessary var * ✨ Add error type * ✨ Add Title and Description component * ✨ Add title and description edit on chart * ✨ Update response type of mandala chart * 🔥 Remove unnecessary handler function and vars * ✨ Make create button to save in server * 🔥 Remove duplicated variables input * ✨ Add alert for network work * 🐛 Remove as option * ✨ Change input type of update * ♻️ Apply changed chart id * 🔥 Remove typename to prevent error * ✨ Change phrase * ✨ Add private button * ✨ Prevent request if there is no title * 🔥 Remove dev default value * ✨ Make use go to can keep the params * ✨ Add temp save * 🐛 Fix wrong condition * ✨ Update chart will show alert * [i18n] Apply i18n (#25) * ✨ Change home page to explain about website and mandala chart * 💄 Change header style * ✨ Control font size on mobile * 🐛 Control font size on mobile * ✨ Add sidebar * ✨ Remove menus from mobile and move to sign out * ✨ Add icons * ✨ Make sidebar cover the page * ✨ Add sign in out on nav bar * 🚚 Move layout realted file into a file * :turck: Change file name * ✨ Apply i18n on layout * 🚚 Move values to common i18n * ✨ Apply i18n on my list * 💄 Fix style * 💄 Change displaying mandala chart style * ✨ Add pupetter for screenshot on server * ✨ Get screenshot on the client * ✨ Add styles on public * ✨ Change scripts * ✨ Get screenshot from server * ✨ Get proper size image * ✨ Add example charts * 🔥 Show placeholder on display too * ✨ Add empty example * 💄 Change align * ✨ Apply handle function * ✨ Do not show sign up or sign in if it's already signed in * ✨ Add i18n on index page * 💄 Change style * ♻️ Change i18n * ✨ Change build command * ♻️ Change i18n * ✨ Add number * ✨ Add notice * ✨ Comment AI mode switch * ✨ Do not open when grid is not valid * ✨ Add focus to prevent escaping * ✨ Add border for focused square * ✨ Prevent ai recommend * ✨ Add colors on highlight box
- Loading branch information