Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --write **/*.{js,md}
prettier_options: --write **/*.{ts,tsx}
only_changed: True
- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ Second, while we can infer that a meeting is "online" if there is a Zoom URL (fo

Web servants may [add their own meeting types](#add-custom-types) of course.

### What is Speaker/Discussion?

When meetings are tagged both Speaker (`SP`) and Discussion (`D`), TSML UI merges them into a combined Speaker/Discussion type. This enables users to use existing filters to locate Speaker-only and Discussion-only meetings.

### Can I import TSML UI from NPM for use in a NextJS or Gatsby project?

Not yet! Please open a pull request and walk us through the process of adding it to NPM and we'll give it a shot.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsml-ui",
"version": "1.5.1",
"version": "1.5.2",
"private": false,
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/helpers/data/load-meeting-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ export function loadMeetingData(
);
}

//if meeting is both speaker and discussion, combine
if (types.includes('SP') && types.includes('D')) {
types.splice(types.indexOf('SP'), 1);
types.splice(types.indexOf('D'), 1);
types.push('SPD');
}

//check location/group capability
if (
!capabilities.location &&
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const en: Translation = {
SEN: 'Seniors',
SM: 'Smoking Permitted',
SP: 'Speaker',
SPD: 'Speaker/Discussion',
ST: 'Step Study',
T: 'Transgender',
TC: 'Location Temporarily Closed',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const es: Translation = {
SEN: 'Personas mayores',
SM: 'Se permite fumar',
SP: 'Orador',
SPD: 'Orador/Discusión',
ST: 'Estudio de pasos',
T: 'Transgénero',
TC: 'Ubicación temporalmente cerrada',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const fr: Translation = {
SEN: 'Séniors',
SM: 'Permis de fumer',
SP: 'Conférencier',
SPD: 'Conférencier/Discussion',
ST: 'Sur les Étapes',
T: 'Transgenre',
TC: 'Emplacement temporairement fermé',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const ja: Translation = {
SEN: '高齢者',
SM: '喫煙可',
SP: 'スピーカー',
SPD: 'スピーカー/ディスカッション',
ST: 'ステップスタディ',
T: 'トランスジェンダー',
TC: '一時的休止中',
Expand Down
1 change: 1 addition & 0 deletions src/types/MeetingType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type MeetingType =
| 'SEN' // Seniors
| 'SM' // Smoking Permitted
| 'SP' // Speaker
| 'SPD' // Speaker/Discussion
| 'ST' // Step Study
| 'T' // Transgender
| 'TC' // Location Temporarily Closed
Expand Down