Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS-180: Web console shows license information #64

Merged
merged 15 commits into from
Mar 27, 2024

Conversation

AnthonyCvn
Copy link
Contributor

@AnthonyCvn AnthonyCvn commented Mar 21, 2024

Closes #

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md has been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Feature

What was changed?

A tab to show the license information.

Sample license:
license-info

No license:
no-license

Usage tab:
server-usage

Related issues

No

Does this PR introduce a breaking change?

Yes, it works only with reduct-js > 1.9.1

Other information:

A bug fix was needed on reduct-js to use it on the browser. Please update to reduct-js > 1.9.1 to test the web console.

@AnthonyCvn AnthonyCvn requested a review from atimin March 21, 2024 13:15
@AnthonyCvn
Copy link
Contributor Author

@atimin I need a first review from you to check if the layout is good. I will write some tests once validated.

Copy link
Member

@atimin atimin left a comment

Choose a reason for hiding this comment

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

I love the idea to use a tab for the license information. Looks great for me.

Few minor remarks:

  1. Expire data looks strange on my side:
    image

  2. Maybe we could use bold font for names of field:

Plan: UNLIMITED

  1. Don't forget that we need validation as well. See here the example:

https://github.com/reductstore/reductstore/blob/main/reduct_cli/src/io/reduct.rs#L38

@AnthonyCvn
Copy link
Contributor Author

@atimin everything should be good and tested :) Please have a look. Just a small point, I assumed the expiration date from the license to return the number of milliseconds since midnight, January 1, 1970 (UTC), I think it's the case, but just to double check.

@AnthonyCvn AnthonyCvn requested a review from atimin March 22, 2024 15:31
@AnthonyCvn
Copy link
Contributor Author

Screenshot 2024-03-22 at 16 32 05

Copy link
Member

@atimin atimin left a comment

Choose a reason for hiding this comment

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

Looks great but there are mistakes. See my comments.

Is it possible to add an icon the License tab header when it is BUSL or expired. So the users can see that there is a problem without clicking on the tab.

src/Components/LicenseDetails/LicenseDetails.tsx Outdated Show resolved Hide resolved

return (
<>
{alertExplanation && <div className="licenseAlert"><LicenseAlert alertExplanation={alertExplanation} /></div>}
Copy link
Member

Choose a reason for hiding this comment

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

image

I'm not sure if the mentioning of BUSL is relevant here. Maybe we could say that they must contact us to extend it.

@AnthonyCvn AnthonyCvn requested a review from atimin March 26, 2024 11:20
Copy link
Member

@atimin atimin left a comment

Choose a reason for hiding this comment

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

Perfect!

@AnthonyCvn AnthonyCvn merged commit 2ede59f into main Mar 27, 2024
4 checks passed
@AnthonyCvn AnthonyCvn deleted the RS-180-WebConsole-shows-license-information branch March 27, 2024 09:54
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.

2 participants