-
Notifications
You must be signed in to change notification settings - Fork 0
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
RS-180: Web console shows license information #64
Conversation
@atimin I need a first review from you to check if the layout is good. I will write some tests once validated. |
There was a problem hiding this 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:
Plan: UNLIMITED
- 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
@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. |
There was a problem hiding this 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.
|
||
return ( | ||
<> | ||
{alertExplanation && <div className="licenseAlert"><LicenseAlert alertExplanation={alertExplanation} /></div>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
Closes #
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
Feature
What was changed?
A tab to show the license information.
Sample license:
No license:
Usage tab:
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.