Open Bug 2097330 Opened 3 days ago Updated 3 days ago

Bundle Lit into generated widget packages

Categories

(Firefox :: Widgets, task)

task

Tracking

()

People

(Reporter: fchasen, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [hnt][hnt-wattle])

So that we can create widgets that look more consistent with the existing ones, and also allow the model to create better interactions we need to bundle lit or react as default files.

Since the reusable components use lit, and react needs a built step to use JSX we should try lit first even if the model is likely more familiar with react usage.

We will need to add:

  • A map of the files Firefox adds to every package
  • lit.all.mjs to the map
  • Update the prompt with an example of a lit widget
  • A check that stops the model from writing, editing or deleting those paths. read_file on one returns a short note.
  • A test assertion that icons/edit.svg is in the installed package.

We might also want to include a few icons (arrow-left, close, delete, edit, plus, reload, settings) in the default files map with this, as those were helpful in the prototype.

You need to log in before you can comment on or make changes to this bug.