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

[GSoC'24] M1.4 Add features, platform section #20479

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

AkashPaloju
Copy link
Contributor

Overview

  1. This PR fixes or fixes part of [Feature Request]: Update the informational pages on the Oppia website #19850 .
  2. This PR does the following: Adds features, platform section

Essential Checklist

Please follow the instructions for making a code change.

  • I have linked the issue that this PR fixes in the "Development" section of the sidebar.
  • I have checked the "Files Changed" tab and confirmed that the changes are what I want to make.
  • I have written tests for my code.
  • The PR title starts with "Fix #bugnum: " or "Fix part of #bugnum: ...", followed by a short, clear summary of the changes.
  • I have assigned the correct reviewers to this PR (or will leave a comment with the phrase "@{{reviewer_username}} PTAL" if I can't assign them directly).

Proof that changes are correct

features-desktop-preview.webm

Proof of changes on desktop with slow/throttled network

features-throttle-preview.webm

Proof of changes on mobile phone

features-mobile-preview.webm

Proof of changes in Arabic language

features-arabic-preview.webm

PTAL @Lawful2002

PR Pointers

@AkashPaloju AkashPaloju requested a review from a team as a code owner June 17, 2024 11:33
Copy link

oppiabot bot commented Jun 17, 2024

Assigning @Lawful2002 for the first pass review of this PR. Thanks!

@AkashPaloju
Copy link
Contributor Author

AkashPaloju commented Jun 17, 2024

PTAL @melhikh review the videos posted above. Thanks!

@melhikh
Copy link

melhikh commented Jun 17, 2024

PTAL @melhikh review the videos posted above. Thanks!

Both the interaction and the design are correct and nice.

@AkashPaloju
Copy link
Contributor Author

Couldn't understand why this test is not covered and it is failing on my PR

ERROR:root:summarize-nonnegative-number.pipe.ts seems to be not completely tested. Make sure it's fully covered.

Screenshot from 2024-06-17 19-05-20

@seanlip
Copy link
Member

seanlip commented Jun 17, 2024

@AkashPaloju Have you read the wiki page on frontend tests and the section on coverage? There should be a local coverage report file you can look at to see what the issue is.

In general when you run into dev stack issues please take a look at the wiki page and see if your doubt is answered in the relevant section, then in your question specify which pages you've looked at. Thanks!

@AkashPaloju
Copy link
Contributor Author

AkashPaloju commented Jun 17, 2024

Yes, I am aware of the test coverage part on the wiki. My doubt is why the test coverage check of the file core/templates/filters/summarize-nonnegative-number.pipe.ts is failing on CI of my PR here. I haven't written this file and the code I removed in this PR haven't used this pipe ( No, such big numbers are there in the old features section that are summarized by this pipe.)

image

image

Edit : Found the bug the pipe summarize-nonnegative-number is imported in SharedComponentsModule and I have imported this module in the .spec.ts file in the PR. That pipe is imported but it's methods are not called, so that's why it came under un-coveraged files.

Copy link
Contributor

@Lawful2002 Lawful2002 left a comment

Choose a reason for hiding this comment

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

Thanks @AkashPaloju, a couple comments. Also at 0:13 in your first video, clicking on the Explore Lessons is redirecting to non existent page. I don't think that should happen.

},
];

panelIsCollapsed: boolean[] = [true, true, true, true];
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of having this here separately, let's include this as part of the featuresData array items itself. This makes it more maintainable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

I still see this array

text: string;
image?: string;
customPanelClassNames: string[];
customTitleClassNames: string[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Inline with the previous comment, include a boolean collapsed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link

oppiabot bot commented Jun 17, 2024

Unassigning @Lawful2002 since the review is done.

Copy link

oppiabot bot commented Jun 17, 2024

Hi @AkashPaloju, it looks like some changes were requested on this pull request by @Lawful2002. PTAL. Thanks!

@AkashPaloju
Copy link
Contributor Author

AkashPaloju commented Jun 17, 2024

Hey Lawful2002 learn/math/ page won't be available for general user on local server that's why we get 404 on that page.
For example, I haven't made any changes to the splash page, but this button takes us to learn/math which gives us 404. You can verify on your local server. To access it we need to create a classroom in the super admin page first.

Screencast.from.17-06-24.11.01.18.PM.IST.webm

@AkashPaloju
Copy link
Contributor Author

@Lawful2002 PTAL at the changes
Thanks!

@oppiabot oppiabot bot assigned Lawful2002 and unassigned AkashPaloju Jun 17, 2024
Copy link

oppiabot bot commented Jun 17, 2024

Unassigning @AkashPaloju since a re-review was requested. @AkashPaloju, please make sure you have addressed all review comments. Thanks!

@Lawful2002
Copy link
Contributor

Hey Lawful2002 learn/math/ page won't be available for general user on local server that's why we get 404 on that page. For example, I haven't made any changes to the splash page, but this button takes us to learn/math which gives us 404. You can verify on your local server. To access it we need to create a classroom in the super admin page first.

Screencast.from.17-06-24.11.01.18.PM.IST.webm

Hi Akash, can you create a classroom, and test it, just to be absolutely sure.

@AkashPaloju
Copy link
Contributor Author

@Lawful2002 , PTAL at this video. Thanks!

Screencast.from.18-06-24.06.23.57.PM.IST.webm

Copy link

oppiabot bot commented Jun 19, 2024

Hi @AkashPaloju. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

@AkashPaloju AkashPaloju added this pull request to the merge queue Jun 20, 2024
Copy link
Contributor

@Lawful2002 Lawful2002 left a comment

Choose a reason for hiding this comment

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

Actually, I don't see my comment resolved. PTAL

},
];

panelIsCollapsed: boolean[] = [true, true, true, true];
Copy link
Contributor

Choose a reason for hiding this comment

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

I still see this array

Copy link

oppiabot bot commented Jun 20, 2024

Unassigning @Lawful2002 since they have already approved the PR.

@AkashPaloju
Copy link
Contributor Author

@Lawful2002
Copy link
Contributor

Actually, I don't see my comment resolved. PTAL

Where ? https://github.com/oppia/oppia/pull/20479/files#diff-f6a254d63de21eb2bd14c8722d18ef6df52a4e367e723cf0d0af851b800a2264

Hmm can't find it now. Weird

@oppiabot oppiabot bot added the PR: LGTM label Jun 20, 2024
Copy link

oppiabot bot commented Jun 20, 2024

Hi @AkashPaloju, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks!

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 20, 2024
@AkashPaloju AkashPaloju added this pull request to the merge queue Jun 20, 2024
Merged via the queue into oppia:develop with commit 94ca382 Jun 20, 2024
95 of 96 checks passed
@AkashPaloju AkashPaloju deleted the our-features branch June 20, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants