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

Improve how JavaScript works in GOV.UK Frontend #1389

Closed
12 of 13 tasks
timpaul opened this issue May 28, 2019 · 4 comments
Closed
12 of 13 tasks

Improve how JavaScript works in GOV.UK Frontend #1389

timpaul opened this issue May 28, 2019 · 4 comments
Labels
epic Epics are used in planning project boards to group related stories

Comments

@timpaul
Copy link
Contributor

timpaul commented May 28, 2019

What

We know there are issues with our current JavaScript setup, code and tooling which we should improve. Some of this work will help us unlock future work, i.e: more complex components (like modals) and supporting translations.

Preliminary work

Internationalisation

Allow strings in our component JavaScript to be customised, to allow for text in other languages (eg: Welsh).

Reduce Internet Explorer support

We're aiming to reduce IE support in future major versions of GOV.UK Frontend.

Figure out what our component JavaScript should look like and how it should behave

We should consider how we handle modern JavaScript features, typing, public and private properties, event listening, state management, styling, interactions with apps and third-party frameworks, and our component API.

Document our JavaScript

We need to figure out what our documentation will look like, and we need to actually publish that documentation.

Improve tooling

Improve testing

Resources

@timpaul timpaul added the epic Epics are used in planning project boards to group related stories label May 28, 2019
@frankieroberto
Copy link
Contributor

@timpaul might be worth adding that the Character Count component also has hardcoded English text (see code), and so whichever solution is proposed for translation can be adopted there too?

@kellylee-gds
Copy link
Contributor

kellylee-gds commented Jul 12, 2021

Previous body of issue:

Goal

We can publish more complex components involving JavaScript, in a consistent way that can be adopted by service teams.

Why

Doing this work allows us to publish more complex components like modal dialogue and autocomplete, both of which we know are needed by users.

Related stories

@owenatgov
Copy link
Contributor

JS Squad to decide which of the epics in this card to work on at the present moment in time and move them into the epics column.

@36degrees
Copy link
Contributor

Closing this as the scope is too broad to be useful at the minute (there's always more we can do to improve!) and the few remaining stories are better covered in other epics (or are epics themselves):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Epics are used in planning project boards to group related stories
Projects
None yet
Development

No branches or pull requests

7 participants