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

Add 'all' option and display labels if selected #172

Merged
merged 67 commits into from
Aug 5, 2024

Conversation

recrwplay
Copy link
Collaborator

Allows for the addition of an all option in the products dropdown.

  • handles URL.replace depending on whether or not all is selected
  • handles URL.replace depending on whether or not localhost is the url.host
  • displays labels when all is selected

@netlify
Copy link

netlify bot commented May 18, 2023

Deploy Preview for neo4j-docs-ui ready!

Name Link
🔨 Latest commit 7103f14
🔍 Latest deploy log https://app.netlify.com/sites/neo4j-docs-ui/deploys/66b103d5eb80dd000852a846
😎 Deploy Preview https://deploy-preview-172--neo4j-docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@davidoliverSP2 davidoliverSP2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is useful to add an "All" option, even though this is going to be exactly the same as "Neo4j Enterprise Edition"? (maybe it won't always match EE though, which future proofs any decisions that come down the pipeline)

Just an observation - if you select All in the built page, the link doesn't work - was that expected?

@recrwplay
Copy link
Collaborator Author

It wasn't expected as such, but the logic of whether or not it tries to update the URL could be improved.

recrwplay and others added 26 commits February 14, 2024 17:50
When an ID is set on a block that is part of a tabbed group the tab
switching and scroll happens as it does when a user clicks on a tab.
```
:page-banner: note
:page-banner-text: Lorem ipsum dolor sit est.
:page-banner-link: https://neo4j.com/docs
:page-banner-link-text: Link text
```

`note` is the default, `warning` can also be used.
Usage

`[role=label--*]`

Can be existing labels eg `[role=label--enterprise-edition]` or
action-version labels such as `[role=label--new-5.11]` or
`[role=label--deprecated-5.13]`

- Roles are converted to labels.
- Roles applied to headings and table captions are displayed inline,
right-aligned.
- Roles on block level elements are displayed before the corresponding
block element.
Fixes a few issues in the initial implementation of neo4j-documentation#211:

- adds `cluster` and `dynamic` labels
- fixes padding in admonitions
…ation#226)

I think it's a bad UX if the page moves unexpectedly. When looking at
examples, people may want to look at them together with the text leading
to it, and they have to manually scroll back up to.
JPryce-Aklundh and others added 29 commits July 22, 2024 19:11
Fixes an issue with some labels being wrongly parsed where the text
before the first hyphen was used instead of the full label.

For example, `aura-db-enterprise` was being treated as `aura` because
that is a valid label in rolesData.json.

There are essentially two types of labels:
- 'version' labels, where we want to use only the text before the
hyphen, eg `new-5.20` for the label class and add the text after the
hyphen as label text.
- all other labels, where we take the whole label text and use that for
the label class, and take the label text from rolesData.json

This PR also fixes an issue with discrete headings.
Labels are no longer displayed on discrete headings.
There's been an intermittent problem where `after:highlightElement`
would not always fire and thus leave the `mark-line` comments untouched.
This change hopefully fixes that.
…ion#216)

- Remove the component title from the version selector
- Display the component title separately
- Move the version selector below the component title
- When there's no version selector, display only the component title.
@recrwplay recrwplay merged commit c5f2ace into neo4j-documentation:master Aug 5, 2024
4 of 5 checks passed
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.

7 participants