Skip to content

Fix/ue design#23

Open
AlbanSdl wants to merge 13 commits intodevfrom
fix/ue-design
Open

Fix/ue design#23
AlbanSdl wants to merge 13 commits intodevfrom
fix/ue-design

Conversation

@AlbanSdl
Copy link
Copy Markdown
Member

No description provided.

Comment thread public/locales/fr/ues.json.ts
Comment thread src/app/(wrapper)/ues/[code]/comments/[commentId]/page.tsx
</p>
)}
<div className={styles.meta}>
{!comment.isAnonymous && (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si l'utilisateur est anonyme, c'est pas possible de quand même mettre une icone user mais où c'est marqué anonyme et sans lien dessus ? (ou même une icone anonymous 👀) (en fait je pensais à un truc mais c'est ptet pas anonymous)

Dans l'idée, ya probablement mieux mais pour visualiser :
image

<div>
<div>{t('ues:detailed.comments.writtenDate', { date: comment.createdAt.toLocaleDateString() })}</div>
{comment.updatedAt && (
<div>{t('ues:detailed.comments.updatedAt', { date: comment.updatedAt.toLocaleDateString() })}</div>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

une icone clock pour chacune des 2 ça serait mieux je pense, ça fait bizarre de pas avoir d'icone à côté de updatedAt

t('ues:detailed.noWorkingTimeInfo')
)}
</div>
</div>
<div className={styles.divider} />
{!isAnnalUploaderOpen ? (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est giga long comme ternaire, ça serait cool de la diviser, limite dans le même fichier si tu veux mais là c'est dur de retrouver les séparations de la ternaire (début, milieu et fin)

Comment thread .github/workflows/ci.yaml
Comment on lines +10 to +27
runs-on: self-hosted
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint

deploy-dev:
Comment thread .github/workflows/ci.yaml
Comment on lines +28 to +56
if: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/dev') }}
runs-on: self-hosted
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Install docker
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- run: cp .env.dist .env.prod
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
build-args: |
NODE_ENV=production
NEXT_PUBLIC_API_URL=https://etu.dev.uttnetgroup.fr/api
NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login
NEXT_PUBLIC_API_VERSION=v1
NEXT_PUBLIC_API_REQUEST_TIMEOUT=5000
tags: |
${{ secrets.REGISTRY_URL }}/etuutt/front:dev

deploy-prod:
Comment thread .github/workflows/ci.yaml
Comment on lines +57 to +83
if: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/master') }}
runs-on: self-hosted
needs:
- lint
steps:
- uses: actions/checkout@v4
- name: Install docker
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- run: cp .env.dist .env.prod
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
build-args: |
NODE_ENV=production
NEXT_PUBLIC_API_URL=https://etu.utt.fr/api
NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login
NEXT_PUBLIC_API_VERSION=v1
NEXT_PUBLIC_API_REQUEST_TIMEOUT=5000
tags: |
${{ secrets.REGISTRY_URL }}/etuutt/front:prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants