Closed crowlKats closed 2 years ago
The arrows are displaying in the nav, but aren't expandable, is that expected?
Something is not right with code view of a dir: https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/async?code returns all the files in the repo... I will check API land, but there is something wrong too with the display:
The nav doesn't meet my user expectations at all... I don't expect to drop back to the root when collapsing a section, and I don't expect expanding another module to cause me to navigate to it:
https://user-images.githubusercontent.com/1282577/182728402-34fc516c-5134-420e-b330-1e485bf5e8c9.mp4
Yes, the arrows arent openable, they only open when on a symbol for given file. there is no point in being able to open a list of symbols when you are on a page on which the main view is a list of symbols
Yes, the arrows arent openable, they only open when on a symbol for given file. there is no point in being able to open a list of symbols when you are on a page on which the main view is a list of symbols
But what about the other modules on that page?
and why provide a visual indication something is expandable, but isn't... if we don't want to list the symbols, then we should not have an arrow for that module
Something is not right with code view of a dir: https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/async?code returns all the files in the repo... I will check API land, but there is something wrong too with the display:
seems that CodePageDirEntry.size
can be undefined
https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/collections/mod.ts?s=BinaryHeap and https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/collections/mod.ts?s=BSTree are returning errors and not sure why
TypeError: properties is not iterable
at getClassItems (https://raw.githubusercontent.com/denoland/doc_components/5455c13b7e6176324357e58cf3b554542ed412bb/classes.tsx:71:14)
at Object.CodeBlockClass (https://raw.githubusercontent.com/denoland/doc_components/5455c13b7e6176324357e58cf3b554542ed412bb/classes.tsx:189:17)
deno_doc issue?
and why provide a visual indication something is expandable, but isn't... if we don't want to list the symbols, then we should not have an arrow for that module
aight, would you prefer removing indicator or being able to open them?
and why provide a visual indication something is expandable, but isn't... if we don't want to list the symbols, then we should not have an arrow for that module
aight, would you prefer removing indicator or being able to open them?
@ije thoughts? My feeling is remove them, (but not shift the label back, so empty space)
Appears to be decoding doc nodes out of the datastore, which is strange, because some classes are working... need to investigate further.
I also think the arrow is just used to expand/collapse the symbols without switch page
https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/collections/mod.ts?s=BinaryHeap and https://dotland-43gn4xkhvyag.deno-staging.dev/std@0.150.0/collections/mod.ts?s=BSTree are returning errors and not sure why
TypeError: properties is not iterable at getClassItems (https://raw.githubusercontent.com/denoland/doc_components/5455c13b7e6176324357e58cf3b554542ed412bb/classes.tsx:71:14) at Object.CodeBlockClass (https://raw.githubusercontent.com/denoland/doc_components/5455c13b7e6176324357e58cf3b554542ed412bb/classes.tsx:189:17)
deno_doc issue?
@kitsonk sidepanel toggling is now implemented
https://dotland-zmbnxadarwe0.deno.dev/std@0.150.0/collections/aggregate_groups.ts?s=aggregateGroups
TypeError: Cannot read properties of undefined (reading 'length')
at Object.TypeParams (https://raw.githubusercontent.com/denoland/doc_components/8d1ffb95737d773c8a1bb9419c37101950258842/types.tsx:686:15)
seems another similar issue
I know we can't do it yet on the landing page, but any chance we can get the popularity tag on the pages here while we work on the landing page (and actually we should always suppress the tag for std
in my opinion:
@kitsonk sidepanel toggling is now implemented
there are things I am still not sure about with it, but feels like we can iterate from here.
I know we can't do it yet on the landing page, but any chance we can get the popularity tag on the pages here while we work on the landing page (and actually we should always suppress the tag for
std
in my opinion:
ah yea, will do that
there are things I am still not sure about with it, but feels like we can iterate from here.
sure; though any example of something you are unsure about?
The folders here end with "/"
I think mod.ts should be above the folders and the mod.ts should be expanded by default so you can see the index.
mod.ts should be expanded by default so you can see the index.
by default you land on the mod.ts file, which is a page of an index of all symbols available; having also the sidepanel open by default makes little sense imo
sure; though any example of something you are unsure about?
yes, some of what Ryan is saying, but also, the target just being arrow, and the larger target causing navigation to occur instead of expanding the folder... feels like there should be some visual indication that you are going to navigate, versus just ending up on a different page half the time.
I haven't checked it on mobile, but now it is making me curious.
I haven't checked it on mobile, but now it is making me curious.
sidepanel on mobile iirc is currently disabled
Fixed the trailing slash, improved the toggle area for module toggle and added a hover state; now design wise its nearly identical to the manual's sidepanel
So expanding the symbols is still a bit clunky... it isn't keyboard navigable and when hovering, it lacks the hand to indicate it is actionable:
https://user-images.githubusercontent.com/1282577/182980522-8fe7faa4-1e5c-41a6-929c-c23b69d3ce46.mp4
Also, we need to figure out how to eliminate folders that don't have docable children or subfolders from the nav (I think that is an apiland thing) because clicking on the docs
folder in the nav brings you here: https://dotland-30mgnt9pwa30.deno.dev/x/oak@v10.6.0/docs
We might also want to render that though a bit better if someone hard links to it, to something like "no documentation found" and give them a link back to the root of the module?
yes, was considering that. was going to do that later
@lucacasonato actually, thats not doable: it has to be reliant on apiland given if you import without version
It should pull the version from s3, like we do now.
currently we actually use the CDN. regardless; quite annoying having to add another request and handling for versioning with that...
For now, for raw, let's pull the latest version from S3 if we need it. We need a very stable and fast way to do this. I don't want to bring down every client just because there is a hiccup in apiland. We will address this "hot path" in the migration of registry2 to the new infrastructure, but for raw, we might not get much better than what we have now.
@lucacasonato fixed it, now raw code serving is pretty much the first thing that is done
should we get rid of the CDN usages and use S3 directly? we have always used S3 for raw code serving, and cdn for rendered code/readme view, which makes little sense
yes, please switch to using s3 directly.
Really bad layout: https://dotland-4c36wt9tfhkg.deno-staging.dev/x/lambda@1.24.2/mod.ts?s=ALBEvent
Feels that that should really be addressed.
Depends on denoland/doc_components#19 Closes: #2341