Code Monkey home page Code Monkey logo

tybalt's People

Contributors

dependabot[bot] avatar stamler avatar

Watchers

 avatar

tybalt's Issues

TimeEntries Project Typeahead

Create an auto-complete module so that creating / editing a TimeEntry provides typeahead when entering project from the database.

Planned Implementation:

  1. Create an onWrite() firestore trigger on Projects collection
    functions.firestore.document('Projects/{projectId}').onWrite(updateSearchString);
  2. Write the updateSearchString() function which takes string value from specific properties and tokenizes them then adds the tokens to a searchStrings array property.
  3. Create the Typeahead field which tokenizes the input the same way that the backend does then provides each token to a where() query:
    .where('searchStrings', 'array-contains', token1). NB that firestore does not support chained array-contains queries so a separate query needs to be performed for each search term(!) and then ANDed together with the others to find the intersect. This can be done on the client side or in a cloud function. a stackoverflow answer explanation

Alternative Simple implementation (search project number only)

Update README

README is very outdated. Update it to document installation and deployment procedures as well as technical information about the frontend, backend, and code layout.

Implement Timesheets Bundle button

User should be able to click the bundle button and all TimeEntries from a given week will be validated and bundled into a TimeSheet document which contains TimeEntries and extra metadata. This will be ready for submission.

Sort UserMutations docs by date in descending order

With many mutations it can become difficult to identify the important ones. Sort the mutations by statusUpdated timestamp in descending order so that the most recently changed mutations appear at the top of the list.

Further, UserMutations with a status of complete should appear at the bottom while all others statuses should appear above. Thus it's a double sorting, grouping first by status of either complete or not complete then sorting by statusUpdated within each group.

Refactor List components

Switching to mobile-friendly individual List components creates a lot of duplicate code. Most of this can be implemented in a new MobileList.vue component with a slot template.

Store custom claims in database rather than auth

Currently Profiles exports data from firebase Auth and is not the source of Authority. Examine the possibility of using Profiles as the source of role authority then writing custom claims from profiles as tokens are minted.

Fix Edit Components for Mobile

Editing for Projects, Divisions, and TimeTypes doesn't work properly on mobile. Model them after the Editor for TimeEntries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.