Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[Tabs] Show Framework logos #4151

Description

@jasonLaster

It would be really cool if we could show a framework logo in the source tabs. This would help us differentiate between the Expressions component, actions, and reducer.

To figureout if a file is a component, actions, or reducer we need to check the AST.

Component: imports react and uses createClass or the Component class
Action: has a function with an inner that has an object with dispatch
Reducer: has an update function with a switch statement

canonical actions

export function resumed() {
  return ({ dispatch }) => {
  };
}

export function resumed() {
  return function ({ dispatch }) {
  };
}

canonical reducer:

function update(
  state: Record<BreakpointsState> = initialState(),
  action: Action
) {
  switch (action.type) {
  }
}

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Jira

None yet

Severity

None yet

Estimate

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions