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

Feature/storybook #1148

Merged
merged 155 commits into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
88703da
added storybook and powervis base
theorm Jan 4, 2023
9f0ec1f
Added power vis component stories and added a click handler for graph…
theorm Jan 5, 2023
44d7750
Create .prettierrc
danieleguido Jan 5, 2023
1706fed
add new text reuse space
danieleguido Jan 6, 2023
7b42ee4
add tabs in new text reuse page
danieleguido Jan 9, 2023
9c3e61c
sample use of powervisbase
theorm Jan 13, 2023
45d6e8d
add dropdown menu to select the visualisation to display
danieleguido Jan 13, 2023
4040ca2
add line chart story
danieleguido Jan 13, 2023
fd8346a
remove exact from nav item when in overview
danieleguido Jan 13, 2023
025c6ad
add query params for stats service
danieleguido Jan 13, 2023
665603f
line chart story
theorm Jan 13, 2023
79265a0
Merge branch 'feature/storybook' of github.com:impresso/impresso-fron…
theorm Jan 13, 2023
884a8d4
add filtering in vis
danieleguido Jan 13, 2023
f8ae9d4
reverted example
theorm Jan 13, 2023
4a2cf1a
Merge branch 'feature/storybook' of github.com:impresso/impresso-fron…
theorm Jan 13, 2023
c85f8be
add filters from sidebar
danieleguido Jan 13, 2023
8d35d88
add facets in sidebar, range tbd
danieleguido Jan 16, 2023
bfa5f9b
fixx div sass
danieleguido Jan 16, 2023
8005c28
Merge branch 'feature/storybook' of github.com:impresso/impresso-fron…
theorm Jan 17, 2023
bdc86be
updated dependencies to make typescript work
theorm Jan 17, 2023
85afb25
add netlify publish pipeline
danieleguido Jan 17, 2023
4a7e7e2
add textReusePassage service and show passages
danieleguido Jan 20, 2023
f205b8d
add maxheight to Ellipse to prevent very long content
danieleguido Jan 20, 2023
de3a697
use exact for overview
danieleguido Jan 20, 2023
1496656
add items to current search query filters
danieleguido Jan 20, 2023
31ba589
add search and filters capabilities
danieleguido Jan 20, 2023
acf7a92
fix filterrange with missing data
danieleguido Jan 20, 2023
9c62356
added horizontal bar chart
theorm Jan 22, 2023
cb5e39c
add property disableRelativeDisplay to component FilterTimeline
danieleguido Jan 22, 2023
c219fb6
add link to article in TextReusePassageItem component
danieleguido Jan 22, 2023
cd851e5
Update messages.js
danieleguido Jan 22, 2023
9127eb3
add timeline filter
danieleguido Jan 22, 2023
ab1b511
add online badge and fix eslint
danieleguido Jan 23, 2023
3c5e594
add single cluster as filter
danieleguido Jan 23, 2023
469f757
add relevant info of text reuse cluster in passage item component
danieleguido Jan 25, 2023
b5bce6d
forward filtersWithItems in routerview
danieleguido Jan 25, 2023
a1d5124
add string as accepted type for tr_passage index, as it gets translat…
danieleguido Jan 25, 2023
45e1c56
Update messages.js
danieleguido Jan 25, 2023
bdf25a3
add search query summary in text explorer page header
danieleguido Jan 25, 2023
ee040eb
remove vs settings
danieleguido Jan 30, 2023
c31e331
add SelectionMonitorComponent instead of Monitor
danieleguido Jan 30, 2023
d053a8f
add startYear and EndYear as App properties
danieleguido Jan 30, 2023
7b82328
add SupportedIndexByContext constant
danieleguido Jan 30, 2023
cbe0515
Update messages.js
danieleguido Jan 30, 2023
da3c809
Update Timeline.vue
danieleguido Jan 30, 2023
ba449c4
fix eslint, prettier and typescript
danieleguido Jan 30, 2023
0c0a54a
add shadow to buttons
danieleguido Jan 30, 2023
9c7f107
add mousemove
danieleguido Jan 30, 2023
cdb540e
Update TheHeader.vue
danieleguido Jan 30, 2023
df8f1c0
Update Dimension.js
danieleguido Jan 30, 2023
7cd0ecb
Update FilterBase.js
danieleguido Jan 30, 2023
ebb2b91
Update FilterString.js
danieleguido Jan 30, 2023
59617d3
Update index.js
danieleguido Jan 30, 2023
1d8dc1f
add tooltip next to the right line
danieleguido Jan 31, 2023
b2fbaf2
move filterWithItems extraction in App component
danieleguido Jan 31, 2023
41c0eca
add text reuse clusters facets in textreuse sidebar
danieleguido Feb 6, 2023
33d135c
get visualisation and order by visualisation from URL query params
danieleguido Feb 7, 2023
20ab39a
add SupportedFiltersByIndex alias (context to be deprecated)
danieleguido Feb 10, 2023
103409d
refine disabled filters
danieleguido Feb 10, 2023
318602f
add "more" button in search facets
danieleguido Feb 10, 2023
1360ef6
add textreusecluster model
danieleguido Feb 13, 2023
831a704
refine label and translation of textReuseClusters
danieleguido Feb 13, 2023
9e2c7df
Update messages.js
danieleguido Feb 13, 2023
2086e82
add datapoint
danieleguido Feb 14, 2023
5a17e61
polish label in range slider
danieleguido Feb 14, 2023
a3ef02c
add diff lib
danieleguido Feb 15, 2023
8647945
add bootstrap variable in root
danieleguido Feb 15, 2023
c5d8d99
Update ItemLabel.vue
danieleguido Feb 15, 2023
d2eaebf
create text reuse passage label
danieleguido Feb 15, 2023
618382b
add specific monitor section for text reuse cluster diff
danieleguido Feb 15, 2023
29e9662
Create TextReusePassage.js
danieleguido Feb 15, 2023
fd98055
improve item selector
danieleguido Feb 15, 2023
bffaa10
add descriptions for every visualisation
danieleguido Feb 16, 2023
a4b605b
apply filters to text reuse monitor
danieleguido Feb 16, 2023
4d08276
Update messages.js
danieleguido Feb 16, 2023
c465390
Update TextReusePassageItem.vue
danieleguido Feb 16, 2023
d552e31
add color on points according to metric. to be finished
danieleguido Feb 16, 2023
1300878
display bar chart horisontally
theorm Feb 28, 2023
aab4fb0
add fixed bandwidth as option
danieleguido Feb 28, 2023
085ab5e
sort by domain values order
theorm Mar 1, 2023
5e0e64b
add other options for the powervis chart
danieleguido Mar 1, 2023
011a609
add options to current visualisation in TextReuseOverview component
danieleguido Mar 1, 2023
21ba0e7
Merge branch 'feature/storybook' of github.com:impresso/impresso-fron…
theorm Mar 1, 2023
3d36d89
add tootlip to chart horizontal
danieleguido Mar 1, 2023
74a7775
fixed term line function
theorm Mar 2, 2023
67adbbd
add onclick handler
danieleguido Mar 2, 2023
baca6ed
add onclick event
danieleguido Mar 2, 2023
8535a1c
fill selectionMonitor with enriched filters
danieleguido Mar 2, 2023
a48e3d8
add getRangeTranslation for searchquerysummary
danieleguido Mar 9, 2023
671d090
fix range buckets label
danieleguido Mar 20, 2023
db8c4bc
eslint
danieleguido Mar 20, 2023
169b790
add add results to collections
danieleguido Mar 20, 2023
5659cde
add spacing in root css
danieleguido Mar 20, 2023
3538a1c
Update Ellipsis.vue
danieleguido Mar 20, 2023
7ebad17
fix filters
danieleguido Mar 20, 2023
8b7f314
still todo
danieleguido Mar 20, 2023
a54fad6
Update JobItem.vue
danieleguido Mar 20, 2023
1b10ab4
Update SearchQuerySummary.vue
danieleguido Mar 20, 2023
9775bf7
Update HistogramSlider.vue
danieleguido Mar 20, 2023
af835b9
load facet one after the other
danieleguido Mar 20, 2023
9edd63d
Update messages.js
danieleguido Mar 29, 2023
ecb4ea4
add topic, country and type filters :)
danieleguido Mar 29, 2023
e49dd36
add a warn for context errors to check if it can be filtered out in g…
danieleguido Mar 29, 2023
727171c
add new fields to accepted filter types in filters logic textreuse
danieleguido Mar 29, 2023
4c62805
Update TextReuseCluster.js
danieleguido Mar 29, 2023
629da3c
Update messages.js
danieleguido Mar 29, 2023
316df48
add small-caps class as generic css class
danieleguido Mar 29, 2023
b8f5d00
improve tooltip
danieleguido Mar 29, 2023
0129fe8
fix key prop to add to collection item to avoid useless warning
danieleguido Mar 29, 2023
715cbba
add text reuse clusters
danieleguido Mar 29, 2023
ca6d9fe
refactoring of histogram slider
danieleguido Apr 3, 2023
fac7bc7
add filter as item in selectionMonitor
danieleguido Apr 13, 2023
af24ce4
add handleFacetFiltersClicked event handler in textReuse page for dyn…
danieleguido Apr 13, 2023
811bdd7
add badRequest as error not to forward
danieleguido Apr 13, 2023
66013c1
add default applyCurrentSearchFilters
danieleguido Apr 13, 2023
4e5d9f5
add pagination in text reuse cluster monitor
danieleguido Apr 13, 2023
79924cc
Update HomePage2020.vue
danieleguido Apr 13, 2023
ef2dc86
remover clusteSize from itemlabel component for textreuseclusters
danieleguido Apr 14, 2023
44e37cb
add compare button in textresuePasageItem component
danieleguido Apr 14, 2023
b58beaa
fix typo
danieleguido Apr 14, 2023
787d041
rename textruseoverview and add overview component
danieleguido Apr 14, 2023
b10af98
add filtering abilities to selecitonMonitor
danieleguido Apr 14, 2023
0ee47c6
fix labels on matrix view
danieleguido Apr 14, 2023
c7f8834
increase excerpt size dor textreuseclusters
danieleguido Apr 14, 2023
d64bb86
add new tab overview
danieleguido Apr 14, 2023
032cdc3
fix error when startPassage is not loaded
danieleguido Apr 14, 2023
bf702db
darkmode
danieleguido Apr 14, 2023
e5e370e
move create collection button ti the right
danieleguido Apr 14, 2023
4c8fa50
fix passage number and remove clusters tab
danieleguido Apr 14, 2023
61b5b7c
fix load more in filterfacet component
danieleguido Apr 14, 2023
0ec3fe2
fix translation labels
danieleguido Apr 14, 2023
9e36d4d
finish monitor to cross compare text reuse passage in component TextR…
danieleguido Apr 17, 2023
40e1aee
improve infobutton, build a convenient mapper to simply the structure
danieleguido Apr 19, 2023
59886c2
pass info button identifier from text-reuse to filter dynamic range
danieleguido Apr 19, 2023
a0c8c0c
Update TextReusePassageMonitor.vue
danieleguido Apr 19, 2023
fc1c153
check faqpage entries for text reuse
danieleguido Apr 19, 2023
e9f6e5d
remove empty facets in text reuse overview page
danieleguido Apr 19, 2023
5668d3e
add flag to remove current search filter in selectionMonitor
danieleguido Apr 19, 2023
f5a8bec
fix filterRange with nubers, now more useful ^^
danieleguido Apr 19, 2023
16b91b8
fix collections and add nicer UX
danieleguido Apr 20, 2023
b48a435
improve ux
danieleguido Apr 21, 2023
cda9f2d
only open filterfacets when they're filtered, otherwise collapse them
danieleguido Apr 21, 2023
23091f8
improve tabs ux
danieleguido Apr 21, 2023
ed13450
refine selected tab style
danieleguido Apr 21, 2023
7bbdafc
refine selectionMonitor for entities and newspapers and topics
danieleguido Apr 27, 2023
21e498b
use searchIndex instead of context
danieleguido Apr 29, 2023
e84e8b7
DO NOT GROUP range filters together
danieleguido Apr 29, 2023
60566a1
Update messages.js
danieleguido Apr 29, 2023
2e5cd70
nicer filter in selectionMonitor
danieleguido Apr 29, 2023
5a0efe1
Update SelectionMonitor.vue
danieleguido Apr 29, 2023
77ee2cd
Update SearchQuerySummary.vue
danieleguido Apr 29, 2023
3320d71
fix list of items
danieleguido Apr 29, 2023
b8950a5
add language
danieleguido May 2, 2023
d6d120d
add lazy loading for side facets to speed up the process
danieleguido May 2, 2023
751eb70
last fix text reuse labels
danieleguido May 2, 2023
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
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"presets": [
"@vue/cli-plugin-babel/preset"
"@vue/cli-plugin-babel/preset",
"@babel/preset-typescript"
]
}
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VUE_APP_MIDDLELAYER_API="https://dev.impresso-project.ch"
VUE_APP_MIDDLELAYER_API_PATH="/api"
VUE_APP_MIDDLELAYER_API_SOCKET_PATH="/api/socket.io"
55 changes: 0 additions & 55 deletions .eslintrc

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ tmp/

# redis files
*.rdb

# Local Netlify folder
.netlify
impresso-frontend.code-workspace
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
56 changes: 56 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
const path = require('path');

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-scss"
],
"framework": "@storybook/vue",
webpackFinal: (config) => {

config.module.rules.push({
resourceQuery: /blockType=i18n/,
type: 'javascript/auto',
loader: require.resolve('@intlify/vue-i18n-loader')
})

config.module.rules.push({
test: /\.scss$/,
use: [
require.resolve("vue-style-loader"),
require.resolve("css-loader"),
require.resolve("sass-loader"),
],
});

config.module.rules.push({
test: /\.sass$/,
use: [
require.resolve("vue-style-loader"),
require.resolve("css-loader"),
{
loader: require.resolve("sass-loader"),
options: {
sassOptions: {
indentedSyntax: true
}
}
}
],
});

config.resolve.alias = {
...config.resolve.alias,
"@": path.resolve(__dirname, "../src/"),
};
// keep this if you're doing typescript
config.resolve.extensions.push(".ts", ".tsx");
return config;
},
}
17 changes: 17 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import { Plugin as Fragment } from 'vue-fragment'

Vue.use(VueI18n);
Vue.use(Fragment)

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}

9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ build:
--build-arg GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
--build-arg GIT_REVISION=$(shell git rev-parse --short HEAD) .

build-netlify:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
GIT_REVISION=$(shell git rev-parse --short HEAD) \
PUBLIC_PATH=/ \
NODE_OPTIONS=--openssl-legacy-provider npm run build && \
netlify deploy --prod --dir=dist


run-dev:
GIT_TAG=$(shell git describe --tags --abbrev=0 HEAD) \
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) \
Expand Down
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Loading