Pogues icon indicating copy to clipboard operation
Pogues copied to clipboard

Display the current version and git reference

Open romaintailhurat opened this issue 3 years ago • 3 comments

Hi there!

It would be interesting to have the application current version and / or git or GitHub reference (i'm thinking tags here) somewhere in the deployed application (header or footer).

romaintailhurat avatar Aug 19 '21 09:08 romaintailhurat

What about that kind of solution using Webpack ?

romaintailhurat avatar Aug 19 '21 09:08 romaintailhurat

CRA will replace Webpack custom config soon (branch dev-cra is pretty ready to be merged into master).

A simple way to display is to import directly from package.json into the dedicated component:

import { version } from '../*/package.json';

NicoLaval avatar Aug 19 '21 10:08 NicoLaval

Nice, i'll wait for this version, and maybe i'll propose a PR. 😄

Any timing for the merge ?

romaintailhurat avatar Aug 19 '21 15:08 romaintailhurat

Back-end version can be part of this too (via a specific API call)

romaintailhurat avatar Mar 21 '23 10:03 romaintailhurat

This can be displayed in the header:

image

romaintailhurat avatar Dec 20 '23 09:12 romaintailhurat

⬆️ A simple enhancement: add a link to the version tag directing to the release note (for example: https://github.com/InseeFr/Pogues/releases/tag/1.5.4)

romaintailhurat avatar Jan 08 '24 14:01 romaintailhurat