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

Fix #3572 revision_card_fragment.xml files merged into two xml file #4101

Merged
merged 8 commits into from
Feb 2, 2022

Conversation

ArchitJain1201
Copy link
Contributor

@ArchitJain1201 ArchitJain1201 commented Jan 14, 2022

Explanation

Fix #3572

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

Before
Screenshot_20220114_001544

After
Screenshot_20220114_130407

Before
Screenshot_20220114_001601

After
Screenshot_20220114_130450

Before
Screenshot_20220114_003102

After
Screenshot_20220114_141737

Before
Screenshot_20220114_003119

After
Screenshot_20220114_141743

@ptal bkaur-bkj

Copy link
Contributor

@bkaur-bkj bkaur-bkj left a comment

Choose a reason for hiding this comment

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

@ArchitJain1201 also change the title of PR it should be FIx #bugnum

<dimen name="revision_card_fragment_layout_margin_end">28dp</dimen>
<dimen name="revision_card_fragment_layout_margin_top_button">48dp</dimen>


Copy link
Contributor

Choose a reason for hiding this comment

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

@ArchitJain1201 remove this extra line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ma'am How can I remove revision_card_fragment_layout_margin_top_button as its value is being change in port and land mode and even it carry a different value than revision_card_fragment_layout_margin_top_text. ?

Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to remove it, you wont be able to merge 4 files into 1 as tab layout is different than mobile layout so just merge 2 tab layouts into 1 and 2 mobile into one using the dimens files and adding the required values there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changes was made

@@ -593,4 +593,13 @@

<!-- StoryFragment -->
<dimen name="story_fragment_padding_bottom">160dp</dimen>

<!-- Revision Card Fragment-->
Copy link
Contributor

Choose a reason for hiding this comment

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

@ArchitJain1201 write name of file without spacing as StoryFragment is written

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changes was made

@ArchitJain1201 ArchitJain1201 changed the title #3572 revision_card_fragment.xml files merged into two xml file Fix #3572 revision_card_fragment.xml files merged into two xml file Jan 17, 2022
@ArchitJain1201
Copy link
Contributor Author

PTAL @bkaur-bkj

@oppiabot
Copy link

oppiabot bot commented Jan 18, 2022

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

android:layout_marginTop="48dp"
android:layout_marginEnd="28dp"
android:layout_marginStart="@dimen/revision_card_fragment_layout_margin"
android:layout_marginTop="@dimen/revision_card_fragment_layout_margin_top_button"
Copy link
Contributor

Choose a reason for hiding this comment

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

@ArchitJain1201 if instead of naming dimension as margin_top_button it will look more proper as buttom_margin_top, PTAL and change it along all the files, also in 1-2 files still the extra lines are not removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry Ma'am, not able to get you, which extra lines you are talking about?

<dimen name="revision_card_fragment_layout_margin_end">28dp</dimen>
<dimen name="revision_card_fragment_layout_margin_top_button">48dp</dimen>


Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to remove it, you wont be able to merge 4 files into 1 as tab layout is different than mobile layout so just merge 2 tab layouts into 1 and 2 mobile into one using the dimens files and adding the required values there

@bkaur-bkj
Copy link
Contributor

@ArchitJain1201 also the branch has merge conflicts you need to resolve them by updating your branch with develop

@ArchitJain1201
Copy link
Contributor Author

PTAL @bkaur-bkj

@oppiabot
Copy link

oppiabot bot commented Jan 18, 2022

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

Comment on lines 408 to 411
<!-- RevisionCardFragment-->
<dimen name="revision_card_fragment_layout_min_width" tools:ignore="MissingDefaultResource">512dp</dimen>
<dimen name="revision_card_fragment_padding_bottom">160dp</dimen>
<dimen name="revision_card_fragment_layout_text_margin_top">36dp</dimen>
Copy link
Contributor

Choose a reason for hiding this comment

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

This will work but I guess it is not preferred to do this way. cc @rt4914 PTAL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

HAve consulted to sir and the required changes were made

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@ArchitJain1201 Please add before and after screenshots in PR description. Thanks a lot.

app/src/main/res/values/dimens.xml Outdated Show resolved Hide resolved
app/src/main/res/values/dimens.xml Outdated Show resolved Hide resolved
@rt4914 rt4914 assigned ArchitJain1201 and unassigned rt4914 Jan 19, 2022
@ArchitJain1201
Copy link
Contributor Author

PTAL @bkaur-bkj @rt4914

@oppiabot oppiabot bot assigned rt4914 and unassigned ArchitJain1201 Jan 19, 2022
@oppiabot
Copy link

oppiabot bot commented Jan 19, 2022

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

@rt4914
Copy link
Contributor

rt4914 commented Jan 19, 2022

@ArchitJain1201 Please reply to all the comments above so that the reviewer can know whether that suggestion was applied or not.

@rt4914 rt4914 removed their assignment Jan 19, 2022
@ArchitJain1201
Copy link
Contributor Author

PTAL @rt4914 sir I have reply to each and every comment please have a look

@bkaur-bkj bkaur-bkj removed their assignment Jan 20, 2022
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@ArchitJain1201 PTAL thanks.

app/src/main/res/values-sw600dp-port/dimens.xml Outdated Show resolved Hide resolved
@rt4914 rt4914 assigned ArchitJain1201 and unassigned rt4914 Jan 25, 2022
@ArchitJain1201
Copy link
Contributor Author

PTAL @rt4914

@oppiabot oppiabot bot assigned rt4914 and unassigned ArchitJain1201 Jan 28, 2022
@oppiabot
Copy link

oppiabot bot commented Jan 28, 2022

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

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@ArchitJain1201 One change is pending.

app/src/main/res/values-sw600dp-port/dimens.xml Outdated Show resolved Hide resolved
@rt4914 rt4914 assigned ArchitJain1201 and unassigned rt4914 Jan 28, 2022
@ArchitJain1201
Copy link
Contributor Author

PTAL @rt4914

@oppiabot oppiabot bot assigned rt4914 and unassigned ArchitJain1201 Jan 28, 2022
@oppiabot
Copy link

oppiabot bot commented Jan 28, 2022

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

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@rt4914 rt4914 enabled auto-merge (squash) February 2, 2022 07:50
@oppiabot oppiabot bot unassigned rt4914 Feb 2, 2022
@oppiabot
Copy link

oppiabot bot commented Feb 2, 2022

Unassigning @rt4914 since they have already approved the PR.

@oppiabot oppiabot bot added the PR: LGTM label Feb 2, 2022
@rt4914 rt4914 merged commit 78e1b91 into oppia:develop Feb 2, 2022
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.

Merge revision_card_fragment.xml into single xml file
3 participants