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

New frontend UX design #246

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
4f02d56
Update peer dependencies & use pnpm as package manager
Matthbo Oct 14, 2024
71cac5d
Remake app component
Matthbo Oct 14, 2024
540b23e
Add angular-component as file dependency & expand app layout
Matthbo Oct 15, 2024
d1ad591
Favicons, improve layout styling & basis for home page
Matthbo Oct 16, 2024
62a7860
Signals!
Matthbo Oct 17, 2024
3d0ca87
Improve home component layout and functionality
Matthbo Oct 18, 2024
42d0847
Working weighted search
Matthbo Oct 22, 2024
be0b5ac
Add basics of index page
Matthbo Oct 22, 2024
768a25e
Filter creation & assignments, index page improvements
Matthbo Oct 23, 2024
7725896
Improve ff-chips & index page styling
Matthbo Oct 24, 2024
ef874f5
Unfinished parts of filter menu on homepage
Matthbo Oct 25, 2024
184715f
Homepage filter improvements
Matthbo Oct 29, 2024
da699af
Add basics of details page
Matthbo Oct 29, 2024
136c907
Various pages are improved
Matthbo Oct 30, 2024
464b2f9
Improve routing, get element on details page
Matthbo Nov 1, 2024
9f91d4b
Add old url scheme, improve finding element & add component options
Matthbo Nov 4, 2024
2a6fd8a
A mess to try and get javadoc description properly working
Matthbo Nov 5, 2024
f429ee7
Trying to get structural directive working
Matthbo Nov 5, 2024
6932307
Better way of handling javadoc text
Matthbo Nov 6, 2024
987711f
Fix element description updating when navigating from previous element
Matthbo Nov 7, 2024
475c4df
Improve element description & component options styling
Matthbo Nov 8, 2024
eda02eb
sub option title styling
Matthbo Nov 8, 2024
0e35e09
fix overflow & word-wrapping on smaller screens
Matthbo Nov 22, 2024
6b609b1
Add collapse-directive to handle collapse & expand styling & animation
Matthbo Nov 22, 2024
750cf6e
Add collapse-directive to handle collapse & expand styling & animation
Matthbo Nov 25, 2024
c018154
Preparations to figure out toggling label filters
Matthbo Nov 25, 2024
20afcd1
Fix toggling labels
Matthbo Nov 26, 2024
c938aaa
Add proper filtering in home view
Matthbo Nov 27, 2024
547340f
Add list of selected filters for the user to see and remove
Matthbo Nov 28, 2024
9288aea
Improve selected filter close button styling
Matthbo Nov 28, 2024
8070628
Preparations of handling inherited properties
Matthbo Nov 28, 2024
63b50be
Forward implementation of inherited properties
Matthbo Nov 29, 2024
4f6786a
Display inherited properties
Matthbo Dec 3, 2024
6228e0c
Better displaying of component options
Matthbo Dec 4, 2024
36f5974
Improve styling for side-navigation
Matthbo Dec 4, 2024
9e1499c
Improve collapsables
Matthbo Dec 5, 2024
4c14ddf
Implement scroll to element for details right sidebar
Matthbo Dec 10, 2024
9a7fa5d
Detail page functional search
Matthbo Dec 10, 2024
704fd07
Improve details page search sidebar styling
Matthbo Dec 11, 2024
ba03d95
Various function and styling improvements
Matthbo Dec 11, 2024
bfc9627
More icons and style improvements
Matthbo Dec 12, 2024
ad7d5b2
Consistent colour & style of links on details page
Matthbo Dec 12, 2024
da2eef2
Add environment toggles for unfinished features
Matthbo Dec 12, 2024
be37408
Update pom & github checks
Matthbo Dec 12, 2024
1f5c850
Feedback smile button & copy syntax button
Matthbo Dec 12, 2024
b06261a
Improve directives based on feedback
Matthbo Dec 17, 2024
554156b
Improve details page & index page (now with colours)
Matthbo Dec 17, 2024
b3f7f28
Fix maven-build indentation
Matthbo Dec 17, 2024
649eeb4
Attempt to get pnpm working on github
Matthbo Dec 17, 2024
b16c782
Add variables for common styling colours
Matthbo Dec 18, 2024
7438235
Fix & improve various things
Matthbo Dec 18, 2024
0b54015
Fix angular-ci.yml
Matthbo Dec 18, 2024
5c4d4c5
Fix tests
Matthbo Dec 18, 2024
485ac19
refactor: simplify Maven build
philipsens Dec 18, 2024
9398a92
refactor: split testing doclet
philipsens Dec 18, 2024
92e5482
fix: pnpm in ci
philipsens Dec 18, 2024
dc4790d
Replace styleColours map for css variables
Matthbo Dec 19, 2024
954a5ac
Add easing on collapse-expand animation
Matthbo Dec 19, 2024
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
11 changes: 8 additions & 3 deletions .github/workflows/angular-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'pnpm'
cache-dependency-path: frank-doc-frontend/pnpm-lock.yaml
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build
run: npm run build
run: pnpm run build
- name: Run tests
run: npm test -- --no-watch --no-progress --browsers=ChromeHeadless
run: pnpm test -- --no-watch --no-progress --browsers=ChromeHeadless
113 changes: 11 additions & 102 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
Expand All @@ -12,17 +9,11 @@ on:

jobs:
build:

name: Maven Build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
path: frank-doc

- name: Cache local Maven repository
uses: actions/cache@v3
Expand All @@ -39,108 +30,26 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up Node.js 20.x
- name: Set up Node.js 21
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 21
cache: 'pnpm'
cache-dependency-path: frank-doc-frontend/pnpm-lock.yaml

- name: Build with Maven
env:
CI_SERVICE: GITHUB
TZ: Europe/Amsterdam
JAVA_OPTS: "-Xms1G -XX:+UseParallelGC"
run: mvn -B -V -T1 -Pibissource,codecoverage -Dmaven.javadoc.skip=true install
working-directory: frank-doc
run: mvn -Pcodecoverage -Dmaven.javadoc.skip=true install

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

test-frankframework:
needs: [build]
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
path: frank-doc

- name: Cache local Maven repository
uses: actions/cache@v3
env:
cache-name: cache-maven-dependencies
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Build with Maven
env:
CI_SERVICE: GITHUB
TZ: Europe/Amsterdam
JAVA_OPTS: "-Xms1G -XX:+UseParallelGC"
run: mvn -B -V -T1 -Pibissource,codecoverage -Dmaven.javadoc.skip=true install -DskipTests
working-directory: frank-doc

- name: Set Frank!Doc version environment variable
run: echo "FRANKDOC_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
working-directory: frank-doc

- name: Checkout Frank!Framework
uses: actions/checkout@v4
with:
fetch-depth: 2
repository: ibissource/iaf
path: iaf

- name: Build Frank!Framework
env:
CI_SERVICE: GITHUB
TZ: Europe/Amsterdam
JAVA_OPTS: "-Xms1G -XX:+UseParallelGC"
run: ./mvnw -B -V -T1 -PattachFrankDoc -DskipTests -Dfrankdoc.version=$FRANKDOC_VERSION process-sources
working-directory: iaf

- name: Check FrankConfig.xsd
run: |
java -jar \
frank-doc/frank-doc-doclet/target/frank-doc-doclet-$FRANKDOC_VERSION.jar \
frank-doc/.github/workflows/validConfig.xml \
iaf/target/frankdoc/xml/xsd/FrankConfig.xsd

- name: Check FrankConfig-compatibility.xsd
run: |
java -jar \
frank-doc/frank-doc-doclet/target/frank-doc-doclet-$FRANKDOC_VERSION.jar \
frank-doc/.github/workflows/validConfig.xml \
iaf/target/frankdoc/xml/xsd/FrankConfig-compatibility.xsd

- name: Store FrankDoc.json
uses: actions/upload-artifact@v3
with:
name: FrankDoc.json
path: iaf/target/frankdoc/js/*.json

- name: Store FrankDoc.xsd (Strict and compatibility)
uses: actions/upload-artifact@v3
with:
name: FrankDoc.xsd
path: iaf/target/frankdoc/xml/xsd/*.xsd
102 changes: 102 additions & 0 deletions .github/workflows/test-doclet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Test Doclet

on:
push:
branches: [master]
paths:
- 'frank-doc-doclet/**'
pull_request:
branches: [master]
paths:
- 'frank-doc-doclet/**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Build Frank!Framework with Doclet
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: frank-doc

- name: Cache local Maven repository
uses: actions/cache@v3
env:
cache-name: cache-maven-dependencies
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up Node.js 21
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'pnpm'
cache-dependency-path: frank-doc-frontend/pnpm-lock.yaml

- name: Build with Maven
env:
CI_SERVICE: GITHUB
TZ: Europe/Amsterdam
JAVA_OPTS: "-Xms1G -XX:+UseParallelGC"
run: mvn -Pcodecoverage -Dmaven.javadoc.skip=true install -DskipTests
working-directory: frank-doc/frank-doc-doclet/

- name: Set Frank!Doc version environment variable
run: echo "FRANKDOC_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
working-directory: frank-doc

- name: Checkout Frank!Framework
uses: actions/checkout@v4
with:
fetch-depth: 2
repository: frankframework/frankframework
path: frankframework

- name: Build Frank!Framework
env:
CI_SERVICE: GITHUB
TZ: Europe/Amsterdam
run: ./mvnw -PattachFrankDoc -DskipTests -Dfrankdoc.version=$FRANKDOC_VERSION process-sources
working-directory: frankframework

- name: Check FrankConfig.xsd
run: |
java -jar \
frank-doc/frank-doc-doclet/target/frank-doc-doclet-$FRANKDOC_VERSION.jar \
frank-doc/.github/workflows/validConfig.xml \
frankframework/target/frankdoc/xml/xsd/FrankConfig.xsd

- name: Check FrankConfig-compatibility.xsd
run: |
java -jar \
frank-doc/frank-doc-doclet/target/frank-doc-doclet-$FRANKDOC_VERSION.jar \
frank-doc/.github/workflows/validConfig.xml \
frankframework/target/frankdoc/xml/xsd/FrankConfig-compatibility.xsd

- name: Store FrankDoc.json
uses: actions/upload-artifact@v3
with:
name: FrankDoc.json
path: frankframework/target/frankdoc/js/*.json

- name: Store FrankDoc.xsd (Strict and compatibility)
uses: actions/upload-artifact@v3
with:
name: FrankDoc.xsd
path: frankframework/target/frankdoc/xml/xsd/*.xsd
11 changes: 6 additions & 5 deletions frank-doc-frontend/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
end_of_line = lf

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[{*.ats,*.cts,*.mts,*.ts}]
ij_typescript_spaces_within_imports = true
ij_typescript_use_double_quotes = false
ij_typescript_force_quote_style = true
21 changes: 14 additions & 7 deletions frank-doc-frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,30 @@ module.exports = {
sourceType: 'module',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@angular-eslint/recommended',
'plugin:@angular-eslint/template/process-inline-templates',
'plugin:unicorn/recommended',
'prettier',
'plugin:prettier/recommended',
],
rules: {
'unicorn/prevent-abbreviations': 'warn',
'unicorn/empty-brace-spaces': 'off',
'prefer-template': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
// 'unicorn/prevent-abbreviations': 'warn',
'unicorn/prevent-abbreviations': 'off', // doesn't work well with FrankDoc type name
'unicorn/no-array-reduce': 'off',
'unicorn/prefer-ternary': 'warn',
'unicorn/no-null': 'warn',
'@typescript-eslint/explicit-function-return-type': 'error',
'unicorn/no-null': 'off',
'unicorn/prefer-dom-node-text-content': 'warn',
'unicorn/consistent-function-scoping': 'off', // doesn't work well with Signals
},
},
{
files: ['*.html'],
extends: ['plugin:@angular-eslint/template/recommended'],
files: ['*.component.html', '*.css', '*.scss'],
extends: [
'plugin:@angular-eslint/template/recommended',
'plugin:prettier/recommended'
],
rules: {},
},
],
Expand Down
22 changes: 0 additions & 22 deletions frank-doc-frontend/.prettierignore

This file was deleted.

4 changes: 2 additions & 2 deletions frank-doc-frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
"singleQuote": true,
"printWidth": 120
}
Loading
Loading