Webiny-js: Feature request: Show version of webiny

Created on 21 Aug 2020  路  15Comments  路  Source: webiny/webiny-js

Feature request: Show what version of Webiny that is published

Thoughts about location (/admin):

  • API Information
  • at the very bottom, e.g. webiny.com v4.9.2
feature good-first-issue hacktoberfest

All 15 comments

@AlbionaHoti I would like to work on this :slightly_smiling_face:

Edit: Nevermind, I don't have an AWS account to work on this project :frowning_face:

@AlbionaHoti I would like to work on this 馃檪

Edit: Nevermind, I don't have an AWS account to work on this project 鈽癸笍

Hi @blenderskool, Welcome to Webiny :) Regarding the AWS account, you can read more from one of the FAQ. If you would like to contribute, you can follow up our Get Started YouTube videos to set up the requirements for starting with Webiny. :rocket:

Hello @AlbionaHoti @bbarthel

I would like to work on this issue :)

Hi @parshnt, You can continue with the issue. If you do have any question, please join our community slack, for it's easier to get in touch with the core team :)

@blenderskool thank you for your effort :)

Sure @AlbionaHoti

I'm part of the community on Slack as well now :)

@AlbionaHoti since there is no updates or PR by parshnt can I take up this issue?

Hey @aloks98, let's see if @parshnt has an update, if not, you can continue on the issue :)

@AlbionaHoti

I'm halfway there, I've successfully added the current version to the bottom left on /admin but I'm a bit confused about API information part.

@parshnt please reach out if you have any questions on our slack community.

Hey @aloks98, if you are interested to contribute, you can continue with this issue, I'll assign it to you, just let me know!
Note that we have time up until 31st of October for the hacktoberfest approved issues 馃殌

@AlbionaHoti I have some questions about this.

  1. Where exactly I can find the version of webiny in the project? I found some version fields in package.json of some packages in api
  2. I also found the last released version from CHANGELOG.md. Should I use that?
  3. Where do I need to show the version of webiny? In the admin app/or the actual website that will be published?

Hey @aloks98, thanks for asking these questions.

  1. We should first try to add a REACT_APP_WEBINY_VERSION variable to our bundling process. Something similar to this project-utils/bundling. As the CLI version will always be the same as other package versions, so it's safe to add it there.
  2. Inside this file you can import the version like this:
 const { version } = require("@webiny/project-utils/package.json");
  1. Ideally we want the version shown somewhere in the navigation, at the very bottom. For example,

image

Please let me know if you have more question :slightly_smiling_face:

Hey @Ashu96 I have made some changes!
Screenshot from 2020-10-26 22-51-26
One more thing, the process.env.REACT_APP_WEBINY_VERSION will be static? If it's static we have to change it with every version release.
If I may suggest, we can change the version in the package.json of the admin or webiny package (wherever the version is updated) and pull it from there into the bundling process?

Nice work @aloks98

I don't get why process.env.REACT_APP_WEBINY_VERSION will be static if we're setting it to the package version we're importing like:

 const { version } = require("@webiny/project-utils/package.json");

as mentioned in the earlier comment.

ps: Please use community slack for faster response.

Oh okay I missed that part xD I will change that now and make a PR :D

Was this page helpful?
0 / 5 - 0 ratings