Skip to content

feat: prevent typing over-long topic names #1230

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

Closed
wants to merge 10 commits into from

Conversation

ARYPROGRAMMER
Copy link

This PR adds the functionality mentioned in the Issue #1218

  • It implements a value notifier, adds a listener and creates a function to enforce limit.
  • Displays the limit alongside current characters
  • Does not change any core functionality and does not break anything else

Demo Video on a real android device:

demo.mp4

@gnprice
Copy link
Member

gnprice commented Dec 28, 2024

Thanks. Before we can review this PR, it will need (a) tests, and (b) to remove extraneous changes so that the commit is readable. See our README:
https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request

@ARYPROGRAMMER
Copy link
Author

Thanks. Before we can review this PR, it will need (a) tests, and (b) to remove extraneous changes so that the commit is readable. See our README: https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request

surely greg, the file was auto formatted thus it happened so. For the tests, I'll just look into it and fix it

Signed-off-by: ARYPROGRAMMER <[email protected]>
Signed-off-by: ARYPROGRAMMER <[email protected]>
Signed-off-by: ARYPROGRAMMER <[email protected]>
@ARYPROGRAMMER
Copy link
Author

@gnprice lgtm now , go ahead with the review. Let me know further

@ARYPROGRAMMER
Copy link
Author

Thanks. Before we can review this PR, it will need (a) tests, and (b) to remove extraneous changes so that the commit is readable. See our README: https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request

surely greg, the file was auto formatted thus it happened so. For the tests, I'll just look into it and fix it

hey greg any updates?

@gnprice
Copy link
Member

gnprice commented Dec 30, 2024

This still has extraneous changes which you'll need to remove before we can review it. See the link I posted above, and see in particular the Zulip guide to clear and coherent commits which is linked from there.

There's also no need to re-ping after a day. Reviewers have weekends, and holidays, and also other work responsibilities. If it's been a week or two since you requested review and there's no reply, then it can be appropriate to bump the thread.

@chrisbobbe
Copy link
Collaborator

chrisbobbe commented Dec 30, 2024

Since #1218 will make our max-length check more prominent (acting even before you tap "send"), ideally we would fix a correctness issue before implementing this. I've just filed that correctness issue as #1238.

Signed-off-by: Arya Pratap Singh <[email protected]>
Signed-off-by: Arya Pratap Singh <[email protected]>
@ARYPROGRAMMER
Copy link
Author

let me know whether I should pull changes from #1239 and add them to this PR

@chrisbobbe
Copy link
Collaborator

chrisbobbe commented Jan 2, 2025

I recommend either rebasing your PR on top of my current revision for #1239 or pausing work on it until #1239 settles.

@ARYPROGRAMMER
Copy link
Author

I recommend either rebasing your PR on top of my current revision for #1239 or pausing work on it until #1239 settles.

I think we can wait till #1239 finishes. thanks

@ARYPROGRAMMER
Copy link
Author

@chrisbobbe any updates on this

@chrisbobbe
Copy link
Collaborator

#1239 has been merged! 🎉

@ARYPROGRAMMER
Copy link
Author

#1239 has been merged! 🎉

what changes are needed now in this? just rebase?

@ARYPROGRAMMER
Copy link
Author

i'll jjust have to pull the new compose box and its test and add my current pr changes in it, is this correct or do we need something more?

@chrisbobbe
Copy link
Collaborator

You should rebase your commits on top of current main, which now includes the commits from #1239. If you need help, the best place to ask is #git help in the Zulip development community 🙂

@ARYPROGRAMMER
Copy link
Author

You should rebase your commits on top of current main, which now includes the commits from #1239. If you need help, the best place to ask is #git help in the Zulip development community 🙂

i have made the changes required in the file but maybe i would need to open a new pr for this to get rebased safely, kindly provide suggestions. thanks

@ARYPROGRAMMER
Copy link
Author

or if you can remove merge commits or squash everything then i think this will work. let me know further

@chrisbobbe
Copy link
Collaborator

If you need help, the best place to ask is #git help in the Zulip development community 🙂

There's no need to open a new PR; just force-push here: https://zulip.readthedocs.io/en/latest/git/using.html#force-push-changes-to-github-after-you-ve-altered-your-history

@ARYPROGRAMMER
Copy link
Author

ARYPROGRAMMER commented Jan 24, 2025

If you need help, the best place to ask is #git help in the Zulip development community 🙂

There's no need to open a new PR; just force-push here: https://zulip.readthedocs.io/en/latest/git/using.html#force-push-changes-to-github-after-you-ve-altered-your-history

i mean i already created a new pr so can we go with that, i'll have to setup this up again in local if i have to do force push

PS: since that one is closed i need to figure this out now

@ARYPROGRAMMER
Copy link
Author

If you need help, the best place to ask is #git help in the Zulip development community 🙂

There's no need to open a new PR; just force-push here: https://zulip.readthedocs.io/en/latest/git/using.html#force-push-changes-to-github-after-you-ve-altered-your-history

having some difficulties ,check once please.

git push origin +feat/compose

I ran this. maybe still there are issues. let me know further

@chrisbobbe
Copy link
Collaborator

If you need help, the best place to ask is #git help in the Zulip development community 🙂

@gnprice
Copy link
Member

gnprice commented Feb 6, 2025

Thanks @ARYPROGRAMMER for your work on this so far.

We're now focusing more strictly on launch issues until the launch is ready, and this is a post-launch issue. It doesn't seem like this PR has reached the point yet of being possible for us to review, so I'll go ahead and close it.

@gnprice gnprice closed this Feb 6, 2025
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.

3 participants