docat icon indicating copy to clipboard operation
docat copied to clipboard

Fix versions selection

Open galaplexus opened this issue 2 years ago • 11 comments

On UI: Modified buttons on the docs page to look like the buttons on home page. Also prevents overlay of the select field with the versions button.

On version switching behavior: Keeping the doc path when switching between versions. I think you tried to do that but was definitely not working on my system. I had to change the repository functions. Added some tests ofc.

galaplexus avatar Mar 06 '22 12:03 galaplexus

@galaplexus does this depend on https://github.com/docat-org/docat/pull/167 ? if not please rebase and cleanup your commits

fliiiix avatar Mar 06 '22 17:03 fliiiix

@galaplexus thanks for rebasing :tada:

@randombenj did you had a chance to review these changes? As this will be the next MR to tackle after https://github.com/docat-org/docat/pull/167

fliiiix avatar Mar 11 '22 19:03 fliiiix

This PR needs a rebase and a review to move forward.

fliiiix avatar Mar 13 '22 09:03 fliiiix

@galaplexus Thanks again for this MR!

  1. Please don't redesign the home and version selection button as this was intentionally designed this way after some discussion with @BrunnerLivio and working on this issue: https://github.com/docat-org/docat/issues/122 Also, right now the selected verison is not shown correctly.

  2. I tested the path persistence and it doesn't seem to work for me, it always redirects to the home of the selected version. I have to admit that the current implementation is quite strange with some quirks and I wanted to rewrite it but never had the time until now ...

randombenj avatar Mar 14 '22 10:03 randombenj

  1. It's not really a redesign and my new solution is still compatible with your drawing. One may even argue I use less space on the underlying docs. For me the other solution was really hard to use: impossible to close the selection tab and almost impossible to hit the home button. I think it makes more sense to keep a similar look to the home page. You wrote: "right now the selected version is not shown correctly." WDYM?

  2. Just fixed it. Somehow I had to force change the version manually on web/src/pages/Docs.vue line 31

galaplexus avatar Mar 16 '22 14:03 galaplexus

Any news on this? Or still open points?

galaplexus avatar Apr 09 '22 12:04 galaplexus

I think the main point here is still the redesign but currently nobody has time to review it and make a decision to move forward with this

fliiiix avatar Apr 11 '22 06:04 fliiiix

I think the main problem with this PR is that this looks weird -> image

And I can not reproduce the issue this pr is fixing. Unless these 2 issues are not addressed im inclined to close this PR. What do you think @galaplexus & @randombenj ?

fliiiix avatar Aug 07 '22 07:08 fliiiix

The MR fixes:

  1. The version selection overlays with the "select version" button and the home button.
  2. Clicking outside of the version selection doesn't close the window. The only way I found how to close the window is to reload. image
  3. When you are on a page and you change version, you are redirected to the home page. My MR keeps the path of the current page.

To your concern about the "weird look". I have not been shocked by it ^^ but maybe can you explain what you find weird?

galaplexus avatar Aug 07 '22 11:08 galaplexus

The version selection overlays with the "select version" button and the home button.

Fair that is an issue but you can click on the same versions to close the version selector again. (which is not very obvious)

When you are on a page and you change version, you are redirected to the home page. My MR keeps the path of the current page.

I see we should fix that.

What about keeping the old design but just offset the selection menu to the top of the menu?

fliiiix avatar Aug 07 '22 13:08 fliiiix

Yes I have tried offsetting higher but unfortunately this was not possible. I Googled it for quite a while. You are using md-options which doesn't give us much options. Also I think the round buttons looks good and it's nice to have consistency between pages.

galaplexus avatar Aug 07 '22 13:08 galaplexus

closed because it is outdated

fliiiix avatar Sep 29 '22 10:09 fliiiix