Skip to content

Commit fa2dfcb

Browse files
ScaffolderMariusz Siewruk
authored andcommitted
initial commit
0 parents  commit fa2dfcb

30 files changed

+573
-0
lines changed

.eslintrc.cjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
parserOptions: {
13+
ecmaVersion: 'latest'
14+
}
15+
}

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* @DocPlanner/${{ parameters.owner | parseEntityRef | pick('name') }}
2+
3+
#DevOps
4+
.docker/ @DocPlanner/ops
5+
.policies/ @DocPlanner/ops
6+
.github/ @DocPlanner/ops
7+
.github/workflows/ @docplannersec @DocPlanner/ops
8+
.github/workflows/validate_workflows.yaml @DocPlanner/ops

.github/workflows/gitleaks_pr.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: gitleaks
2+
on: [push, pull_request]
3+
4+
jobs:
5+
gitleaks:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: gitleaks-action
10+
uses: gitleaks/[email protected]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Auto approve Workflow changes
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- reopened
9+
- synchronize
10+
paths:
11+
- .github/workflows/**
12+
13+
jobs:
14+
validate-workflow-changes:
15+
uses: Docplanner/devops-pipelines/.github/workflows/validate_workflows.yaml@v1
16+
secrets: inherit

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo
31+
32+
package-lock.json
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package local
2+
3+
#allowed_actions_prefix:={"tj-actions"}
4+
#allowed_secret_usage := {"test":["TESTINGS_APP_TOKEN"],"testb":["APP_TOKEN"]}
5+
#approved_custom_actions := {"echo \\\"\\\\\" > test.txt && base64 -i test.txt"}

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"bracketSpacing": true,
4+
"printWidth": 140,
5+
"singleQuote": true,
6+
"trailingComma": "none",
7+
"tabWidth": 2,
8+
"useTabs": false,
9+
"semi": false
10+
}

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Full-stack technical assigment: front-end
2+
3+
Hello! First of all - welcome and congrats that we can meet on this stage of the process!
4+
This is the task that covers frontend part of a full stack technical assigment.
5+
6+
## Guidelines:
7+
8+
- to create your copy, use the green "Use this template" button on the top right. It should be set as private repo. Do
9+
not use fork feature.
10+
- to start the app within the app root dir please run `npm i && npm run dev`
11+
- complete the task as described below
12+
- once completed - give access to the repo to the hiring manager and other people provided
13+
- send us the link to the pull request in your repo, in order for us to review your task
14+
15+
## Task description
16+
17+
Code represents POC of Visit Management Page.
18+
<br/><br/>Patient can see a visit date with the option to book a new appointment but provided solution does not meet all
19+
business requirements and has a few bugs.
20+
21+
### Issues to resolve:
22+
23+
- fix fetching available slots
24+
- apply correct date / time formatting to the slot element to make it more readable (only time should be displayed)
25+
26+
### The goal is to improve patient's experience by:
27+
28+
- grouping slots by day
29+
- when user clicks on a slot, booking action is triggered. Set up a confirmation step before booking new slot
30+
- adding loading state of your choice when slot is being booked
31+
- update confirmed date and available slots to avoid double bookings (two bookings for the same hour)
32+
33+
## Hints
34+
35+
- it's up to you how much time you want to spend
36+
- feel free to refactor and reorganise the code as you feel like
37+
- add any libraries that you might need
38+
- add tests
39+
- if you could do something better, but it feels like too much work - please put a comment and describe what would you
40+
do
41+
42+
### **Good luck!**

catalog-info.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: vue-recruitment-refactor-assignment
5+
description: Front-end part of recruitment assignment for full stack dev position
6+
labels:
7+
scaffolder-template-name: create-repository
8+
annotations:
9+
github.com/project-slug: DocPlanner/vue-recruitment-refactor-assignment-front-app
10+
spec:
11+
type: service
12+
lifecycle: experimental
13+
owner: docplanner/${{ parameters.owner | parseEntityRef | pick('name') }}
14+

env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)