Conversation
| */ | ||
|
|
||
| import { AxiosResponse } from 'axios'; | ||
| import { Topic } from 'Models'; |
There was a problem hiding this comment.
Import this from Topics under generated folder
There was a problem hiding this comment.
For this PR we can use from models and we can change it in another Separate PR.
| <> | ||
| {tags.slice(0, LIST_SIZE).map((tag, index) => ( | ||
| <Tags | ||
| className="tw-bg-gray-200" |
There was a problem hiding this comment.
Why using tailwind color scheme for BG color?
| <span className=""> | ||
| <Tags | ||
| className="tw-border-main tw-text-primary" | ||
| tag="+ Add new tag" |
There was a problem hiding this comment.
Changes Add new tag to Add tag as it gives wrong impression of being able to add custom tags on the fly
There was a problem hiding this comment.
Make this change everywhere, either in this PR or make a separate PR for it
| @@ -0,0 +1,22 @@ | |||
| import { getJSONFromString } from '../../utils/StringsUtils'; | |||
|
|
|||
| export const JSON_TAB_SIZE = 2; | |||
There was a problem hiding this comment.
Move this to constants file
|
|
||
| export const JSON_TAB_SIZE = 2; | ||
|
|
||
| export const getEditorValue = (value: string, autoFormat = true): string => { |
There was a problem hiding this comment.
Name it as getSchemaEditorValue
| }; | ||
|
|
||
| // topic interface start | ||
| export interface Topic { |
There was a problem hiding this comment.
No need to add this interface in types.d.ts, use it directly from generated types
| @@ -0,0 +1,333 @@ | |||
| import { AxiosResponse } from 'axios'; | |||
| import { compare } from 'fast-json-patch'; | |||
| import { observer } from 'mobx-react'; | |||
There was a problem hiding this comment.
Why we need observer if we do not have appstate in this component?
| import { AxiosResponse } from 'axios'; | ||
| import { compare } from 'fast-json-patch'; | ||
| import { observer } from 'mobx-react'; | ||
| import { ColumnTags, TableDetail, Topic } from 'Models'; |
There was a problem hiding this comment.
Topic from generated folder
darth-coder00
left a comment
There was a problem hiding this comment.
Requested few changes
|
Also add some max height to the container above |
|
Addressed every comment except that use types from generated types. will fix that on separate PR. |
Closes #366
Describe your changes :
I worked on the topics details page because the need to add a topics details page where the user can see the whole detail of the topic.
Type of change :
Frontend Preview (Screenshots) :
Checklist:
Reviewers
@shahsank3t, @darth-coder00,