Conversation
|
@marla-singer this replaces #1697 could you review? As part of the process, when this gets merged, the old can be closed. |
|
@jykae Check only the tags work or all visibility feature work? |
|
@marla-singer my work is checks & tags, but take also overall view of the feature. Have a nice weekend, I return to this on Monday, if anything. |
marla-singer
left a comment
There was a problem hiding this comment.
Finished. Found some code style remarks and unexpected renaming css class
apis/client/view/header/header.html
Outdated
| {{ api.name }} | ||
| {{> viewApiStatus api=api width="0.4" }} | ||
| </h1> | ||
| {{#unless api.isPublic }} |
There was a problem hiding this comment.
Please add a space between # and unless
catalogue/client/grid/grid.html
Outdated
| {{ api.getApiManagersByName }} | ||
| </span> | ||
| <p class="api-card-description"> | ||
| {{#unless api.isPublic }} |
There was a problem hiding this comment.
Please add a space between # and unless
catalogue/client/table/table.html
Outdated
| {{_ "catalogueTable_added" }} | ||
| {{ api.relativeCreatedAt }} | ||
| </i> | ||
| {{#unless api.isPublic }} |
There was a problem hiding this comment.
Space between # and unless
catalogue/client/grid/grid.less
Outdated
| margin-bottom: 1.87em; | ||
|
|
||
| .icon-indicator { | ||
| .api-status-color { |
There was a problem hiding this comment.
Why did you change it? Because of it the status indicator has wrong place:
Found:

Expected:

Or add class "pull-right" after variable "className" in this line
https://github.com/apinf/platform/blob/develop/apis/client/view/status/status.js#L23
There was a problem hiding this comment.
I like the pull-right approach. Simple, and doesn't require any new CSS/Less.
There was a problem hiding this comment.
@marla-singer pull-right fixes catalogue grid view but in API header:
I'd give styling for indicator outside status component. Because alignment might not always be the same. Or is it fine on top corner of text, and not vertical-center?
There was a problem hiding this comment.
@jykae I checked on nightly. Yes, pull-right doesn't work as expected. So change style like
.api-status-color, .icon-indicator { ... }|
@jykae Api owner doesn't watch the others public apis. Screenshots: Also it looks like you forgot add i18n tag to json file. |
|
@jykae As for me the red rectangle part looks very strange. That's not obvious how i can use it? |
|
@marla-singer Thanks for review, other things look fine founds, but the last one is not clear. Authorized users part is @brylie 's work from another PR. Already accepted. |
|
@jykae Yes, I think It should be some message to describe the purpose of this field as sentence you wrote me above "It is used to give single users permissions to view API even when API is globally marked Private." |
|
@jykae would you add the help text where @marla-singer suggests? Otherwise, how near is this PR to being merged? |
|
@brylie @marla-singer Ok, I add suggested help text. Working on this now. |
|
@jykae thanks. What is the estimate of time to complete? |
|
@brylie 12.5 mins |
|
Perfect! |
|
@brylie sorry went bit over estimate, @marla-singer please review changes |
core/lib/i18n/en.i18n.json
Outdated
| "apiSettings_visibilityPanel_title": "Visibility", | ||
| "apiSettings_visibility_heading": "Change API visibility", | ||
| "apiSettings_visibility_text": "Make this API private or public", | ||
| "api_settings_visibility_authorizedUsers": "Give single users permissions to view API even when API is globally marked Private.", |
There was a problem hiding this comment.
Rename api_settings to apiSettings as above
|
@jykae api-indicator looks bad with class pull-right 😟 Please remove class 'pull-right' and return '.icon-indicator' class in grid.less Also these doesn't have any help text. Maybe you add like on screenshot? It's just text in |
|
@marla-singer sorry, I don't know what you mean with "return '.icon-indicator' class in grid.less" |
|
@marla-singer ok, done. I don't know how that dropped out.. :) Possibly because friday afternoon. |
|
Merging |
|
thanks to both @jykae and @marla-singer |






Closes #1624
Closes #1673
Closes #1686
Replaces #1697