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

VIRA-282: Make the vira_report and vira_menu readonly #47

Open
chinwobble opened this issue Feb 6, 2021 · 22 comments
Open

VIRA-282: Make the vira_report and vira_menu readonly #47

chinwobble opened this issue Feb 6, 2021 · 22 comments
Labels
enhancement New feature or request

Comments

@chinwobble
Copy link
Collaborator

chinwobble commented Feb 6, 2021

The vira_report and vira_menu are readonly.

Based on my usage, you have created vira_prompt so that you can edit each section of a jira individually.

Like in fugitive in the git status screen you aren't allowed to edit text.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 7, 2021

We do have issues to edit them in place but for now you can use the <cr> to edit and select fields.

The report is the place for editing and menus for selecting. I do have an issue for editing and bulk editing in the menus.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 15, 2021

Async updates will now be applied to menus and reports bit this may not be 100% easy.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 15, 2021

Once the update of async next step is to send info without an extra window then have the fake read only work. I am sure there is a way to toggle the read only once I actually look for it.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 23, 2021

A note for myself:

set nomodifiable
set modifiable

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 24, 2021

@chinwobble I have done a merge one my VIRA-69 for this issue NOT the proper way, right away onto dev and risk onto master and that also made me remember this was not too much fun. There will be a proper way to do it especially now that I can multitask in vim and nvim. I will just need to turn it on and off while hide it from the display. This will also solve another one of your issues to be able to hide to the report titles. I am sure this will become upgrade them into these report titles but that will be the next great step after this.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 26, 2021

@chinwobble VIRA-213 should now how a readonly as needed. I shill needed to make it pretty but that can also be merged into the hiding of the entire "tab's" ugliness.

Let me know how it goes for you.

@chinwobble
Copy link
Collaborator Author

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 26, 2021

Yup, I just need to hide the message.

Edit

In case you were confused that is what I needed to do to make those ones nomodifiable, I know it looks wrong.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 26, 2021

I added one line of code to make make it a bit better but something is wrong deeper down. It is no longer styling the REPORT the way it was.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 27, 2021

@chinwobble that VIRA-213 push should definitely pass for this now.

@n0v1c3 n0v1c3 added the enhancement New feature or request label Feb 27, 2021
@n0v1c3 n0v1c3 changed the title Make the vira_report and vira_menu readonly VIRA-213: Make the vira_report and vira_menu readonly Feb 27, 2021
@chinwobble
Copy link
Collaborator Author

chinwobble commented Feb 27, 2021

The UI is very slow for me now.

Here's how you can profile the python code.

python3 << EOF
import vim
import cProfile
with cProfile.Profile() as pr:
  Vira.api.connect(vim.eval('g:vira_serv'))
pr.dump_stats('/tmp/vira_connect_stats.log')
EOF

Note you must not have any white space before / indents.

For me it takes 4-5 seconds just to finish the Vira.api.connect

image

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 27, 2021

This one is working for me. Only difference I will make is move it into python but you can do a quick push into it so I don't forget.

@chinwobble
Copy link
Collaborator Author

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 27, 2021

I will take a closer look at it for sure.

@n0v1c3
Copy link
Owner

n0v1c3 commented Feb 28, 2021

@chinwobble I believe the issue here is closed and only remains with the async issue.

@n0v1c3 n0v1c3 closed this as completed Mar 3, 2021
@n0v1c3
Copy link
Owner

n0v1c3 commented Mar 4, 2021

What I did broken more than it fixed so I removed a line and need to reopen this issue.

@n0v1c3 n0v1c3 reopened this Mar 4, 2021
@n0v1c3 n0v1c3 changed the title VIRA-213: Make the vira_report and vira_menu readonly VIRA-282: Make the vira_report and vira_menu readonly May 25, 2021
@n0v1c3
Copy link
Owner

n0v1c3 commented May 25, 2021

Updated the issued number to break it free from the general open the doors and README issue.

@n0v1c3
Copy link
Owner

n0v1c3 commented May 29, 2021

I did a push that covers the start if this one again and the small stuff starts to appear on me. VIRA-282 branch exists for now. I am sure more will come but here is a list for now:

- [x] Deleted `ONE` line when the OTHER window was opened.
    - Open `report` back to `menu` delete a row.
- [x] Reload the same Report with no changes.
- [x] Reload the same `window` is missing.
    - `menu` or `report` does this to you
    - Any menu regardless of different data.

@n0v1c3
Copy link
Owner

n0v1c3 commented Jun 11, 2021

Mostly into true code cleanup and hunt for bugs then it should be all good.

@n0v1c3
Copy link
Owner

n0v1c3 commented Jun 12, 2021

@chinwobble this is on the dev branch for a test now if you want to give it a run. I am bug hunting and checking my other small issues before I will just get it to master.

@n0v1c3
Copy link
Owner

n0v1c3 commented Jun 15, 2021

  • issues fail to refresh if open when commenting.
    • This is the major one now.
  • Keep win scroll position.
  • Same pos for comment updates.
  • Switch menus without close keeps position
    • Each menu should hold position
    • In fact each report should be in a history and hold its position in history.

@n0v1c3
Copy link
Owner

n0v1c3 commented Jun 26, 2021

@chinwobble,

Check out the dev branch. I am sure I have gone to far with it but it should also be more than the original issue of readonly.

I will close this one and on to the other ones as long as it is working for some other people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants