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

refactor: frontend #483

Open
wants to merge 132 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
531a12c
chore(frontend): use ember-apply to bootstrap tailwind
c0rydoras Sep 30, 2024
b475564
chore(frontend): use postcss for tailwind
c0rydoras Oct 1, 2024
8941817
chore(frontend): delete scss styles
c0rydoras Oct 1, 2024
00c538b
chore(frontend): setup styles (structure) and add base styles
c0rydoras Oct 2, 2024
bbd65f1
fix(frontend): style slider
c0rydoras Oct 2, 2024
f9da5ad
fix(frontend): style timed-clock
c0rydoras Oct 2, 2024
cdacb23
fix(frontend): style topnav
c0rydoras Oct 2, 2024
653913b
fix(frontend): style power-select and basic-dropdown
c0rydoras Oct 1, 2024
89553a3
fix(frontend): style tracking bar
c0rydoras Oct 1, 2024
0a84346
fix(frontend): style buttons
c0rydoras Oct 2, 2024
27da91d
fix(frontend): style optimized-power-select
c0rydoras Oct 2, 2024
b8bd2cc
chore(frontend/styles): add striped utility
c0rydoras Oct 2, 2024
3507ff2
fix(frontend): added toggle component
c0rydoras Oct 2, 2024
6061580
fix(frontend): added checkbox component
c0rydoras Oct 2, 2024
969cefa
fix(frontend): style weekly-overview
c0rydoras Oct 2, 2024
4adeb30
fix(frontend): style report-row
c0rydoras Oct 2, 2024
e5cc602
fix(frontend): added Empty component
c0rydoras Oct 2, 2024
d9dc2b8
fix(frontend): style date-navigation
c0rydoras Oct 2, 2024
45c4a80
fix(frontend): add nav-tabs components
c0rydoras Oct 2, 2024
339a851
fix(frontend): style /reports
c0rydoras Oct 2, 2024
cd290a8
fix(frontend): style /login
c0rydoras Oct 2, 2024
8444e47
fix(frontend): style projects
c0rydoras Oct 2, 2024
ccca88a
fix(frontend): style index/template.hbs
c0rydoras Oct 2, 2024
08211d9
fix(frontend): style /attendances
c0rydoras Oct 2, 2024
865d086
fix(frontend): style /activities
c0rydoras Oct 2, 2024
a007061
fix(frontend): style /analysis
c0rydoras Oct 4, 2024
f5a1cd2
fix(frontend): style task selection
c0rydoras Oct 2, 2024
511d687
fix(frontend): style magic-link-modal
c0rydoras Oct 2, 2024
55d8140
fix(frontend): style time and durationpicker
c0rydoras Oct 2, 2024
7584343
fix(frontend): style alerts
c0rydoras Oct 2, 2024
2fda95e
chore(frontend): update ember-validated-form to v7
c0rydoras Oct 3, 2024
ffd93d8
fix(frontend): style scroll-container
c0rydoras Oct 3, 2024
8a9bf7a
fix(frontend): style filter-sidebar
c0rydoras Oct 3, 2024
e49663a
fix(frontend): style remaining-effort input
c0rydoras Oct 3, 2024
8a940a3
chore(frontend): add pointer-events-all utility class
c0rydoras Oct 3, 2024
0e64629
fix(frontend): style sort-header
c0rydoras Oct 3, 2024
4e8558b
fix(frontend): style loading-icon
c0rydoras Oct 3, 2024
894dd2a
fix(frontend): style user-selection
c0rydoras Oct 4, 2024
4b36ab9
fix(frontend): style /statistics
c0rydoras Oct 4, 2024
3f96844
fix(frontend): style progress-tooltip
c0rydoras Oct 18, 2024
0179e93
fix(frontend): add card components
c0rydoras Oct 29, 2024
6d43f41
fix(frontend): add table components
c0rydoras Oct 29, 2024
aeafe30
chore(frontend/styles): add total util
c0rydoras Oct 29, 2024
813473f
refactor(frontend): use custom table component instead of vanilla tables
c0rydoras Oct 29, 2024
fb35b3f
fix(frontend): style async-list component
c0rydoras Oct 29, 2024
55c6391
fix(frontend/helpers): adjust balance-highlight-class to tailwind
c0rydoras Oct 29, 2024
31b6c86
refactor(frontend): use card component
c0rydoras Oct 29, 2024
a80fe43
fix(frontend): style balance-donut component
c0rydoras Oct 29, 2024
6e83de7
fix(frontend): style worktime-balance-chart component
c0rydoras Oct 29, 2024
7cd6baf
fix(frontend): style /users
c0rydoras Oct 29, 2024
a901325
WIP stuff
c0rydoras Oct 29, 2024
1fcd385
WIP changes
c0rydoras Nov 1, 2024
3f3fc19
wip
c0rydoras Nov 4, 2024
bc9feed
more changes
c0rydoras Nov 4, 2024
1f6e424
chore(frontend): adjust balance-highlith-class helper tests for tailwind
c0rydoras Nov 4, 2024
98defee
chore(frontend): remove sy-checkbox and reuse tests for checkbox
c0rydoras Nov 4, 2024
b7310a8
chore(frontend): clean up etc. (TODO: rebase)
c0rydoras Nov 4, 2024
2d070c2
WIP changes to make tests green again
c0rydoras Nov 4, 2024
23fb527
WIP changes to make tests green again
c0rydoras Nov 4, 2024
ff56d33
WIP changes to make tests green again
c0rydoras Nov 5, 2024
0e56380
fix(frontend/report-row): save button disabled for valid reports gene…
c0rydoras Nov 5, 2024
3fc966f
WIP changes to make tests green again
c0rydoras Nov 5, 2024
ba4cab0
fix(frontend/filter-sidebar): revert changes to label
c0rydoras Nov 5, 2024
e7455fc
WIP changes to make tests green again
c0rydoras Nov 5, 2024
89390ea
WIP changes to make tests green again
c0rydoras Nov 5, 2024
b8e4224
fix(frotnend/filter-sidebar): add some margin to filters
c0rydoras Nov 5, 2024
decd782
fix(frotnend/analysis): table doing weird things
c0rydoras Nov 5, 2024
16b6c3d
chore(frontend): make total utility less bold
c0rydoras Nov 5, 2024
6e15db5
fix(frontend): style welcome-modal
c0rydoras Nov 6, 2024
a1236e0
fix(frontend): style report-review-warning
c0rydoras Nov 6, 2024
47ae658
fix(frontend/projects): correctly style archived projects in select
c0rydoras Nov 6, 2024
94084da
fix(frontend): style customer visible eye in inputs
c0rydoras Nov 6, 2024
b5aaa31
fix(frontend): use button for weekly-overview-day
c0rydoras Nov 6, 2024
e214241
fix(frontend): close mobile/small nav on click
c0rydoras Nov 6, 2024
29aab23
chore(frontend): make border radius configurable via css property
c0rydoras Nov 6, 2024
c756e6d
fix(frontend): improve report-row styling
c0rydoras Nov 6, 2024
4af4727
fix(frontend): use same breakpoints for ember-responsive as for tailwind
c0rydoras Nov 6, 2024
daa5b8e
fix(frontend): make weekly-overview-day font bigger
c0rydoras Nov 6, 2024
5d00522
fix(frontend): use ember-responsive for overview
c0rydoras Nov 6, 2024
2f5a63a
refactor(frontend): use ember-responsive for ScrollContainer::Lg
c0rydoras Nov 6, 2024
5359d94
WIP changes
c0rydoras Nov 6, 2024
2050b9f
fix(frontend/calendar): start week on monday
c0rydoras Nov 11, 2024
5536787
chore(frontend/projects): remove unused imports from controller
c0rydoras Nov 11, 2024
ba07b63
fix(frontend/forms): don't transition on font-size
c0rydoras Nov 11, 2024
ddf0a08
fix(frontend/select/customer-option): adjust font-size
c0rydoras Nov 11, 2024
45f7026
fix(frontend): fix z-index mess
c0rydoras Nov 11, 2024
f3a6807
fix(frontend): improve /users/{id} styling
c0rydoras Nov 11, 2024
8b94ce2
fix(frontend): improve nav-tabs/badge styling
c0rydoras Nov 11, 2024
dae612c
fix(frontend): improve customer-option styling
c0rydoras Nov 11, 2024
55e6857
fix(frontend/topnav): improve styling
c0rydoras Nov 11, 2024
011a31b
fix(frontend/tracking-bar): record button being smaller than inputs
c0rydoras Nov 11, 2024
b1150ea
fix(frontend): improve /users/{id} styling
c0rydoras Nov 11, 2024
ca0489b
chore(frontend): fix tests
c0rydoras Nov 12, 2024
c730a40
fix(frontend): don't show small absence and add absence buttons when …
c0rydoras Nov 12, 2024
6ec1607
fix(frontend): don't show seconds for attendance
c0rydoras Nov 13, 2024
ab1054a
fix(frontend/filter-sidebar): give trigger button rounded corners
c0rydoras Nov 13, 2024
6a122d3
fix(frontend): use Source Sans 3 and Source Code Pro fonts
c0rydoras Nov 13, 2024
cbf36f9
fix(frontend): update bar colours to be more colourful
c0rydoras Nov 13, 2024
e8dc44c
fix(frontend): update foreground-mid and bar colors
c0rydoras Nov 13, 2024
c881b6a
fix(frontend): make spinner smaller
c0rydoras Nov 13, 2024
edee29a
fix(frontend/analysis): don't cut off last filter group
c0rydoras Nov 14, 2024
81200f4
refactor(frontend): how themes work, make dark theme better add og theme
c0rydoras Nov 18, 2024
2fc24ff
fix(frontend/old-theme): tertiary-dark being undefined
c0rydoras Nov 18, 2024
a990625
fix(frontend/forms): form element focus using some random color
c0rydoras Nov 18, 2024
108ff6c
fix(frontend): reduce form input/select paddings
c0rydoras Nov 20, 2024
ef0483c
fix(frontend): update styles to be less dense and use old theme
c0rydoras Nov 20, 2024
25025fa
fix(frontend): adjust button padding
c0rydoras Nov 20, 2024
fedf771
fix(frontend/activities/edit): fix button positions on large screens
c0rydoras Nov 20, 2024
9e28ca4
fix(frontend/attendances): use darker color for time labels
c0rydoras Nov 20, 2024
908ab4d
fix(frontend): improve dark theme
c0rydoras Nov 20, 2024
7202c56
feat(frontend): make dark theme toggleable via ctrl+k
c0rydoras Nov 20, 2024
254dcb9
fix(frontend/checkbox): style disabled checkboxes
c0rydoras Nov 20, 2024
5d1c3c1
fix(frontend): mark selectable things in analysis
c0rydoras Nov 20, 2024
efe7098
fix(frontend): make styles better
c0rydoras Nov 20, 2024
6e941ec
fix(frontend): make theme and dark/light toggleable with ctrl+, or ct…
c0rydoras Nov 20, 2024
6381dd4
fix(frontend): fix border and regular dark mode
c0rydoras Nov 20, 2024
46870e0
feat(frontend): persist choice of color-scheme and of theme
c0rydoras Nov 22, 2024
6af0012
fix(frontend/worktime-balance): fix tooltip color
c0rydoras Nov 25, 2024
9e96714
fix(frontend): remove disabled left over from debugging
c0rydoras Nov 25, 2024
a8135a6
fix(frontend): style /no-access
c0rydoras Nov 25, 2024
5d7ea14
fix(frontend): style tour && upgrade ember-shepherd
c0rydoras Nov 25, 2024
c96959d
chore(frontend): set up linting with prettier for templates
c0rydoras Nov 25, 2024
f6a8828
chore(frontend): formatted with prettier
c0rydoras Nov 25, 2024
3d99759
chore(frontend): configure stylelint for new styles
c0rydoras Nov 25, 2024
790b327
chore(frontend): linted/formatted css files
c0rydoras Nov 25, 2024
cbe1bbc
ci(frontend): also lint css
c0rydoras Nov 25, 2024
a54adbe
chore(frontend): bump prettier-plugin-tailwindcss
c0rydoras Nov 25, 2024
9dbc528
fix(frontend): imporve alert styling and use notify for magic link al…
c0rydoras Nov 25, 2024
f4fcc95
fix(frontend): dont wrap reports in scroll container
c0rydoras Nov 29, 2024
56a6f1b
fix(frontend/report-row): smaller padding for xl
c0rydoras Nov 29, 2024
cab611e
fix(frontend/analysis): show no mobile message when smaller than md
c0rydoras Nov 29, 2024
2d2c8c7
fix(frontend/attendance-slider): add back label.size
c0rydoras Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

strategy:
matrix:
target: [js, hbs]
target: [js, hbs, css]

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": [
"prettier-plugin-tailwindcss"
]
}
20 changes: 17 additions & 3 deletions frontend/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@

module.exports = {
plugins: ["stylelint-prettier"],
extends: ["stylelint-prettier/recommended", "stylelint-config-standard-scss"],
extends: ["stylelint-prettier/recommended", "stylelint-config-standard"],
rules: {
"scss/at-extend-no-missing-placeholder": null,
"selector-class-pattern": null,
"custom-property-empty-line-before": null, // we use empty lines to group/order properties
"at-rule-empty-line-before": ["never", { ignoreAtRules: ["import"] }], // we use empty lines to group/order imports (su)
"selector-class-pattern": null, // we can ignore this because most css is styling 3rd party components where we don't control the class names
"import-notation": null, // doesn't really work with postcss-import
"at-rule-no-unknown": [
true,
{
ignoreAtRules: ["apply"], // ignore tailwind decorators
},
],
"function-no-unknown": [
true,
{
ignoreFunctions: ["theme"], // ignore tailwind functions
},
],
},
};
23 changes: 0 additions & 23 deletions frontend/.template-lintrc-ci.js

This file was deleted.

3 changes: 2 additions & 1 deletion frontend/.template-lintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";

module.exports = {
extends: "recommended",
plugins: ["ember-template-lint-plugin-prettier"],
extends: ["recommended", "ember-template-lint-plugin-prettier:recommended"],
};
2 changes: 1 addition & 1 deletion frontend/app/abilities/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ReportAbility extends Ability {
(this.model?.taskAssignees ?? [])
.concat(
this.model?.projectAssignees ?? [],
this.model?.customerAssignees ?? []
this.model?.customerAssignees ?? [],
)
.filter((a) => a?.user)
.map((a) => a.user.get("id"))
Expand Down
8 changes: 4 additions & 4 deletions frontend/app/analysis/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class AnalysisEditController extends Controller {
})}`,
{
method: "GET",
}
},
);

yield this.store.pushPayload("report-intersection", res);
Expand Down Expand Up @@ -252,9 +252,9 @@ export default class AnalysisEditController extends Controller {
underscoreQueryParams(
serializeQueryParams(
filterQueryParams(params, "editable"),
queryParamsState(this)
)
)
queryParamsState(this),
),
),
);
}
}
Loading
Loading