- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
refactor: optimize create element #3556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
                
     Merged
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    0078398    to
    f4e6c4d      
    Compare
  
    feat: add pino file logging for nextjs
feat: add tracker for observability
refactor: builder hook to provider
wip: fix child mapper component field wip: fix child mapper component field wip: fix child mapper component field wip: fix child mapper component field
refactor: remove entire env configuration implementation feat: centralize env configuration with shared env.ts module fix: update auth0 domain configuration with new env method refactor: centralize env.get usage across services refactor: simplify environment variable configuration using array mapping refactor: change env export to use env.get instead of destructuring refactor: reorganize imports and remove redundant code in env config services refactor: update env import and usage across services revert: decorator changes
f4e6c4d    to
    87f0a73      
    Compare
  
    
    
  webberwang 
      added a commit
      that referenced
      this pull request
    
      Feb 2, 2025 
    
    
      
  
    
      
    
  
* fix: element action schema * fix: change to array type schema * fix: rename to array * fix: select actions field * wip: fixing reconnect node * refactor: move param out of service * refactor: move param out of service * ci: change image version * ci: change docker init * ci: update node version * ci: update node version * fix: unit specs * chore: fix docker * test: fix subscriptions test * test: fix subscriptions test * wip: move to shared domain folder * wip: move to domain folder * wip: migrate backend repo to graphql * lint: remove un-used * refactor: move config folders * wip: migrate backend repo to graphql * wip: codegen for new client * wip: move graphql to shared * wip: move graphql to shared * wip: refactor repositories * wip: refactor repositories * refactor: use graphql for backend repo refactor: use graphql for backend repo refactor: use graphql for backend repo * chore: fix codegen * fix: codegen * refactor: use static imports for server actions in API modules refactor: Replace dynamic imports with static imports for server actions * wip: remove files * fix: Correct component server actions import and usage * refactor: update serverActions imports to be synchronous * fix: update preference server actions import syntax * refactor: update server actions to use direct imports instead of async functions * fix: union type save * wip: fix actions * feat: add cypher constraints file for Neo4j unique node properties * feat: add aider configuration and environment setup This commit includes several changes to improve aider integration: - Add script to set AIDER_COMMIT_PROMPT environment variable - Update AIDER_COMMIT_PROMPT with default commit message generation instructions - Convert load-env.sh to load-env.js using types from .cz-config.js - Add comments to explain load-env.js script functionality - Add aider wrapper script to load env and run command - Add configuration for aider * refactor: remove async await from server action imports * wip: refactor repositories * refactor: remove await from server actions imports * refactor: remove async function calls from repository server action imports * fix: import issue * refactor: use callback for appApi initialization * fix: missing env nextjs when using env-var * fix: integration specs and db connection * test: fix repo for spec, refactor graphql setup for specs * chore: codegen * fix: add node_options for isolated-vm * fix: migrate tag descendant resolvers * fix: element resolver (#3537) * fix: renderer id * fix: server auth * refactor: header toolbar * revert: user upsert * feat: add get-dependant-types resolver for neo4j element adapter * refactor: replace ogm with nestjs repositories in get-dependant-types * chore: remove comment * refactor: implement dependant types resolver for element * refactor: split neo4j schema and driver * feat: add get-dependant-types service for element domain * refactor: convert getDependantTypes to nestjs service with dependency injection * refactor: replace ogm with repository injections in get-dependant-types service * refactor: move cypher queries to drivers * fix: lint * fix: resolver with repositories * refactor: dependant types * revert: renderer id to make tests pass * fix: resolve circular dependency in graphql and resolver modules refactor: remove circular dependency between resolver and schema modules * refactor: clean up imports and formatting in resolver module and service * refactor: merge resolver providers into resolver service * fix: resolve circular dependency in graphql and resolver modules * fix: import api spec * refactor: simplify domain event test setup and remove unnecessary async operations * test(domain): add delays and improve test setup for domain event subscriptions * fix: resolve test setup issues with multiple listen calls and connection pool * fix: resolve domain event subscription test failures * refactor: move domain gql and apollo client to shared * refactor: update cypher query for element dependant types with improved readability * wip: Element.dependantTypes issue * fix: remove optional chaining for api.id in element render type * refactor: replace elementRepository with direct Cypher query in element-dependant-types * feat: add exports for element cypher queries in index file * wip: Element.dependantTypes issue * refactor: move elements to page module * fix: element dependantTypes circular dep * wip: testing subscriptions in browser * refactor: rename dashboard props * wip: test out default for parallel routes * refactor: domain to parallel routes * refactor: update neo4j module import path in test file * refactor: change providers to service * refactor: rename * test: add spec for union type mapper * fix: import export spec * wip: typebox validator * test: added specs for nested validator and unions * fix: import export spec * fix: build errors * wip: fixing validator and import/export * refactor: add additional schema to typeRef * wip: fixing data export shape * wip: add field validation wip: add field validation wip: fix field mapper fix: import export spec * feat: add INodeType as first generic arg to repository classes feat: add INodeType import to action-type repo service feat: add INodeType import and update repository generics feat: add INodeType as first generic argument in repository services refactor: add INodeType as first generic argument to page and prop repositories refactor: add INodeType as first generic argument in repository classes refactor: add INodeType as first generic argument to repository classes feat: add INodeType import to redirect repository service feat: add __typename field to various update type mutations feat: add __typename before id in all create and update mutations feat: add __typename before id in all create and update mutations feat: add __typename before id in all create and update mutations feat: add __typename before id in all create and update mutations feat: add missing INodeType generic parameter to repositories feat: add missing INodeType import in preference and redirect repositories refactor: remove duplicate __typename in graphql mutations feat: add __typename to update and create mutation responses refactor: remove duplicate __typename in graphql mutations feat: add __typename to mutation responses across multiple modules refactor: remove duplicate __typename in graphql mutations feat: add __typename to mutation responses in atom, preference, and tag modules refactor: remove duplicate __typename in hook.api.graphql refactor: remove duplicate __typename in createHooks mutation refactor: add __typename to create/update mutations * test: fix dependantTypes test: fix dependantTypes * fix: resolve type fix: resolve type * test: add page and component specs * fix: build errors * fix: incorrect query where * test: fix integration specs test: fix integration specs * fix: dependant types resolver fix: dependant types resolver fix: dependant types resolver * fix: codgen * fix: renderer id ref * fix: build errors * lint: remove un-used * fix: general issues fixes (#3541) * fix: generic issues * fix: script error on second element creation * fix: error bacause renderer had the same id as page * fix: page and component element descendants queries * refactor: migrate app dialogs to parallel routes * fix: lint * fix: after rebase * refactor: use @modal parrallel route for modal dialogs * fix: validation (#3542) * test: add unit tests for none schema validation * fix: update validator import path in none.schema.spec.ts * test: add comprehensive test suites for typebox validation schemas * refactor: update validator import across multiple schema spec files * refactor: reorganize typebox imports and exports structure * fix: update validator imports and move nested-validator to validation directory * refactor: schema validation * refactor: remove ajv formats * refactor: simplify validation class * refactor: remove nestjs validation * wip: standardize logger * wip: fix sentry setup * fix: build errors * wip: fix sentry setup * revert: add auth back * refactor: remove getAllFromCache and getOneFromCache methods from services (#3544) refactor: remove cache methods from service * fix: general app fixes (#3543) * fix: error bacause renderer had the same id as page * fix: after rebase * fix: errors during app update/delete * fix: page descendant elements export * fix: apps and components import and export * fix: loading indicator during app import * fix: loading indicator during component import * fix: app e2e spec * fix: app is not removed from cahce if request fails * fix: child-mapper e2e spec error during data seed * fix: child-mapper e2e spec * fix: in-app-routing e2e spec error during data seed * fix: pages e2e spec * fix: types e2e spec * fix: stabilize google-fonts e2e spec * fix: tags tree styling * fix: stabilize state-sharing e2e test * fix: pagination for types page * refactor: migrate admin modals to parallel routes * refactor: migrate component deletion modal * refactor: migrate actions delete and update modals to parallel routes * refactor: migrate auth guard CRUD form to parallel routes * refactor: migrate element delete modal to parallel routes * refactor: migrate all remaining popovers to parallel routes * refactor: cleanup jotai modal and form state utils * fix: e2e * fix: build * fix: css e2e spec * fix: build errors * fix: app crud cache error * fix: child-mapper e2e spec (#3548) * fix: state-sharing spec (#3550) * wip: optimize create element (#3547) * wip: optimize create element * wip: add pino logger to nextjs * feat: add pino file logging for nextjs * feat: add tracker for observability * refactor: builder hook to provider * wip: debug why create element form re-renders * refactor: tree view node preview prevent rendering * revert: remove wdyr * fix: resolver specs * fix: component create popover * wip: fix child mapper component field * fix: general fixes and additional e2e coverage (#3554) * refactor: update nextjs version to latest minor one * feat: add confirmation popup on attempt to reset database * refactor: use optimistic update for atoms and resources * fix: builder e2e spec * fix: google-fonts e2e spec * test: create e2e test cases for Auth Guards and Redirects * fix: auth guard page desiplayed wrong label during loading * fix: page builder was shown on attempt to update page * fix: child-mapper e2e spec * fix: build error * fix: lint * fix: generic platform fixes and improvements (#3560) * refactor: use popconfirm instead of modal to delete pages * fix: page builder opened when page update form was shown * fix: long popover titles * fix: router.back did not close the popover * fix: 404 error on hard reload * fix: import component button issues * fix: field popovers did not close * fix: page redirect caching issue * refactor: optimize create element (#3556) * wip: optimize create element * wip: add pino logger to nextjs * feat: add pino file logging for nextjs feat: add pino file logging for nextjs * feat: add tracker for observability feat: add tracker for observability * refactor: builder hook to provider refactor: builder hook to provider * wip: debug why create element form re-renders * refactor: tree view node preview prevent rendering * revert: remove wdyr * wip: fix child mapper component field wip: fix child mapper component field wip: fix child mapper component field wip: fix child mapper component field wip: fix child mapper component field * refactor: move seed data from backend to shared * refactor: extract server code * lint: apply lint * fix: type import refactor: remove entire env configuration implementation feat: centralize env configuration with shared env.ts module fix: update auth0 domain configuration with new env method refactor: centralize env.get usage across services refactor: simplify environment variable configuration using array mapping refactor: change env export to use env.get instead of destructuring refactor: reorganize imports and remove redundant code in env config services refactor: update env import and usage across services revert: decorator changes * revert: decorator changes * wip: debugging web build error * wip: fix tsconfig * ci: fix circleci config * fix: atom specs (#3561) * fix: atom e2e specs * ci: fix circleci config * fix: tsc-check * ci: test out neo4j * fix: storybook with nextjs decorator * wip: fix interface form spec wip: fix interface form spec wip: fix interface form spec * ci: fixing build * ci: fixing build * refactor: rename gql to gqlgen * lint: fix all * ci: fix cypher scripts path ci: fix neo4j ci: fix neo4j ci: fix neo4j ci: fix neo4j ci: fix neo4j ci: fix neo4j * ci: fix neo4j * ci: install cypher shell ci: install cypher shell ci: install cypher shell * ci: install cypher shell * ci: install cypher shell * ci: install cypher shell * ci: install cypher shell * ci: install cypher shell * fix: css element (#3562) * wip: fix css runtime element * e2e: fix css spec, element tree wait * e2e: add global before all setup to child mapper spec * refactor: speed up ci build * ci: add missing param * ci: test out new flow * fix: component dnd (#3497) * fix: builder script error because of not hydrated tags fix: builder script error after element was added fix: issues with empty Action Select fields fix: action create/update form issues fix: runtime actions cleanup when related action removed refactor: builder click overlay fix: elementTree bad state warning fix: elementTree bad state warning revert: unwanted change after rebase refactor: fix edit component on context menu fix: use converted element directly as root element refactor: builder click overlay wip: fix drag and drop wip: adding droppable rectangles feat: finish element blueprints refactor: comment old spec fix: dnd specs fix: renderer specs fix: build issues lint: fix tsconfig.base lint fix: drop indicator fix: restore builder style fix: restore builder style fix: e2e specs fix: convert to component use case fix: build issue fix: unit specs fix: convert element to component use case * revert: unwated changes after rebase --------- Co-authored-by: Vladyslav Polishchuk <gm.vpolishchuk@gmail.com> * fix: issues from component dnd PR (#3564) * fix: unit specs * lint: fix lint * fix: general fixes (#3566) * fix: unit specs * lint: fix lint * fix: api log level env variable * fix: build errors * fix: enable cdc on docker container start * fix: tsc check * refactor: add @node to ypes * refactor: remove @unique directive * fix: html atoms apis and general app issues (#3567) * fix: auth redirect form wasn't submitted after targetType chagne * fix: type fields hydration script error * fix: script error on hard reload of builder preview page * fix: html atoms errors and add Children prop where needed * fix: html atoms errors and addChildren prop where needed * refactor: update antd version * fix: script error when running react-node-type-transformer * fix: updated html atoms export diff * fix: codegen diff * fix: script error because connectOrCreate is not supported anymore * fix: codegen (#3568) * fix: codegen * fix: codegen * fix: tsc checks * feat: update package version * fix: rebase --------- Co-authored-by: Webber Wang <webber@codelab.app> * fix: antd atom api fixes and general issues fixes (#3570) * fix: migrate deprecated BackTop component to FloatButton * fix: interfaces and field hydration * fix: antd atoms apis * fix: build command * fix: antd atoms apis * refactor: optimize codegen (#3571) * fix: codegen * fix: tsc checks * feat: update package version * chore: update typescript version * refactor: codegen plugins * fix: build errors * fix: build errors * refactor: codegen plugins * refactor: use client preset again * chore: update codegen libs * wip: optimizing codegen * refactor: remove docs files * refactor: move preset to a lib * refactor: restore unwated change * refactor: codegen file * chore: commit schema * refactor: clean up plugins * refactor: codegen plugins * refactor: codgen plugins * refactor: add end of file to gen files * chore: update prettier * lint: update prettier * lint: disable prettier for gen files * fix: wrong export * lint: addking schema.graphql in prettierignore * refactor: sort keys properly * fix: ignore graphql.gen * fix: revert to graphql.ts * fix: revert to graphql.ts * fix: build error * refactor: codelab preset * refactor: codelab preset * chore: upgrade dependencies * fix: unit specs * ci: logging int (#3563) * ci: change logger for debugging * refactor: layout naming * refactor: search params usage * wip: add global router hydration * wip: logging filter * fix: search params spec * fix: rebase * fix: build errors * test: fix specs * wip: add step wrapper * chore: update lockfile --------- Co-authored-by: assim habeek <assimhabe@gmail.com> Co-authored-by: assim habeek <33001357+assimhabeek@users.noreply.github.com> Co-authored-by: Vladyslav Polishchuk <74900868+vladyslav-polishchuk@users.noreply.github.com> Co-authored-by: Vladyslav Polishchuk <gm.vpolishchuk@gmail.com>
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Description
Video or Image
Related Issue(s)
Fixes #