diff --git a/.circleci/config.yml b/.circleci/config.yml index 6728f669a..2ae992d15 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,53 +1,53 @@ version: 2.1 orbs: - node: circleci/node@4.9.0 - pulumi: pulumi/pulumi@2.0.0 + node: circleci/node@4.9.0 + pulumi: pulumi/pulumi@2.0.0 aliases: - - &install-node - name: Install Node with NPM using NVM - command: | - echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV - echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV - nvm install v16 - nvm alias default v16 - echo 'export NODE_OPTIONS=--max_old_space_size=7000' >> $BASH_ENV - echo 'export NG_CLI_ANALYTICS=false' >> $BASH_ENV - source $BASH_ENV - node --version - - &install-chrome - name: Install Chrome - command: | - sudo apt install -y libappindicator3-1 - curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i google-chrome.deb - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome - rm google-chrome.deb - - &install-deps - name: Install Global Dependencies - command: | - sudo rm -rf /etc/apt/sources.list.d/heroku.list - sudo apt-get update - sudo apt install npm - sudo apt install build-essential - sudo npm install --quiet node-gyp@9.3.1 -g - sudo npm config set python /usr/bin/python - - &install-yarn - name: Install Latest Yarn - command: | - # remove default yarn - sudo rm -rf $(dirname $(which yarn))/yarn* - # download latest - rm -rf ~/.yarn - curl -o- -L https://yarnpkg.com/install.sh | bash - echo 'export PATH="${PATH}:${HOME}/.yarn/bin:${HOME}/.config/yarn/global/node_modules/.bin"' >> $BASH_ENV - source $BASH_ENV + - &install-node + name: Install Node with NPM using NVM + command: | + echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV + echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV + nvm install v16 + nvm alias default v16 + echo 'export NODE_OPTIONS=--max_old_space_size=7000' >> $BASH_ENV + echo 'export NG_CLI_ANALYTICS=false' >> $BASH_ENV + source $BASH_ENV + node --version + - &install-chrome + name: Install Chrome + command: | + sudo apt install -y libappindicator3-1 + curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo dpkg -i google-chrome.deb + sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome + rm google-chrome.deb + - &install-deps + name: Install Global Dependencies + command: | + sudo rm -rf /etc/apt/sources.list.d/heroku.list + sudo apt-get update + sudo apt install npm + sudo apt install build-essential + sudo npm install --quiet node-gyp@10.2.0 -g + sudo npm config set python /usr/bin/python + - &install-yarn + name: Install Latest Yarn + command: | + # remove default yarn + sudo rm -rf $(dirname $(which yarn))/yarn* + # download latest + rm -rf ~/.yarn + curl -o- -L https://yarnpkg.com/install.sh | bash + echo 'export PATH="${PATH}:${HOME}/.yarn/bin:${HOME}/.config/yarn/global/node_modules/.bin"' >> $BASH_ENV + source $BASH_ENV defaults: &defaults - # put here anything which is common between all jobs - # we define default work dir, however almost every job redefine it - working_directory: /tmp/workspace + # put here anything which is common between all jobs + # we define default work dir, however almost every job redefine it + working_directory: /tmp/workspace jobs: say-hello: @@ -60,8 +60,8 @@ jobs: steps: - checkout - run: - name: "Say hello" - command: "echo Hello, World!" + name: 'Say hello' + command: 'echo Hello, World!' # Orchestrate jobs using workflows # See: https://circleci.com/docs/configuration-reference/#workflows diff --git a/.github/workflows/desktop-server-api.apps.yml b/.github/workflows/desktop-server-api.apps.yml index f90c82507..4b9146c42 100644 --- a/.github/workflows/desktop-server-api.apps.yml +++ b/.github/workflows/desktop-server-api.apps.yml @@ -45,7 +45,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -123,7 +123,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -201,7 +201,7 @@ jobs: run: 'npm install -g npm@9' - name: Install latest node-gyp package - run: 'npm install --quiet -g node-gyp@9.3.1' + run: 'npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -256,152 +256,3 @@ jobs: I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-api/i18n' PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-gauzy/develop/apps/desktop-timer/src/assets/icons/icon_512x512.png' - # Override unwanted environment variables - ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: '' - ANT_HOME: '' - AZURE_CONFIG_DIR: '' - AZURE_DEVOPS_CACHE_DIR: '' - AZURE_EXTENSION_DIR: '' - AZ_DEVOPS_GLOBAL_CONFIG_DIR: '' - CABAL_DIR: '' - ChocolateyInstall: '' - ChromeWebDriver: '' - COBERTURA_HOME: '' - # COMPUTERNAME: '' - # COMSPEC: '' - # CONDA: '' - # DEPLOYMENT_BASEPATH: '' - SBT_HOME: '' - SELENIUM_JAR_PATH: '' - STATS_BLT: '' - STATS_D: '' - STATS_D_D: '' - STATS_EXT: '' - STATS_EXTP: '' - STATS_RDCL: '' - STATS_TIS: '' - STATS_TRP: '' - STATS_UE: '' - STATS_V3PS: '' - STATS_VMD: '' - STATS_VMFE: '' - ANDROID_HOME: '' - ANDROID_NDK: '' - ANDROID_NDK_HOME: '' - ANDROID_NDK_LATEST_HOME: '' - ANDROID_NDK_ROOT: '' - ANDROID_SDK_ROOT: '' - # GITHUB_ACTION: '' - # GITHUB_ACTIONS: '' - # GITHUB_ACTION_REF: '' - # GITHUB_ACTION_REPOSITORY: '' - # GITHUB_ACTOR: '' - # GITHUB_ACTOR_ID: '' - # GITHUB_API_URL: '' - # GITHUB_BASE_REF: '' - # GITHUB_ENV: '' - # GITHUB_EVENT_NAME: '' - # GITHUB_EVENT_PATH: '' - # GITHUB_GRAPHQL_URL: '' - # GITHUB_HEAD_REF: '' - # GITHUB_JOB: '' - # GITHUB_OUTPUT: '' - # GITHUB_PATH: '' - # GITHUB_REF: '' - # GITHUB_REF_NAME: '' - # GITHUB_REF_PROTECTED: '' - # GITHUB_REF_TYPE: '' - # GITHUB_REPOSITORY: '' - # GITHUB_REPOSITORY_ID: '' - # GITHUB_REPOSITORY_OWNER: '' - # GITHUB_REPOSITORY_OWNER_ID: '' - # GITHUB_RETENTION_DAYS: '' - # GITHUB_RUN_ATTEMPT: '' - # GITHUB_RUN_ID: '' - # GITHUB_RUN_NUMBER: '' - # GITHUB_SERVER_URL: '' - # GITHUB_SHA: '' - # GITHUB_STATE: '' - # GITHUB_STEP_SUMMARY: '' - # GITHUB_TRIGGERING_ACTOR: '' - # GITHUB_WORKFLOW: '' - # GITHUB_WORKFLOW_REF: '' - # GITHUB_WORKFLOW_SHA: '' - # GITHUB_WORKSPACE: '' - GOROOT_1_20_X64: '' - GOROOT_1_21_X64: '' - GOROOT_1_22_X64: '' - GRADLE_HOME: '' - # HOMEDRIVE: '' - # HOMEPATH: '' - IEWebDriver: '' - ImageOS: '' - ImageVersion: '' - JAVA_HOME: '' - JAVA_HOME_11_X64: '' - JAVA_HOME_17_X64: '' - JAVA_HOME_21_X64: '' - JAVA_HOME_8_X64: '' - # LOCALAPPDATA: '' - # LOGONSERVER: '' - M2: '' - M2_REPO: '' - MAVEN_OPTS: '' - MonAgentClientLocation: '' - # npm_config_prefix: '' - # NUMBER_OF_PROCESSORS: '' - # OS: '' - # PATHEXT: '' - # PERFLOG_LOCATION_SETTING: '' - PGBIN: '' - PGDATA: '' - PGPASSWORD: '' - PGROOT: '' - PGUSER: '' - PHPROOT: '' - PIPX_BIN_DIR: '' - PIPX_HOME: '' - POWERSHELL_DISTRIBUTION_CHANNEL: '' - POWERSHELL_UPDATECHECK: '' - PROCESSOR_ARCHITECTURE: '' - PROCESSOR_IDENTIFIER: '' - PROCESSOR_LEVEL: '' - PROCESSOR_REVISION: '' - PSModuleAnalysisCachePath: '' - PSModulePath: '' - Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Amazon\AWSCLIV2\' - DOTNET_MULTILEVEL_LOOKUP: '' - DOTNET_NOLOGO: '' - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: '' - DriverData: '' - EdgeWebDriver: '' - GCM_INTERACTIVE: '' - GeckoWebDriver: '' - GHCUP_INSTALL_BASE_PREFIX: '' - GHCUP_MSYS2: '' - # RTOOLS44_HOME: '' - RUNNER_ARCH: '' - RUNNER_ENVIRONMENT: '' - RUNNER_NAME: '' - RUNNER_OS: '' - RUNNER_PERFLOG: '' - RUNNER_TEMP: '' - RUNNER_TOOL_CACHE: '' - RUNNER_TRACKING_ID: '' - RUNNER_WORKSPACE: '' - # USERDOMAIN: '' - # USERDOMAIN_ROAMINGPROFILE: '' - # USERNAME: '' - # USERPROFILE: '' - # VCPKG_INSTALLATION_ROOT: '' - # WIX: '' - # TERM: '' - # HOME: '' - # WINDIR: '' - # ProgramData: '' - # PROGRAMFILES: '' - # ProgramW6432: '' - # ALLUSERSPROFILE: '' - # APPDATA: '' - # COMMONPROGRAMFILES: '' - # CommonProgramFiles(x86) diff --git a/.github/workflows/desktop-server-web.apps.yml b/.github/workflows/desktop-server-web.apps.yml index 9523f72f8..82e212d4f 100644 --- a/.github/workflows/desktop-server-web.apps.yml +++ b/.github/workflows/desktop-server-web.apps.yml @@ -42,7 +42,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -73,6 +73,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -117,7 +118,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -148,6 +149,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -192,7 +194,7 @@ jobs: run: 'npm install -g npm@9' - name: Install latest node-gyp package - run: 'npm install --quiet -g node-gyp@9.3.1' + run: 'npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -228,6 +230,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -247,152 +250,3 @@ jobs: I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-web/i18n' PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/server-web/src/assets/icons/icon_512x512.png' - # Override unwanted environment variables - ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: '' - ANT_HOME: '' - AZURE_CONFIG_DIR: '' - AZURE_DEVOPS_CACHE_DIR: '' - AZURE_EXTENSION_DIR: '' - AZ_DEVOPS_GLOBAL_CONFIG_DIR: '' - CABAL_DIR: '' - ChocolateyInstall: '' - ChromeWebDriver: '' - COBERTURA_HOME: '' - # COMPUTERNAME: '' - # COMSPEC: '' - # CONDA: '' - # DEPLOYMENT_BASEPATH: '' - SBT_HOME: '' - SELENIUM_JAR_PATH: '' - STATS_BLT: '' - STATS_D: '' - STATS_D_D: '' - STATS_EXT: '' - STATS_EXTP: '' - STATS_RDCL: '' - STATS_TIS: '' - STATS_TRP: '' - STATS_UE: '' - STATS_V3PS: '' - STATS_VMD: '' - STATS_VMFE: '' - ANDROID_HOME: '' - ANDROID_NDK: '' - ANDROID_NDK_HOME: '' - ANDROID_NDK_LATEST_HOME: '' - ANDROID_NDK_ROOT: '' - ANDROID_SDK_ROOT: '' - # GITHUB_ACTION: '' - # GITHUB_ACTIONS: '' - # GITHUB_ACTION_REF: '' - # GITHUB_ACTION_REPOSITORY: '' - # GITHUB_ACTOR: '' - # GITHUB_ACTOR_ID: '' - # GITHUB_API_URL: '' - # GITHUB_BASE_REF: '' - # GITHUB_ENV: '' - # GITHUB_EVENT_NAME: '' - # GITHUB_EVENT_PATH: '' - # GITHUB_GRAPHQL_URL: '' - # GITHUB_HEAD_REF: '' - # GITHUB_JOB: '' - # GITHUB_OUTPUT: '' - # GITHUB_PATH: '' - # GITHUB_REF: '' - # GITHUB_REF_NAME: '' - # GITHUB_REF_PROTECTED: '' - # GITHUB_REF_TYPE: '' - # GITHUB_REPOSITORY: '' - # GITHUB_REPOSITORY_ID: '' - # GITHUB_REPOSITORY_OWNER: '' - # GITHUB_REPOSITORY_OWNER_ID: '' - # GITHUB_RETENTION_DAYS: '' - # GITHUB_RUN_ATTEMPT: '' - # GITHUB_RUN_ID: '' - # GITHUB_RUN_NUMBER: '' - # GITHUB_SERVER_URL: '' - # GITHUB_SHA: '' - # GITHUB_STATE: '' - # GITHUB_STEP_SUMMARY: '' - # GITHUB_TRIGGERING_ACTOR: '' - # GITHUB_WORKFLOW: '' - # GITHUB_WORKFLOW_REF: '' - # GITHUB_WORKFLOW_SHA: '' - # GITHUB_WORKSPACE: '' - GOROOT_1_20_X64: '' - GOROOT_1_21_X64: '' - GOROOT_1_22_X64: '' - GRADLE_HOME: '' - # HOMEDRIVE: '' - # HOMEPATH: '' - IEWebDriver: '' - ImageOS: '' - ImageVersion: '' - JAVA_HOME: '' - JAVA_HOME_11_X64: '' - JAVA_HOME_17_X64: '' - JAVA_HOME_21_X64: '' - JAVA_HOME_8_X64: '' - # LOCALAPPDATA: '' - # LOGONSERVER: '' - M2: '' - M2_REPO: '' - MAVEN_OPTS: '' - MonAgentClientLocation: '' - # npm_config_prefix: '' - # NUMBER_OF_PROCESSORS: '' - # OS: '' - # PATHEXT: '' - # PERFLOG_LOCATION_SETTING: '' - PGBIN: '' - PGDATA: '' - PGPASSWORD: '' - PGROOT: '' - PGUSER: '' - PHPROOT: '' - PIPX_BIN_DIR: '' - PIPX_HOME: '' - POWERSHELL_DISTRIBUTION_CHANNEL: '' - POWERSHELL_UPDATECHECK: '' - PROCESSOR_ARCHITECTURE: '' - PROCESSOR_IDENTIFIER: '' - PROCESSOR_LEVEL: '' - PROCESSOR_REVISION: '' - PSModuleAnalysisCachePath: '' - PSModulePath: '' - Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Amazon\AWSCLIV2\' - DOTNET_MULTILEVEL_LOOKUP: '' - DOTNET_NOLOGO: '' - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: '' - DriverData: '' - EdgeWebDriver: '' - GCM_INTERACTIVE: '' - GeckoWebDriver: '' - GHCUP_INSTALL_BASE_PREFIX: '' - GHCUP_MSYS2: '' - # RTOOLS44_HOME: '' - RUNNER_ARCH: '' - RUNNER_ENVIRONMENT: '' - RUNNER_NAME: '' - RUNNER_OS: '' - RUNNER_PERFLOG: '' - RUNNER_TEMP: '' - RUNNER_TOOL_CACHE: '' - RUNNER_TRACKING_ID: '' - RUNNER_WORKSPACE: '' - # USERDOMAIN: '' - # USERDOMAIN_ROAMINGPROFILE: '' - # USERNAME: '' - # USERPROFILE: '' - # VCPKG_INSTALLATION_ROOT: '' - # WIX: '' - # TERM: '' - # HOME: '' - # WINDIR: '' - # ProgramData: '' - # PROGRAMFILES: '' - # ProgramW6432: '' - # ALLUSERSPROFILE: '' - # APPDATA: '' - # COMMONPROGRAMFILES: '' - # CommonProgramFiles(x86) diff --git a/.github/workflows/desktop.apps.yml b/.github/workflows/desktop.apps.yml index c0ff59ba8..1c84e825f 100644 --- a/.github/workflows/desktop.apps.yml +++ b/.github/workflows/desktop.apps.yml @@ -45,7 +45,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -76,6 +76,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -123,7 +124,7 @@ jobs: run: 'sudo npm install -g npm@9' - name: Install latest node-gyp package - run: 'sudo npm install --quiet -g node-gyp@9.3.1' + run: 'sudo npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -154,6 +155,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -201,7 +203,7 @@ jobs: run: 'npm install -g npm@9' - name: Install latest node-gyp package - run: 'npm install --quiet -g node-gyp@9.3.1' + run: 'npm install --quiet -g node-gyp@10.2.0' - name: Install Yarn dependencies run: 'yarn install --network-timeout 1000000 --frozen-lockfile' @@ -237,6 +239,7 @@ jobs: SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}' SENTRY_HTTP_TRACING_ENABLED: '${{ secrets.SENTRY_HTTP_TRACING_ENABLED }}' SENTRY_POSTGRES_TRACKING_ENABLED: '${{ secrets.SENTRY_POSTGRES_TRACKING_ENABLED }}' + SENTRY_PROFILING_ENABLED: '${{ secrets.SENTRY_PROFILING_ENABLED }}' DO_KEY_ID: ${{ secrets.DO_KEY_ID }} DO_SECRET_KEY: ${{ secrets.DO_SECRET_KEY }} NX_NO_CLOUD: true @@ -256,152 +259,3 @@ jobs: I18N_FILES_URL: 'https://raw.githubusercontent.com/ever-co/ever-teams/develop/apps/desktop/i18n' PLATFORM_LOGO: 'https://app.ever.team/assets/ever-teams.png' GAUZY_DESKTOP_LOGO_512X512: 'https://raw.githubusercontent.com/ever-co/ever-gauzy/develop/apps/desktop-timer/src/assets/icons/icon_512x512.png' - # Override unwanted environment variables - ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: '' - ANT_HOME: '' - AZURE_CONFIG_DIR: '' - AZURE_DEVOPS_CACHE_DIR: '' - AZURE_EXTENSION_DIR: '' - AZ_DEVOPS_GLOBAL_CONFIG_DIR: '' - CABAL_DIR: '' - ChocolateyInstall: '' - ChromeWebDriver: '' - COBERTURA_HOME: '' - # COMPUTERNAME: '' - # COMSPEC: '' - # CONDA: '' - # DEPLOYMENT_BASEPATH: '' - SBT_HOME: '' - SELENIUM_JAR_PATH: '' - STATS_BLT: '' - STATS_D: '' - STATS_D_D: '' - STATS_EXT: '' - STATS_EXTP: '' - STATS_RDCL: '' - STATS_TIS: '' - STATS_TRP: '' - STATS_UE: '' - STATS_V3PS: '' - STATS_VMD: '' - STATS_VMFE: '' - ANDROID_HOME: '' - ANDROID_NDK: '' - ANDROID_NDK_HOME: '' - ANDROID_NDK_LATEST_HOME: '' - ANDROID_NDK_ROOT: '' - ANDROID_SDK_ROOT: '' - # GITHUB_ACTION: '' - # GITHUB_ACTIONS: '' - # GITHUB_ACTION_REF: '' - # GITHUB_ACTION_REPOSITORY: '' - # GITHUB_ACTOR: '' - # GITHUB_ACTOR_ID: '' - # GITHUB_API_URL: '' - # GITHUB_BASE_REF: '' - # GITHUB_ENV: '' - # GITHUB_EVENT_NAME: '' - # GITHUB_EVENT_PATH: '' - # GITHUB_GRAPHQL_URL: '' - # GITHUB_HEAD_REF: '' - # GITHUB_JOB: '' - # GITHUB_OUTPUT: '' - # GITHUB_PATH: '' - # GITHUB_REF: '' - # GITHUB_REF_NAME: '' - # GITHUB_REF_PROTECTED: '' - # GITHUB_REF_TYPE: '' - # GITHUB_REPOSITORY: '' - # GITHUB_REPOSITORY_ID: '' - # GITHUB_REPOSITORY_OWNER: '' - # GITHUB_REPOSITORY_OWNER_ID: '' - # GITHUB_RETENTION_DAYS: '' - # GITHUB_RUN_ATTEMPT: '' - # GITHUB_RUN_ID: '' - # GITHUB_RUN_NUMBER: '' - # GITHUB_SERVER_URL: '' - # GITHUB_SHA: '' - # GITHUB_STATE: '' - # GITHUB_STEP_SUMMARY: '' - # GITHUB_TRIGGERING_ACTOR: '' - # GITHUB_WORKFLOW: '' - # GITHUB_WORKFLOW_REF: '' - # GITHUB_WORKFLOW_SHA: '' - # GITHUB_WORKSPACE: '' - GOROOT_1_20_X64: '' - GOROOT_1_21_X64: '' - GOROOT_1_22_X64: '' - GRADLE_HOME: '' - # HOMEDRIVE: '' - # HOMEPATH: '' - IEWebDriver: '' - ImageOS: '' - ImageVersion: '' - JAVA_HOME: '' - JAVA_HOME_11_X64: '' - JAVA_HOME_17_X64: '' - JAVA_HOME_21_X64: '' - JAVA_HOME_8_X64: '' - # LOCALAPPDATA: '' - # LOGONSERVER: '' - M2: '' - M2_REPO: '' - MAVEN_OPTS: '' - MonAgentClientLocation: '' - # npm_config_prefix: '' - # NUMBER_OF_PROCESSORS: '' - # OS: '' - # PATHEXT: '' - # PERFLOG_LOCATION_SETTING: '' - PGBIN: '' - PGDATA: '' - PGPASSWORD: '' - PGROOT: '' - PGUSER: '' - PHPROOT: '' - PIPX_BIN_DIR: '' - PIPX_HOME: '' - POWERSHELL_DISTRIBUTION_CHANNEL: '' - POWERSHELL_UPDATECHECK: '' - PROCESSOR_ARCHITECTURE: '' - PROCESSOR_IDENTIFIER: '' - PROCESSOR_LEVEL: '' - PROCESSOR_REVISION: '' - PSModuleAnalysisCachePath: '' - PSModulePath: '' - Path: 'C:\hostedtoolcache\windows\node\20.11.1\x64;C:\Program Files\Git\bin;C:\npm\prefix;C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts;C:\hostedtoolcache\windows\Python\3.9.13\x64;C:\Program Files\OpenSSL\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Amazon\AWSCLIV2\' - DOTNET_MULTILEVEL_LOOKUP: '' - DOTNET_NOLOGO: '' - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: '' - DriverData: '' - EdgeWebDriver: '' - GCM_INTERACTIVE: '' - GeckoWebDriver: '' - GHCUP_INSTALL_BASE_PREFIX: '' - GHCUP_MSYS2: '' - # RTOOLS44_HOME: '' - RUNNER_ARCH: '' - RUNNER_ENVIRONMENT: '' - RUNNER_NAME: '' - RUNNER_OS: '' - RUNNER_PERFLOG: '' - RUNNER_TEMP: '' - RUNNER_TOOL_CACHE: '' - RUNNER_TRACKING_ID: '' - RUNNER_WORKSPACE: '' - # USERDOMAIN: '' - # USERDOMAIN_ROAMINGPROFILE: '' - # USERNAME: '' - # USERPROFILE: '' - # VCPKG_INSTALLATION_ROOT: '' - # WIX: '' - # TERM: '' - # HOME: '' - # WINDIR: '' - # ProgramData: '' - # PROGRAMFILES: '' - # ProgramW6432: '' - # ALLUSERSPROFILE: '' - # APPDATA: '' - # COMMONPROGRAMFILES: '' - # CommonProgramFiles(x86) diff --git a/apps/web/app/[locale]/permissions/component.tsx b/apps/web/app/[locale]/permissions/component.tsx index 42810dfe6..f4f72d8b2 100644 --- a/apps/web/app/[locale]/permissions/component.tsx +++ b/apps/web/app/[locale]/permissions/component.tsx @@ -66,11 +66,10 @@ const Permissions = () => {
{roles.map((role) => (
{ setSelectedRole(role); @@ -103,7 +102,7 @@ const Permissions = () => {
- Estimate issue + {t('pages.settingsTeam.ESTIMATE_ISSUE')}
{ }; function SelectRole() { + const t = useTranslations(); + return (
@@ -282,7 +283,7 @@ function SelectRole() {
- Please Select any Role + {t("common.SELECT_ROLE")}
); diff --git a/apps/web/app/[locale]/timesheet/[memberId]/components/EditTaskModal.tsx b/apps/web/app/[locale]/timesheet/[memberId]/components/EditTaskModal.tsx new file mode 100644 index 000000000..3dffdc1b5 --- /dev/null +++ b/apps/web/app/[locale]/timesheet/[memberId]/components/EditTaskModal.tsx @@ -0,0 +1,231 @@ +import { Button, Modal, statusColor } from "@/lib/components"; +import { IoMdArrowDropdown } from "react-icons/io"; +import { FaRegClock } from "react-icons/fa"; +import { DatePickerFilter } from "./TimesheetFilterDate"; +import { useState } from "react"; +import { useTranslations } from "next-intl"; +import { clsxm } from "@/app/utils"; +import { Item, ManageOrMemberComponent, getNestedValue } from "@/lib/features/manual-time/manage-member-component"; +import { useTeamTasks } from "@/app/hooks"; +import { CustomSelect } from "@/lib/features"; +import { statusTable } from "./TimesheetAction"; + +export interface IEditTaskModalProps { + isOpen: boolean; + closeModal: () => void; + +} +export function EditTaskModal({ isOpen, closeModal }: IEditTaskModalProps) { + const { activeTeam } = useTeamTasks(); + const t = useTranslations(); + const [dateRange, setDateRange] = useState<{ from: Date | null }>({ + from: new Date(), + }); + const [endTime, setEndTime] = useState(''); + const [startTime, setStartTime] = useState(''); + const [isBillable, setIsBillable] = useState(false); + const [notes, setNotes] = useState(''); + const memberItemsLists = { + Project: activeTeam?.projects as [], + }; + const handleSelectedValuesChange = (values: { [key: string]: Item | null }) => { + // Handle value changes + }; + const selectedValues = { + Teams: null, + }; + + const handleChange = (field: string, selectedItem: Item | null) => { + // Handle field changes + }; + + const fields = [ + { + label: 'Project', + placeholder: 'Select a project', + isRequired: true, + valueKey: 'id', + displayKey: 'name', + element: 'Project' + }, + ]; + + const handleFromChange = (fromDate: Date | null) => { + setDateRange((prev) => ({ ...prev, from: fromDate })); + }; + return ( + +
+
+ #321 Spike for creating calendar views on mobile +
+ for + Savannah Nguyen + +
+
+
+
+ Task Time +
+ + 08:10h +
+
+
+
+ + setStartTime(e.target.value)} + className="w-full p-1 border font-normal border-slate-300 dark:border-slate-600 dark:bg-dark--theme-light rounded-md" + required + /> +
+ +
+ + + setEndTime(e.target.value)} + className="w-full p-1 border font-normal border-slate-300 dark:border-slate-600 dark:bg-dark--theme-light rounded-md" + required + /> +
+ +
+
+ {t("manualTime.DATE")} + +
+
+ getNestedValue(item, displayKey) || ''} + itemToValue={(item, valueKey) => getNestedValue(item, valueKey) || ''} + /> +
+
+ +
+ setIsBillable(!isBillable)} + label={t('pages.timesheet.BILLABLE.YES')} + /> + setIsBillable(!isBillable)} + label={t('pages.timesheet.BILLABLE.NO')} + /> +
+
+
+ Notes +