Skip to content

Conversation

@MritunjayTiwari14
Copy link

@MritunjayTiwari14 MritunjayTiwari14 commented Oct 11, 2025

Fixes #1824

Design

Before After After(Clicking Button)
b Rclick_b b (2)
w_b w_click_b w_n

Light Theme

XRecorder_20251015_04.mp4

Dark Theme

XRecorder_20251015_05.mp4

@MritunjayTiwari14 MritunjayTiwari14 changed the title compose: Add start video call button in compose compose_box: Add start video call button in compose Oct 12, 2025
@MritunjayTiwari14 MritunjayTiwari14 marked this pull request as ready for review October 12, 2025 10:56
@MritunjayTiwari14 MritunjayTiwari14 force-pushed the issue-1824 branch 3 times, most recently from 5ab42a9 to b2bb501 Compare October 14, 2025 11:22
@gnprice
Copy link
Member

gnprice commented Oct 15, 2025

Thanks. It looks like you still have a TODO item before this is ready to be reviewed, so marking it as draft for now.

@gnprice gnprice marked this pull request as draft October 15, 2025 04:06
@MritunjayTiwari14 MritunjayTiwari14 force-pushed the issue-1824 branch 10 times, most recently from 4cd6e12 to 576234b Compare October 16, 2025 09:42
@MritunjayTiwari14 MritunjayTiwari14 marked this pull request as ready for review October 16, 2025 10:02
@MritunjayTiwari14
Copy link
Author

All the TODO are done @gnprice!

@gnprice
Copy link
Member

gnprice commented Oct 17, 2025

Thanks. Before this can be reviewed, you'll need to revise it to have clear and coherent commits. See the instructions we discussed on a previous PR thread: #1830 (review)

@MritunjayTiwari14 MritunjayTiwari14 force-pushed the issue-1824 branch 7 times, most recently from e6835e8 to 8a417e9 Compare October 18, 2025 06:11
@MritunjayTiwari14
Copy link
Author

Thanks @gnprice for suggesting the refinement in commit history to make sure it becomes minimal and coherent. The same has been implemented.

@gnprice
Copy link
Member

gnprice commented Oct 20, 2025

Thanks. Some of these commits aren't coherent. For example this commit f314a74:

    deps: Update pigeon to `26.0.2` from `26.0.1`
    
    This commit is the result of the following commands:
        flutter pub upgrade --major-version pigeon
        tools/check --all-files --fix pigeon
    
    Changelog:
    
    https://pub.dev/packages/pigeon/changelog#2602
---
 .../kotlin/com/zulip/flutter/AndroidIntents.g.kt    | Bin 6118 -> 6118 bytes
 .../com/zulip/flutter/AndroidNotifications.g.kt     | Bin 30643 -> 30643 bytes
 ios/Runner/Notifications.g.swift                    |   2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)

can't be right, because it says it involved flutter pub upgrade but there's no change to pubspec.lock.

One useful step for spotting this kind of issue is to run our tests at every commit. If they fail, the commit needs fixing.

It's straightforward to do that by hand. But a command which can be a useful shortcut for it is this:
git rebase --exec 'tools/check --diff @~'

@MritunjayTiwari14
Copy link
Author

Thank you @gnprice for taking time to review the commit history and for the useful shortcut. It was very handy and i was easily able to trace the coherent status of each commit and resolve them on the go.

Following i have done the updates in the commit history to maintain coherent commit with optimized minimalism.

@gnprice
Copy link
Member

gnprice commented Oct 25, 2025

These commits still aren't coherent. As of this commit:
e47d7c0 button: Add video chat button in compose box

there's a button which doesn't do anything. That would be a buggy, broken experience for a user who tries it.

Before you ask others to review your work, it's important to take the time to read and review it carefully yourself. Reviewers' time is limited; and when reviewers have to point out the same kinds of issues repeatedly, it's not an efficient use of their time.

@MritunjayTiwari14
Copy link
Author

MritunjayTiwari14 commented Oct 25, 2025

Thank you @gnprice for the review. I understand maintainer and review have restricted time to point out same issue again and respect their time so to avoid this in future.

This problem is due to mainly me trying to understand the coherent commit style of Zulip codebase and i am trying my best to adapt it. Just a few clarification would help me to understand them more from your side and avoid these type of situations in the future:

  • Is there a need for the Implemented code for the button in compose_box to be split into multiple commits, as i personally feels the code size is moderate enough to squash all the commit related to button in a single commit?
  • As coherent commits also means each commit should be ready for deployment independent of the other, so this also means the current commit should be deployable irrespective of the previous and the upcoming commit?

Also the updated commit history has been pushed. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "start video call" button in compose

2 participants