diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..9cc19b0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## Content of the PR + +> Describe what this PR does and why + +## How did you test ? + +> How did you verify that your work change and one can other verify it + + diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..65b00af --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,43 @@ +# https://turbo.build/repo/docs/ci/github-actions + +name: Test Frontend CI + +on: + pull_request: + branches: + - main + paths: + - 'frontend/**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Cache node modules + uses: actions/cache@v4 + with: + path: frontend/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/frontend/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + working-directory: frontend + run: yarn install + + - name: Run lint + working-directory: frontend + run: yarn lint + + - name: Run build + working-directory: frontend + run: yarn build diff --git a/frontend/src/app/epd/[id]/page.tsx b/frontend/src/app/epd/[id]/page.tsx index 2a34c2e..7a5b749 100644 --- a/frontend/src/app/epd/[id]/page.tsx +++ b/frontend/src/app/epd/[id]/page.tsx @@ -55,7 +55,9 @@ export default function SearchApp() { {results.map((result) => (
  • {result.title}

    -

    {result.description}

    +

    + {result.functionalUnit} +

  • ))} diff --git a/frontend/src/app/search/page.tsx b/frontend/src/app/search/page.tsx index 7236b0a..057879b 100644 --- a/frontend/src/app/search/page.tsx +++ b/frontend/src/app/search/page.tsx @@ -69,8 +69,12 @@ export default function SearchApp() { {results.map((result) => ( - - + +
    @@ -91,7 +95,7 @@ export default function SearchApp() {

    - Performance principale de l'UF (U.F.):{' '} + Performance principale de l'UF (U.F.):{' '} {' '} {result.mainPerformance}
    diff --git a/frontend/src/components/Background.tsx b/frontend/src/components/background.tsx similarity index 100% rename from frontend/src/components/Background.tsx rename to frontend/src/components/background.tsx diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/footer.tsx similarity index 100% rename from frontend/src/components/Footer.tsx rename to frontend/src/components/footer.tsx