-
-
Notifications
You must be signed in to change notification settings - Fork 716
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
Fixed #1266 Bug Report When a new post is added, the latest pos… #1324
Fixed #1266 Bug Report When a new post is added, the latest pos… #1324
Conversation
…dded, the latest post section in the organization's dashboard becomes distorted.
Our Pull Request Approval ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersWhen your PR has been assigned reviewers contact them to get your code reviewed and approved via:
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1324 +/- ##
===========================================
+ Coverage 95.60% 97.44% +1.84%
===========================================
Files 137 138 +1
Lines 3344 3681 +337
Branches 937 1074 +137
===========================================
+ Hits 3197 3587 +390
+ Misses 141 89 -52
+ Partials 6 5 -1 ☔ View full report in Codecov by Sentry. |
this is not much appealing, can we hide the name of the post creator on smaller screen sizes? @gauravsingh94 |
Yes, I can hide the name of posts creater on smaller screen. I will update the changes. |
I've attempted to conceal the 'Author' section when the div is narrower than 284 pixels, but unfortunately, it doesn't seem to be functioning as intended: @media (max-width: 284px) {
.cardItem .rightCard {
display: none;
}
} Afterward, I aimed to center all the content within the div and also utilized Given the circumstances, it seems the pull request (PR) I've submitted might be the most suitable option for this scenario. Alternatively, an overhaul of the entire design of the card component might be necessary. |
|
PS. set the limit to number of lines to one, for both the author name and post title. |
…dded, the latest post section in the organization's dashboard becomes distorted Updated
…dded, the latest post section in the organization's dashboard becomes distorted Updated
@gauravsingh94 increase the column width for post section, design looks fine to me |
@rishav-devraj is it ok? |
@gauravsingh94 no its not, it should take more width where it is currently, I asked you to limit the no of lines of post title to one, also the left icon of post is taking too much width. fix these issues |
Now this one is ok? |
@gauravsingh94 this should be the actual layout |
I have updated it according the above layout you have given. Please review the new changes. @rishav-jha-mech |
…dded, the latest post section in the organization's dashboard becomes distorted Updated
…dded, the latest post section in the organization's dashboard becomes distorted Updated
@gauravsingh94 write tests for the changes you have made, make the membership requests section similar in height as per design, rest UI wise all looks good |
Ok i will add the tests and and update the height. |
…dded, the latest post section in the organization's dashboard becomes distorted Updated
…dded, the latest post section in the organization's dashboard becomes distorted Updated
@rishav-jha-mech Can you please help me how i can cover the test case for that line.I have tried but i am not able to. |
@gauravsingh94 the issue is around upcomingEvents not being loaded in the screen, there must be something wrong with your mocks setup, please check that. This is how one should debug the tests #1193 (comment) |
…dded, the latest post section in the organization's dashboard becomes distorted Updated
color: var(--bs-secondary); | ||
font-size: 0.8rem; | ||
font-weight: 300; | ||
color: #808080; |
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.
Don't use hardcoded values, use css variables from bootstrap
font-size: 1rem; | ||
color: rgb(33, 208, 21); | ||
font-size: 0.8rem; | ||
color: black; |
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.
Here also
…dded, the latest post section in the organization's dashboard becomes distorted Updated
I have update the hard coded values to the css variables from bootstrap. |
…dded, the latest post section in the organization's dashboard becomes distorted Updated
This is the section which is not getting covered in the tests. : (
upcomingEvents.map(
(event: InterfaceQueryOrganizationEventListItem) => {
return (
<CardItem
type="Event"
key={event._id}
time={event.startDate}
title={event.title}
location={event.location}
/>
); I have also updated the export const EVENT_MOCK = [
{
request: {
query: ORGANIZATION_EVENT_CONNECTION_LIST,
variables: {
organization_id: '6437904485008f171cf29924',
},
},
result: {
data: {
eventsByOrganizationConnection: [
{
_id: '1',
title: 'Sample Event',
description: 'Sample Description',
startDate: '2023-10-29T00:00:00.000Z',
endDate: '2023-10-29T23:59:59.000Z',
location: 'Sample Location',
startTime: '08:00:00',
endTime: '17:00:00',
allDay: false,
recurring: false,
isPublic: true,
isRegisterable: true,
},
],
},
},
},
]; I have added the test case for checking the that test('Checking for Upcoming Event is getting rendered or not.', async () => {
await act(async () => {
render(
<MockedProvider addTypename={false} link={link4}>
<BrowserRouter>
<Provider store={store}>
<I18nextProvider i18n={i18nForTest}>
<OrganizationDashboard />
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>
);
});
await wait();
expect(screen.getByText('Sample Event')).toBeInTheDocument();
}); I am not able figure our why organization is not loading getting error. Error Occured while loading the Organization @rishav-jha-mech |
@gauravsingh94 check if to query the Organization, its id is taken from the url of that page, check if something is missing in the local storage while you are running this test. Are you using jest preview ? |
Yes I am using jest preview and there also I am getting error while getting organization |
This pull request did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work. |
Closing due to inactivity |
…t section in the organization's dashboard becomes distorted.
What kind of change does this PR introduce?
Issue Number:
Fixes #1266
Did you add tests for your changes?
Snapshots/Videos:
Screencast.from.2023-12-30.20-10-30.webm
If relevant, did you update the documentation?
Summary
Does this PR introduce a breaking change?
Other information
Have you read the contributing guide?