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

feat: variables and glossary #865

Merged
merged 6 commits into from
Apr 17, 2024
Merged

feat: variables and glossary #865

merged 6 commits into from
Apr 17, 2024

Conversation

kellyjosephprice
Copy link
Collaborator

@kellyjosephprice kellyjosephprice commented Apr 15, 2024

PR App Fix RM-9018 RM-9022

🧰 Changes

Supports Variables and GlossaryItems!

Ok, so this PR only has a small 🤏 code change for those components. We just have to format the correct jsx in the editor for this to work, I think.

This PR does

  • rename tests from flavored-* to *
  • removes yaml from the top of the doc
  • runs the variable browser test

🧬 QA & Testing

@kellyjosephprice kellyjosephprice changed the base branch from next to beta April 15, 2024 21:18
@kellyjosephprice kellyjosephprice marked this pull request as ready for review April 15, 2024 22:27
Copy link
Member

@trishaprile trishaprile left a comment

Choose a reason for hiding this comment

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

niceee
one behavior I noticed is that << breaks the page

example/Form.tsx Outdated
Comment on lines 24 to 28
console.log(params);
return params;
});

navigate(event.target.value);
console.log(event.target.value);
Copy link
Member

Choose a reason for hiding this comment

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

👀

Comment on lines +2 to +16
title: 'Variable Tests'
category: 5fdf9fc9c2a7ef443e937315
hidden: true
---
<<defvar>> and `<<defvar>>` and:

<Variable variable="defvar" /> and `<Variable variable="defvar" />` and:

```
<<defvar>>
<Variable variable="defvar" />
```

and

```js
const xyz = "<<defvar>>";
const xyz = "<Variable variable="defvar" />";
Copy link
Member

Choose a reason for hiding this comment

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

should we also add an example for <GlossaryItem /> to this?

@kellyjosephprice
Copy link
Collaborator Author

niceee one behavior I noticed is that << breaks the page

Yea, not sure what to do with parsing errors yet.

I do not want to support the old syntax since it causes a parsing error, that just sounds like a bad time.

@kellyjosephprice
Copy link
Collaborator Author

I'm going to merge this, but if you have any other reviews please let me know!

@kellyjosephprice kellyjosephprice merged commit aeebd7c into beta Apr 17, 2024
10 of 11 checks passed
@kellyjosephprice kellyjosephprice deleted the mdx/variables branch April 17, 2024 00:08
rafegoldberg pushed a commit that referenced this pull request Apr 17, 2024
## Version 6.75.0-beta.27

### ✨ New & Improved

* variables and glossary ([#865](#865)) ([aeebd7c](aeebd7c))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v6.75.0-beta.27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants