hot icon indicating copy to clipboard operation
hot copied to clipboard

Feature: Include version number in the console.

Open bdougie opened this issue 2 years ago β€’ 5 comments

Type of feature

πŸ• Feature

Current behavior

This app relies on semantic versioning and it would be ideal to let the user know what version they are using.

Suggested solution

In the flagship app we highlight the version in the console. Screen Shot 2022-01-23 at 8 00 09 PM

  1. Include fetch version lib similar to open sauced.
  2. Add ascii art to the index page.

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

bdougie avatar Jan 24 '22 04:01 bdougie

This sounds like a job for me :D .take

0-vortex avatar Jan 24 '22 09:01 0-vortex

Thanks for taking this on! If you have not already, join the conversation in our Discord

github-actions[bot] avatar Jan 24 '22 09:01 github-actions[bot]

Currently, we are building the static build output in: https://github.com/open-sauced/hot/blob/0e9b53137bb252e1c6c2ffca9ed9502cd552c399/.github/workflows/release.yml#L62-L105 and Netlify build is picking up deployment before the release action finishes.

After some thorough investigation, both should be fixed for this issue to be successfully closed. The PR for this might come in 2 parts! πŸ•

0-vortex avatar Mar 12 '22 05:03 0-vortex

This might be permanently broken in the docker build, have to investigate if using the same plugin is possible

0-vortex avatar Mar 12 '22 05:03 0-vortex

We can get the version out of package.json with Vite, like we do in the PrimaryNav - un-assigning and adding this like a GFI, what do you think @bdougie ?

0-vortex avatar Aug 05 '22 01:08 0-vortex

@CMCSWEENE this is the code I would put at the top of the App.tsx here.

import { version } from "../../package.json";

    console.log(`%c
 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘    β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘    β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘
β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
 β•šβ•β•β•β•β•β• β•šβ•β•     β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•β•    β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β• β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•%c v${version()}`,
    "color:#f6d82b",
    "color:green;font-weight:bold");

bdougie avatar Aug 16 '22 18:08 bdougie

.take

erinmikailstaples avatar Aug 23 '22 22:08 erinmikailstaples

Thanks for taking this on! If you have not already, join the conversation in our Discord

github-actions[bot] avatar Aug 23 '22 22:08 github-actions[bot]

Workflow

Set up:

Task 1: Include fetch version lib similar to open sauced.

  • Added new file under lib > appVersion.js and copied over the version page

Image

Task 2: Add ascii art to the index page.

  • Added ascii art to the index page here:

Image

  1. Opened src > app.tsx + added the ascii art starting on line 13 (view below)

Image

Syncing to the repo here now.

erinmikailstaples avatar Aug 23 '22 22:08 erinmikailstaples

:tada: This issue has been resolved in version 2.25.0-beta.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Sep 08 '22 22:09 github-actions[bot]

:tada: This issue has been resolved in version 2.25.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Sep 28 '22 22:09 github-actions[bot]

:tada: This issue has been resolved in version 2.25.0-alpha.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 04 '22 05:10 github-actions[bot]