Coder Social home page Coder Social logo

epodol / bsclibrary Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 5.0 36.44 MB

The BASIS Scottsdale Library Website

Home Page: https://bsclibrary.net

License: MIT License

JavaScript 3.12% HTML 2.02% CSS 0.39% TypeScript 94.47%
basis-scottsdale-library bsclibrary hacktoberfest

bsclibrary's People

Contributors

akraghavan avatar dependabot[bot] avatar epodol avatar gazcpp avatar spiritseal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bsclibrary's Issues

CD Workflow not triggered on pre-release publish

Describe the bug
After releasing a new pre-release from a draft, no GitHub Action was triggered.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new pre-release draft
  2. Publish the pre-release draft
  3. Go to "Actions"
  4. No action triggered

Expected behavior
The CD GitHub Action should have been triggered.

Add Firebase Remote Config Fallback

Describe the bug
Firebase Remote Config has a robots.txt which causes the API to fail when indexed by Google Search.

FirebaseError: Remote Config: Fetch client failed to connect to a network. Check Internet connection. Original error: Failed to fetch. (remoteconfig/fetch-client-network).

Expected behavior
There should be a fallback when using Firebase Remote Config.

Screenshots
Google SEO Error
Google Search Results

Additional context
A support ticket has been submitted to Firebase to see if the robots.txt is a mistake.

Book Locators

Add a field for books called "locator" which will be used to store the book's location information.

Enhance titleQuery array

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
Add the subtitle to the titleQuery array when run in the setBookQueryData function. Also split on - characters.

Sticky Footer

Footer needs to stay at the bottom of the page, but not be visible if the content of the page extends past the bottom of the page.

image

Logo URLs Broken

The file https://bsclibrary.net/assets/logos/BASIS Scottsdale Library Logo - 4x.png is referenced in the index.html, but it no longer exists.

Firebase Cloud Function: Set Claims

Describe the solution you'd like
A HTTP callable function that sets the claims for the specified user after checking the caller's auth state.

Change Introduction Text

Is your feature request related to a problem? Please describe.
It's not a problem

Describe the solution you'd like
Change the text

Describe alternatives you've considered
N/A

Additional context
N/A

Different Navbar for each custom claim

Have a different navbar component for each type of custom claim:

Admin
Library Staff
Librarian
Library Volunteer
School Staff
Student
[Unverified User Navbar}

Book Description not showing new lines

Describe the bug
In the description of a book, new lines are not displayed. The new lines are stored in the database, but do not get displayed.

Expected behavior
Any new lines entered in the description should be viewable by the user.

Screenshots
image
image

Reset password email failing after account creation

Describe the bug
After creating an account, the reset password email is failing.

To Reproduce

  1. Open Console
  2. Add Account
  3. Look at Console

Expected behavior
Should send an email to the new account with a url to reset their password.

Screenshots
image

Additional context
image

Groups for Checkout Limits

Create groups that can be assigned to users that correspond to checkout limits (max checkouts, max renews, default due date). Allows for the checkout limits of multiple users to be changed at once.

Add Book Reviews

Is your feature request related to a problem? Please describe.
Add the ability to review books. 1-5 score and description.

Describe the solution you'd like
Callable function that sends description to Perspective API.

Additional context
Perspective API has been enabled.

New Book Data Fields

New fields to add:
Individual issues will be created and linked as needed.

  • Book Source
    • A field to put data sources for each book.
  • Book Type
    • Textbook, Book, etc

Firestore fails after signing out and back in

Describe the bug
After signing out of an account, then signing back in (without reloading), attempting to read from Firestore causes reads to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Sign into an account with VIEW_BOOKS permissions
  2. View the books page
  3. Sign out (do not refresh the page)
  4. Sign back in
  5. View books page -> Error

Expected behavior
User should be able to sign in and out without Firestore failing

Screenshots
image
image
image
image
image

Additional context
FirebaseExtended/reactfire#228
FirebaseExtended/reactfire#249

Add backend users collection

Describe the solution you'd like
A users collection that can be read and written to to adjust a user's information. A cloud function would be triggered on write to change the user's information.

Describe alternatives you've considered
A cloud function to edit the user and write to the collection.

Additional context
User writing can not set a role higher than the one they have.

Reformat Code

Describe the solution you'd like
Using eslint/eslint, airbnb/javascript, and prettier/prettier, reformat the current code.

Fix Formatting

Fix the broken formatting caused by updated MUI.

Use more sx breakpoints and uninstall bootstrap-css-only.

GitHub CD Action not triggered when draft used

Describe the bug
When publishing a release from a draft, a GitHub Action is not

To Reproduce
Steps to reproduce the behavior:

  1. Create a new release, but save as draft
  2. Go back to that release and publish
  3. No CD Action triggered

Expected behavior
A CD action should be triggered.

ServiceWorker not registering on deployment

Describe the bug
The Service Worker is not being registered on deployment of the application to Firebase Hosting.

To Reproduce
Visit https://preview.bsclibrary.net and open the console.

Expected behavior
The Service Worker should be registered and not throwing an error.

Screenshots
image
image

Additional context
Helpful links:

Statistics

Record statistics of:

  • User count
  • Book count
  • Copy count
    • Copies in condition count
  • Checkout count

Add CI/CD using GitHub Actions

Continuous integration

  • npm ci
  • npm run build
  • npm run test
  • Firebase Preview Channel

Continuous delivery

  • npm ci
  • npm run build
  • firebase deploy

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.