zulip-terminal
zulip-terminal copied to clipboard
Highlight narrowed stream/topic.
What does this PR do? Solves #516. Highlights the current narrow.
Discussed here . Tested?
- [x] Manually
- [x] Existing tests (adapted, if necessary)
- [x] Passed linting & tests (each commit)
Commit flow
- first commit sets theme for zt_dark. Will rebase and change for other themes.
- second commit sets functions for highlighting button
- third commit is for model.py highlight whenever narrow_to is called.
Notes & Questions
- Crashes when non-stream narrows are triggered (will fix, is fixed in last WIP PR)
- topics are not highlighted yet.
- Is the issue on linux systems fixed (related to second commit).
Visual changes
Formatting changes.
@plugyawn Also as I mentioned elsewhere, please do your best to keep the linters and tests passing. The linting is normally easily fixed with black or make fix
.
Were the AttributeError
s you were trying to fix coming from the tests?
Removed the redundant code.
@plugyawn Also as I mentioned elsewhere, please do your best to keep the linters and tests passing. The linting is normally easily fixed with black or
make fix
.Were the
AttributeError
s you were trying to fix coming from the tests?
Did the linting just now, sorry!
Yep, the AttributeErrrors are coming from the tests, not sure why.
@plugyawn Also as I mentioned elsewhere, please do your best to keep the linters and tests passing. The linting is normally easily fixed with black or
make fix
. Were theAttributeError
s you were trying to fix coming from the tests?Did the linting just now, sorry!
Yep, the AttributeErrrors are coming from the tests, not sure why.
Do you think shifting code to core.py would resolve these errors?
Heads up @plugyawn, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main
branch and resolve your pull request's merge conflicts accordingly.
Closing in favor of rebased/readjusted version of later version of this PR, ie. #1334.