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

Advance RFC #0811 "Element Modifiers" to Stage Recommended #934

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

emberjs-rfcs-bot
Copy link
Collaborator

@emberjs-rfcs-bot emberjs-rfcs-bot commented Jun 10, 2023

Advance #811 to the Recommended Stage

Summary

This pull request is advancing the RFC to the Recommended Stage.

An FCP is required before merging this PR to advance.

Recommended Stage Summary

The "Recommended" stage is the final milestone for an RFC. It provides a signal to the wider community to indicate that a feature has been put through its ecosystem paces and is ready to use.

To reach the "Recommended" stage, the following should be true:

If appropriate, the feature is integrated into the tutorial and the guides prose. API documentation is polished and updates are carried through to other areas of API docs that may not directly pertain to the feature.

If the proposal replaces an existing feature, the addon ecosystem has largely updated to work with both old and new features.

If the proposal updates or replaces an existing feature, high-quality codemods are available.

If needed, Ember debugging tools as well as popular IDE support have been updated to support the feature.

If the feature is part of a suite of features that were designed to work together for best ergonomics, the other features are also ready to be "Recommended".

Any criteria for "Recommended" for this proposal that were established in the Ready For Release stage have been met.

An FCP is required to enter this stage. Multiple RFCs may be moved as a batch into "Recommended" with the same PR.

Checklist to move to Recommended

  • Any criteria for "Recommended" for this proposal that were established in the Ready For Release stage have been met
  • If appropriate, the feature is integrated into the tutorial and the guides prose. API documentation is polished and updates are carried through to other areas of API docs that may not directly pertain to the feature.
  • If the proposal replaces an existing feature, the addon ecosystem has largely updated to work with both old and new features.
  • If the proposal updates or replaces an existing feature, high-quality codemods are available
  • If needed, Ember debugging tools as well as popular IDE support have been updated to support the feature.
  • If the feature is part of a suite of features that were designed to work together for best ergonomics, the other features are also ready to be "Recommended".
  • This PR has been converted from a draft to a regular PR and the Final Comment Period label has been added to start the FCP

Criteria for moving to Recommended (required)

A set of criteria for moving this RFC to the Recommended Stage, following release:

  1. Review / update API docs and guides to see that these are covered. (@mixonic)
  2. Update ember-inspector to understand modifiers.
  3. Review syntax-highlighter quality for modifiers in HBS. (@NullVoxPopuli, @mansona)
  4. Update API docs to use new syntax highlighter. (Also see https://github.com/orgs/ember-learn/projects/68, which may or may not block this)
  5. Update guides to use new syntax highlighter.
  6. Update deprecations-guides to use new syntax highlighter.

@emberjs-rfcs-bot emberjs-rfcs-bot added RFC Advancement S-Recommended PR to move to the Recommended Stage labels Jun 10, 2023
@NullVoxPopuli
Copy link
Sponsor Contributor

NullVoxPopuli commented Jul 7, 2023

For highlighting:

The main thing is that we don't use handlebars. So updating handlebars parsers is 😬

Here is my syntax cheatsheet that uses highlight.js: https://cheatsheet.glimmer.nullvoxpopuli.com/docs/templates

Support

Editors:

Web highlighting:

mixonic added a commit to ember-learn/guides-source that referenced this pull request Jul 19, 2023
At emberjs/rfcs#934 we're tracking an effort to
implement the RFC emberjs/rfcs#811. In that RFC
(at
https://github.com/emberjs/rfcs/blob/master/text/0811-element-modifiers.md#how-we-teach-this)
there are two things which are suggested for documentation in the
guides:

* Update references that mention `ember-modifier` must be installed,
  since it ships in the default blueprint (confirmed at
  https://github.com/ember-cli/ember-new-output/blob/master/package.json#L50)
* Introduce the class-based modifier API. In this PR I've linked to the
  upstream documentation at
  https://github.com/ember-modifier/ember-modifier#usage to execute on
  that suggestion. I don't believe we need to laborously explain the
  class-based APIs to guides readers, it just distracts from some
  otherwise straight-forward use cases and examples.
@mixonic
Copy link
Sponsor Member

mixonic commented Jul 19, 2023

I've drafted a guides update for this RFC at ember-learn/guides-source#1946. I think pending approval on that repo, it would satisfy the checkbox here for guides documentation.

MinThaMie pushed a commit to ember-learn/guides-source that referenced this pull request Jul 25, 2023
At emberjs/rfcs#934 we're tracking an effort to
implement the RFC emberjs/rfcs#811. In that RFC
(at
https://github.com/emberjs/rfcs/blob/master/text/0811-element-modifiers.md#how-we-teach-this)
there are two things which are suggested for documentation in the
guides:

* Update references that mention `ember-modifier` must be installed,
  since it ships in the default blueprint (confirmed at
  https://github.com/ember-cli/ember-new-output/blob/master/package.json#L50)
* Introduce the class-based modifier API. In this PR I've linked to the
  upstream documentation at
  https://github.com/ember-modifier/ember-modifier#usage to execute on
  that suggestion. I don't believe we need to laborously explain the
  class-based APIs to guides readers, it just distracts from some
  otherwise straight-forward use cases and examples.
@ef4 ef4 unassigned mixonic Sep 8, 2023
@ef4
Copy link
Contributor

ef4 commented Sep 8, 2023

I think this still needs a champion who can sort through the remaining work and bring a summary to the RFC review. If, for example, we think current syntax highlighting is good enough, let's just get the status and decide what we actually want to do to call this recommended.

@mansona
Copy link
Member

mansona commented Sep 29, 2023

We released ember-showdown-prism which has better support for modifers https://github.com/empress/ember-showdown-prism/releases/tag/v4.3.0

This will work for the guides but not the API docs yet

@ef4
Copy link
Contributor

ef4 commented Oct 13, 2023

Status update here: we still need ember-inspector support. The other stuff (updating docs infra, adding content to guides) has happened.

@IgnaceMaes
Copy link

What does "ember-inspector support" entail? Is this written down somewhere?

It would be great to have a list of minimal features it should support to pick up this work.

@NullVoxPopuli
Copy link
Sponsor Contributor

Atm the component view in the inspector only shows components, and i think we need to expand in to show (almost) every type of thing.
There's been talk about having ember-source register the view in to inspector, like ember-data does. That way we don't need to have the inspector support all ember-source versions, and we can iterate more tighly with rendering features and debugging ui

@ef4
Copy link
Contributor

ef4 commented Jan 5, 2024

RFC review meeting was discussing the inspector requirement here and it's not clearly a blocker for recommended. The inspector already doesn't have any way to reflect helpers in the DOM, so it's not clear that it has a logical place to reflect modifiers either. Opening an issue on inspector to discuss what an updated design would look like seems sufficient.

@achambers
Copy link
Contributor

Created an issue here emberjs/ember-inspector#2541

@achambers achambers marked this pull request as ready for review January 12, 2024 15:22
@ef4 ef4 merged commit c8337e6 into master Jan 19, 2024
8 checks passed
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.

None yet

8 participants